Esempio n. 1
0
 private void btn_eliminar_si_Click(object sender, EventArgs e)
 {
     state = Utils.State.DESTROY;
     EnableForm(true);
     controller.ProcesarInformacion();
     state = Utils.State.NONE;
     menu.CargarClienteCompartido(null);
 }
Esempio n. 2
0
 private void btn_eliminar_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Seguro que desea eliminar a esta mascota", "Eliminar Mascota", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
     {
         state = Utils.State.DESTROY;
         EnableForm(true);
         controller.ProcesarInformacion();
         state = Utils.State.NONE;
         menu.CargarClienteCompartido(null);
         controller.DevolverMascotaENComboBox();
     }
     else
     {
         EnableForm(true);
         state = Utils.State.MODIFY;
     }
 }