Beispiel #1
0
        private static bool ShowWarningWindow(int cancelAction)
        {
            if (!WarningWindow.DoNotShowAgain)
            {
                WarningWindow warningWindow = new WarningWindow();
                warningWindow.ShowDialog();
            }

            if (WarningWindow.ShouldConstruct())
            {
                return(true);
            }
            _depthTextBox.Text = cancelAction == WarningWindow.LeaveOldDepthLevel ? $"{Depth}" : "2";
            return(false);
        }
Beispiel #2
0
 private void OnOkButtonClick(object sender, RoutedEventArgs e)
 {
     if (_mode == 0)
     {
         if (AgainCheckBox.IsChecked == true)
         {
             DoNotShowAgain = true;
         }
         WarningWindow warranty = new WarningWindow(1);
         Hide();
         warranty.ShowDialog();
     }
     else
     {
         _construct = true;
         Hide();
     }
 }