Ejemplo n.º 1
0
 private void eliminarOrdenBtn_Click(object sender, EventArgs e)
 {
     if (comentarioOrdenTxt.Text != string.Empty && detallesSalidaDataGridView.Rows.Count > 0)
     {
         ServicioOrdenSalida.Eliminar(Int32.Parse(idOrdenSalidaTxt.Text));
         Limpiar();
     }
 }
Ejemplo n.º 2
0
 private void eliminarBtn_Click(object sender, EventArgs e)
 {
     if (proyectosVerLista.SelectedIndex > -1 && ordenesSalidaVerLista.SelectedIndices.Count > 0)
     {
         Proyecto proyecto = (Proyecto)proyectosVerLista.SelectedItem;
         ServicioOrdenSalida.Eliminar(Int32.Parse(IdVerTxt.Text));
         LimpiarControles();
         ObtenerOrdenesSalida();
     }
 }