Ejemplo n.º 1
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     try
     {
         frmAddEditRIS frm = new frmAddEditRIS(Models.MethodType.Add, new RISHeader()
         {
             PRId = PRId
         });
         frm.ShowDialog();
         Init();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Ejemplo n.º 2
0
 private void BtnEditPQRepo_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     try
     {
         UnitOfWork unitOfWork = new UnitOfWork();
         if (this.RISGridView.GetFocusedRow() is RISHeader item)
         {
             frmAddEditRIS frm = new frmAddEditRIS(MethodType.Edit, item);
             frm.ShowDialog();
             Init();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }