Exemplo n.º 1
0
        private void btnThongKeThuoc_Click(object sender, EventArgs e)
        {
            FormThongKeThuoc formThongKeThuoc = new FormThongKeThuoc();

            showFormInMDIContainer(formThongKeThuoc);
            this.FindForm().Dispose();
        }
 private void menuThongKeThuoc_Click(object sender, EventArgs e)
 {
     if (!this.MdiChildren[0].Name.Equals("FormThongKeThuoc"))
     {
         disposeAllMDIChildrenForms();
         FormThongKeThuoc formThongKeThuoc = new FormThongKeThuoc();
         showFormInMDIContainer(formThongKeThuoc);
     }
 }
 private void menuThuocContainer_Click(object sender, EventArgs e)
 {
     if (this.MdiChildren.Length > 0)
     {
         if (!this.MdiChildren[0].Name.Equals("FormThongKeThuoc"))
         {
             disposeAllMDIChildrenForms();
             FormThongKeThuoc formThongKeNhanVien = new FormThongKeThuoc();
             showFormInMDIContainer(formThongKeNhanVien);
         }
     }
     else
     {
         FormThongKeThuoc formThongKeNhanVien = new FormThongKeThuoc();
         showFormInMDIContainer(formThongKeNhanVien);
     }
 }