/// <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();
        }
Exemplo n.º 2
0
 public static addCommand getInstance()
 {
     if (_instance == null || _instance.IsDisposed)
     {
         _instance = new addCommand();
     }
     return(_instance);
 }