Пример #1
0
        public override void ShowWizard(IObjectSpace objectSpace)
        {
            var wiz = new ExcelImportWizard(
                (XPObjectSpace)objectSpace,
                View.ObjectTypeInfo);

            wiz.ShowDialog();
        }
Пример #2
0
        public override void ShowWizard(IObjectSpace objectSpace)
        {
            var wiz = new ExcelImportWizard(
                (XPObjectSpace)objectSpace,
                View.ObjectTypeInfo,
                this.GetCurrentCollectionSource());

            wiz.ShowDialog();
        }
Пример #3
0
 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);
             }
         }
     }
 }