public override void OnActivateFromPredecessor() { EDMWizardWindow edmWizardWindow = WizardWindow as EDMWizardWindow; if (edmWizardWindow.SelectedDatabase != null) { edmWizardWindow.SelectedDatabase.LoadDatabase(); IsReadyForNextStep = true; } }
private void btnNewConnection_Click(object sender, RoutedEventArgs e) { ConnectionWizardWindow connectionWizardWindow = new ConnectionWizardWindow(); connectionWizardWindow.Owner = WizardWindow; connectionWizardWindow.ShowDialog(); if (connectionWizardWindow.DialogResult.HasValue && connectionWizardWindow.DialogResult.Value) { EDMWizardWindow edmWizardWindow = WizardWindow as EDMWizardWindow; edmWizardWindow.Databases.Add(connectionWizardWindow.SelectedDatabase); edmWizardWindow.SelectedDatabase = connectionWizardWindow.SelectedDatabase; } }
private EDMWizardWindow RunWizard(OpenedFile file, string projectStandardNamespace) { EDMWizardWindow wizard = new EDMWizardWindow(file, projectStandardNamespace); wizard.Owner = Application.Current.MainWindow; wizard.WindowStartupLocation = WindowStartupLocation.CenterOwner; wizard.ShowDialog(); return wizard; }