public void RunStarted(object automationObject, Dictionary <string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams) { SatifyDependencies(); ParseParameters(replacementsDictionary); if (ViewModel == null) { ViewModel = new MultiPlatformViewModel(); } foreach (var platform in platformProvider.GetSupportedPlatforms()) { ViewModel.Platforms.Add(platform); } if (ShowDialog) { if (View == null) { View = new MultiPlatformView(); View.DataContext = ViewModel; uiShell.SetOwner(View); } if (!View.ShowDialog().GetValueOrDefault()) { throw new WizardBackoutException(); } } }
public bool?ShowDialog <T>(T dialog) where T : Window { uiShell.SetOwner(dialog); return(dialog.ShowDialog()); }