public override void ShowWizard(IObjectSpace objectSpace) { var wiz = new ExcelImportWizard( (XPObjectSpace)objectSpace, View.ObjectTypeInfo); wiz.ShowDialog(); }
public override void ShowWizard(IObjectSpace objectSpace) { var wiz = new ExcelImportWizard( (XPObjectSpace)objectSpace, View.ObjectTypeInfo, this.GetCurrentCollectionSource()); wiz.ShowDialog(); }
private void AddExcelClick(object sender, EventArgs e) { if (openExcelDialog.ShowDialog() == DialogResult.OK) // select filename { ExcelImportWizard w = new ExcelImportWizard(); if (w.ShowDialog() == System.Windows.Forms.DialogResult.OK) { if (w.ImportType == ExcelImportType.Standard) { ImportExcelStandard(openExcelDialog.FileName); } else if (w.ImportType == ExcelImportType.WaterYear) { ImportExcelWaterYear(openExcelDialog.FileName); } else if (w.ImportType == ExcelImportType.Database) { ImportExcelDatabaseStyle(openExcelDialog.FileName); } } } }