Exemplo n.º 1
0
        private void tsmiInnerbox_Click(object sender, EventArgs e)
        {
            FrmInnerboxOld frm = FrmInnerboxOld.GetSingleton();

            frm.MdiParent = this;
            frm.Show();
            frm.Activate();
        }
Exemplo n.º 2
0
 /// <summary>
 /// 单例模式,返回单个窗体对象
 /// </summary>
 /// <returns></returns>
 public static FrmInnerboxOld GetSingleton()
 {
     //if(frm==null || frm.IsDisposed)
     if (frm == null)
     {
         frm = new FrmInnerboxOld();
     }
     return(frm);
 }