예제 #1
0
 public static FrmTableInfo Creat()
 {
     if (_frm == null)
     {
         _frm = new FrmTableInfo();
     }
     return(_frm);
 }
예제 #2
0
        private void menuTableInfo_Click(object sender, EventArgs e)
        {
            FrmTableInfo frmTableInfo = FrmTableInfo.Creat();

            frmTableInfo.RefreshMain += LoadHallInfo;
            frmTableInfo.Show();
            frmTableInfo.Focus();
        }
예제 #3
0
 private void FrmTableInfo_FormClosing(object sender, FormClosingEventArgs e)
 {
     //与单例保持一致
     //出现这种代码的原因:Form的close()会释放当前窗体对象
     _frm = null;
 }