public override void OnActivateFromPredecessor()
        {
            EDMWizardWindow edmWizardWindow = WizardWindow as EDMWizardWindow;

            if (edmWizardWindow.SelectedDatabase != null)
            {
                edmWizardWindow.SelectedDatabase.LoadDatabase();
                IsReadyForNextStep = true;
            }
        }
예제 #2
0
        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;
            }
        }
예제 #3
0
		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;
		}