Example #1
0
 private void Agregar()
 {
     try
     {
         var frm = new MntCentroLogisticoForm(_CentroLogisticoViewModels);
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(string.Format("OcurriĆ³ un error al agregar, mensaje de error: {0}", ex.Message)
                         , "Agregar", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Example #2
0
 private void Modificar()
 {
     try
     {
         var _CentroLogistico = (CentroLogisticoViewModel)centroLogisticoViewModelBindingSource.Current;
         var frm = new MntCentroLogisticoForm(_CentroLogistico, _CentroLogisticoViewModels);
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(string.Format("OcurriĆ³ un error al modificar, mensaje de error: {0}", ex.Message)
                         , "Modificar", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }