예제 #1
0
        protected override void OnNextButtonPressed()
        {
            var piryInstallPage = new PiryInstallPage
            {
                BO2Directory = DirectoryTextBox.Text
            };

            Window.Navigate(piryInstallPage);
        }
        private void GoToPlutoniumSetup()
        {
            var bo2Directory = GetBO2InstalledDirectory();

            if (string.IsNullOrWhiteSpace(bo2Directory))
            {
                return;
            }

            if (IsMissingDLC(bo2Directory))
            {
                var result = System.Windows.MessageBox.Show(Properties.Resources.Start_DLCMissing,
                                                            Properties.Resources.Start_DLCMissingHeader,
                                                            MessageBoxButton.YesNoCancel,
                                                            MessageBoxImage.Question);

                if (result == MessageBoxResult.Yes)
                {
                    var piryInstallPage = new PiryInstallPage
                    {
                        BO2Directory = bo2Directory
                    };

                    Window.Navigate(piryInstallPage);
                    return;
                }
                else if (result == MessageBoxResult.Cancel)
                {
                    return;
                }
            }

            var plutoConfigPage = new PlutoniumConfigPage
            {
                BO2Directory = bo2Directory
            };

            Window.EnableBackButton = true;
            Window.Navigate(plutoConfigPage);
        }