Exemplo n.º 1
0
        private void menuMemberInfo_Click(object sender, EventArgs e)
        {
            FrmMemberInfo FrmMemberInfo = FrmMemberInfo.CreateFrmMi();

            FrmMemberInfo.Show();
            FrmMemberInfo.Focus();
        }
Exemplo n.º 2
0
 }                                                   //单例字段
 /// <summary>
 /// 单例实例窗口对象
 /// </summary>
 /// <returns>窗口对象</returns>
 public static FrmMemberInfo CreateFrmMi()
 {
     if (_FrmMi == null) //单例核心
     {
         _FrmMi = new FrmMemberInfo();
     }
     return(_FrmMi);
 }
Exemplo n.º 3
0
 private void FrmMemberInfo_FormClosing(object sender, FormClosingEventArgs e)
 {
     _FrmMi = null;  //关闭窗口时释放实例
 }