Beispiel #1
0
 private void gridLUMaPhong_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Tag == "btnThemPhong")
     {
         frmPhongBenh frm = new frmPhongBenh();
         frm.AddPhong    += Frm_AddPhong;
         frm.DeletePhong += Frm_DeletePhong;
         frm.UpdatePhong += Frm_UpdatePhong;
         frm.Show();
     }
 }
Beispiel #2
0
        private void barButtonItem11_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = IsActive(typeof(frmPhongBenh));

            if (frm == null)
            {
                Form f = new frmPhongBenh();
                f.MdiParent = this;
                f.Show();
            }
            else
            {
                frm.Activate();
            }
        }