예제 #1
0
 private void menuDoimatkhau_Click(object sender, EventArgs e)
 {
     if (dmk == null)
     {
         dmk = new Doimatkhau();
         dmk.StartPosition = FormStartPosition.CenterScreen;
         dmk.WindowState   = FormWindowState.Maximized;
         dmk.MdiParent     = this;
         dmk.Show();
     }
     else
     {
         dmk.Activate();
     }
 }
예제 #2
0
        private void bbtDoimatkhau_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = this.Kiemtratontai(typeof(Doimatkhau));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                Doimatkhau dmk = new Doimatkhau();
                dmk.MdiParent = this;
                //dmk.StartPosition = FormStartPosition.CenterParent;
                dmk.WindowState = FormWindowState.Maximized;
                dmk.Show();
            }
        }