Пример #1
0
 private void gridLUMaCa_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Tag == "btnThemCaTruc")
     {
         frmCaTruc frm = new frmCaTruc();
         frm.AddCa    += Frm_AddCa;
         frm.UpdateCa += Frm_UpdateCa;
         frm.DeleteCa += Frm_DeleteCa;
         frm.Show();
     }
 }
Пример #2
0
        private void barButtonItem9_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = IsActive(typeof(frmCaTruc));

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