GetInstance() public static méthode

public static GetInstance ( ) : AboutBox
Résultat AboutBox
 //关于
 private void AboutMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         aboutBox = AboutBox.GetInstance();
         aboutBox.Show();
         aboutBox.Activate();
     }
     catch (Exception)
     {
     }
 }
 //关于
 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());
     }
 }