예제 #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);
     }
 }
예제 #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);
     }
 }