//关于 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()); } }
public static AboutBox GetInstance() { if (form == null) { lock (synLock) { if (form == null) form = new AboutBox(); } } return form; }
private void AboutBox_FormClosed(object sender, FormClosedEventArgs e) { if (form != null) { form.Dispose(); form = null; } }
//关于 private void AboutMenuItem_Click(object sender, EventArgs e) { try { aboutBox = AboutBox.GetInstance(); aboutBox.Show(); aboutBox.Activate(); } catch (Exception) { } }