Example #1
0
 private void btnRegistrar_Click(object sender, EventArgs e)
 {
     try
     {
         frm_Operacion frm = new frm_Operacion();
         frm.Modo        = frm_Operacion.TypeMode.Registrar;
         frm.MiDelegado += RefrescarGrilla;
         frm.ShowDialog();
     }
     catch (Exception)
     {
         MessageBox.Show("Disculpe, el sistema se encuentra fuera de servicio!",
                         this.Text,
                         MessageBoxButtons.OK,
                         MessageBoxIcon.Error);
     }
 }
Example #2
0
 private void btnEditar_Click(object sender, EventArgs e)
 {
     try
     {
         frm_Operacion frm = new frm_Operacion();
         frm.Modo = frm_Operacion.TypeMode.Editar;
         frm.OperacionId = Convert.ToInt32(dgvOperacion.SelectedRows[0].Cells["OperacionId"].Value);
         frm.MiDelegado += RefrescarGrilla;
         frm.ShowDialog();
     }
     catch (Exception)
     {
         MessageBox.Show("Disculpe, el sistema se encuentra fuera de servicio!",
                           this.Text,
                           MessageBoxButtons.OK,
                           MessageBoxIcon.Error);
     }
 }
Example #3
0
 private void btnEditar_Click(object sender, EventArgs e)
 {
     try
     {
         frm_Operacion frm = new frm_Operacion();
         frm.Modo        = frm_Operacion.TypeMode.Editar;
         frm.OperacionId = Convert.ToInt32(dgvOperacion.SelectedRows[0].Cells["OperacionId"].Value);
         frm.MiDelegado += RefrescarGrilla;
         frm.ShowDialog();
     }
     catch (Exception)
     {
         MessageBox.Show("Disculpe, el sistema se encuentra fuera de servicio!",
                         this.Text,
                         MessageBoxButtons.OK,
                         MessageBoxIcon.Error);
     }
 }
Example #4
0
 private void btnRegistrar_Click(object sender, EventArgs e)
 {
     try
     {
         frm_Operacion frm = new frm_Operacion();
         frm.Modo = frm_Operacion.TypeMode.Registrar;
         frm.MiDelegado += RefrescarGrilla;
         frm.ShowDialog();
     }
     catch (Exception)
     {
         MessageBox.Show("Disculpe, el sistema se encuentra fuera de servicio!",
                          this.Text,
                          MessageBoxButtons.OK,
                          MessageBoxIcon.Error);
     }
 }