public void Run(int supportActiveX) { DialogResult ret; _selectedTypes = null; if (supportActiveX != 0) { frmPerformerImport f = new frmPerformerImport(); ret = f.ShowDialog(); } else { dlgClassFile dlg = new dlgClassFile(); dlg.refreshInfo(); dlg.frmPrev = null; ret = dlg.ShowDialog(); } if (ret == DialogResult.OK) { Type[] types; if (frmPerformerImport.WizardInfo.SourceType == enumSourceType.ActiveX) { types = ActiveXImporter.ActiveXInfo.GetSelectedTypes(); } else { types = frmPerformerImport.WizardInfo.GetSelectedTypes(); } if (types != null && types.Length > 0) { _selectedTypes = new string[types.Length]; for (int i = 0; i < types.Length; i++) { _selectedTypes[i] = string.Format(CultureInfo.InvariantCulture, "{0};{1}", types[i].Assembly.Location, types[i].AssemblyQualifiedName); } } } }
private void btNext_Click(object sender, System.EventArgs e) { if (rbtOCX.Checked) { dlgOCXFile dlg = new dlgOCXFile(); dlg.frmPrev = this; DialogResult ret = dlg.ShowDialog(this); if (ret == DialogResult.OK || ret == DialogResult.Cancel) { this.DialogResult = ret; } } else if (rbtClass.Checked) { dlgClassFile dlg = new dlgClassFile(); dlg.refreshInfo(); dlg.frmPrev = null; DialogResult ret = dlg.ShowDialog(this); if (ret == DialogResult.OK || ret == DialogResult.Cancel) { this.DialogResult = ret; } } }