by Mike.Sheen » Mon Oct 14, 2019 9:27 am
Hi Danny,
Don't set the Manager - we'll do that in the factory that creates the class.
Also don't declare your own manager - the base class already has one!
This, I believe, is what you are looking for:
- Code: Select all
partial class ImportExceltest : JiwaFinancials.Jiwa.JiwaApplication.ProcessAction.UserInterface
{
public override void Setup()
{
base.Setup();
System.Diagnostics.Debugger.Launch();
System.Windows.Forms.OpenFileDialog fileOpenDialog = new System.Windows.Forms.OpenFileDialog();
fileOpenDialog.Filter = "Excel Spreadsheets (*.xls;*.xlsx)|*.xls;*.xlsx";
if (fileOpenDialog.ShowDialog(Manager.MDIParentForm) == System.Windows.Forms.DialogResult.OK)
{
this.New(fileOpenDialog.FileName);
}
}
public void New(string filename)
{
MessageBox.Show(filename);
}
}
Mike Sheen
Chief Software Engineer
Jiwa Financials
If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution