Example #1
0
 private void gridLUMaYta_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Tag == "btnThemYTa")
     {
         frmDSYTA frm = new frmDSYTA();
         frm.AddYta    += Frm_AddYta;
         frm.DeleteYta += Frm_DeleteYta;
         frm.UpdateYta += Frm_UpdateYta;
         frm.Show();
     }
 }
Example #2
0
        private void barButtonItem8_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = IsActive(typeof(frmDSYTA));

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