示例#1
0
 private void btnThemCty_Click(object sender, EventArgs e)
 {
     System.Windows.Forms.Form f = GetChildFormByName("Form_DoanhNghiep");
     if (f == null)
     {
         f      = new Form_DoanhNghiep();
         f.Name = "Form_DoanhNghiep";
         //    Form_DoanhNghiep.AddNew = true;
         f.MdiParent = this.Parent.FindForm();
         f.Show();
     }
     else
     {
         f.Activate();
     }
 }
示例#2
0
 private void btn_DoanhNghiep_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     SplashScreenManager.ShowDefaultWaitForm("Vui Lòng Chờ...", "Đang tải dữ liệu...");
     System.Windows.Forms.Form f = GetChildFormByName("Form_DoanhNghiep");
     if (f == null)
     {
         f           = new Form_DoanhNghiep();
         f.Name      = "Form_DoanhNghiep";
         f.MdiParent = this;
         f.Show();
     }
     else
     {
         f.Activate();
     }
     SplashScreenManager.CloseDefaultWaitForm();
 }