Ejemplo n.º 1
0
        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();
                }
            }
        }
Ejemplo n.º 2
0
        public bool?ShowDialog <T>(T dialog) where T : Window
        {
            uiShell.SetOwner(dialog);

            return(dialog.ShowDialog());
        }