Inheritance: System.Windows.Forms.Form
Example #1
0
 //关于
 private void AboutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         form_AboutBox = AboutBox.GetInstance();
         form_AboutBox.Show();
         form_AboutBox.Activate();
     }
     catch (Exception ex)
     {
         log.WriteLog(ex.ToString());
     }
 }
Example #2
0
 public static AboutBox GetInstance()
 {
     if (form == null)
     {
         lock (synLock)
         {
             if (form == null) form = new AboutBox();
         }
     }
     return form;
 }
Example #3
0
 private void AboutBox_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (form != null)
     {
         form.Dispose();
         form = null;
     }
 }
Example #4
0
 //关于
 private void AboutMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         aboutBox = AboutBox.GetInstance();
         aboutBox.Show();
         aboutBox.Activate();
     }
     catch (Exception)
     {
     }
 }