private void botonModificacion_Click_2(object sender, EventArgs e) { if (seleccionDeTurno == false) { if (tablaListado.SelectedRows.Count == 1 && tablaListado.RowCount != 0) { DataGridViewRow row = this.tablaListado.SelectedRows[0]; int id = Convert.ToInt32(row.Cells["id"].Value); AltaTurno altaTurno = new AltaTurno(id, this); altaTurno.ShowDialog(); } else { MessageBox.Show("Debe seleccionar el turno a modificar"); } } else { if (tablaListado.RowCount > 0) { int index = tablaListado.SelectedRows[0].Index; listener.onOperationFinishTurno(turnos.ElementAt(index)); this.Close(); } else { MessageBox.Show("Debe seleccionar una fila"); } } }
private void altaTurno_Click(object sender, EventArgs e) { if (noPuedeIngresar(17)) { return; } if (ActiveMdiChild != null) { ActiveMdiChild.Close(); } Abm_Turno.AltaTurno altaTurno = new Abm_Turno.AltaTurno(); altaTurno.mostrar(this); }
private void bt_nuevo_Click_1(object sender, EventArgs e) { AltaTurno form = new AltaTurno(); form.ShowDialog(); }
protected void botonAlta_Click_1(object sender, EventArgs e) { AltaTurno altaTurnoForm = new AltaTurno(this); altaTurnoForm.ShowDialog(); }