示例#1
0
 private void menuItemNewWindow_Click(object sender, System.EventArgs e)
 {
     try
     {
         MainForm newWindow = new MainForm();
         newWindow.Text = newWindow.Text + " - New";
         newWindow.Show();
     }
     catch (Exception ex)
     {
         Program.ShowMessageBox("MainForm", ex);
     }
 }