private void btnCreateNewCohortSource_Click(object sender, EventArgs e) { var wizard = new CreateNewCohortDatabaseWizardUI(); wizard.SetItemActivator(Activator); SingleControlForm.ShowDialog(wizard); IdentifyCompatibleCohortSources(); }
public override void Execute() { base.Execute(); var wizard = new CreateNewCohortDatabaseWizardUI(Activator); wizard.SetItemActivator(Activator); var f = Activator.ShowWindow(wizard, true); f.FormClosed += (s, e) => { if (wizard.ExternalCohortTableCreatedIfAny != null) { Publish(wizard.ExternalCohortTableCreatedIfAny); } }; }