/// <summary> /// 添加按钮事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Add_Click(object sender, EventArgs e) { addCommand ac = addCommand.getInstance(); ac.FormClosing += Ac_FormClosing; ac.Show(); }
public static addCommand getInstance() { if (_instance == null || _instance.IsDisposed) { _instance = new addCommand(); } return(_instance); }