private void helpGBHelpMenuItem_Click(object sender, System.EventArgs e)
 {
     try
     {
         string help = m_gbc.GetHelp();
         if(help.Length > 0)
         {
             ListForm lf = new ListForm();
             lf.setText(help);
             lf.Text = "Help on command line options";
             lf.ShowDialog();
         }
     }
     catch (Exception exc)
     {
         string result = exc.Message;
         if(!result.StartsWith("Error:"))
         {
             result = "Error: " + result;
         }
         resultsLabel.Text = result;
     }
 }
Esempio n. 2
0
 public static void showLog()
 {
     ListForm lf = new ListForm();
     string text = "";
     foreach(string str in m_log)
     {
         text += (str + "\r\n");
     }
     lf.setText(text);
     lf.ShowDialog();
 }
 private void resultsLabel_Click(object sender, System.EventArgs e)
 {
     if(resultsLabel.Text.Length > 0)
     {
         ListForm lf = new ListForm();
         lf.setText(resultsLabel.Text);
         lf.Text = "Results";
         lf.ShowDialog();
     }
 }