예제 #1
0
 private void Button_ViewErrors_Click(object sender, RoutedEventArgs e)
 {
     if (errorDialog != null)
     {
         if (errorDialog.IsActive)
         {
             errorDialog.Hide();
         }
         else
         {
             errorDialog.Show();
         }
     }
     else
     {
         errorDialog       = new ViewDialog();
         errorDialog.Title = "Errors";
         errorDialog.InitParseResults(parsed, ParseResultType.Error);
         errorDialog.Show();
     }
 }
예제 #2
0
 private void Button_ViewWarnings_Click(object sender, RoutedEventArgs e)
 {
     if (warningDialog != null)
     {
         if (warningDialog.IsActive)
         {
             warningDialog.Hide();
         }
         else
         {
             warningDialog.Show();
         }
     }
     else
     {
         warningDialog       = new ViewDialog();
         warningDialog.Title = "Warnings";
         warningDialog.InitParseResults(parsed, ParseResultType.Warning);
         warningDialog.Show();
     }
 }