public static void ShowWizard(WizardBase wizard, double width = 800, double height = 800, bool DoNotShowAsDialog = false) { WizardWindow wizardWindow = new WizardWindow(wizard); wizardWindow.Width = width; wizardWindow.Height = height; if (DoNotShowAsDialog) { wizardWindow.Owner = App.MainWindow;//adding owner so it will come on top wizardWindow.Show(); } else { wizardWindow.ShowDialog(); } }
private void CloseWizard() { mWizard.mWizardWindow = null; this.Close(); CurrentWizardWindow = null; }