Beispiel #1
0
        private void toolStripButton4_Click(object sender, EventArgs e)
        {
            // 我的班次
            frmMy myWork = frmMy.CreateForm();

            myWork.MdiParent = this;
            myWork.Show();
        }
Beispiel #2
0
 public static frmMy CreateForm()
 {
     //判断是否存在该窗体,或时候该字窗体是否被释放过,如果不存在该窗体,则 new 一个字窗体
     if (_instance == null || _instance.IsDisposed)
     {
         _instance = new frmMy();
     }
     return(_instance);
 }