Ejemplo n.º 1
0
 private void menuCapnhat_Click(object sender, EventArgs e)
 {
     if (cntt == null)
     {
         cntt = new Capnhatthongtin();
         cntt.StartPosition = FormStartPosition.CenterScreen;
         cntt.WindowState   = FormWindowState.Maximized;
         cntt.MdiParent     = this;
         cntt.Show();
     }
     else
     {
         cntt.Activate();
     }
 }
Ejemplo n.º 2
0
        private void bbtCapnhat_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = this.Kiemtratontai(typeof(Capnhatthongtin));

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