Exemplo n.º 1
0
        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");
                }
            }
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
        private void bt_nuevo_Click_1(object sender, EventArgs e)
        {
            AltaTurno form = new AltaTurno();

            form.ShowDialog();
        }
Exemplo n.º 4
0
        protected void botonAlta_Click_1(object sender, EventArgs e)
        {
            AltaTurno altaTurnoForm = new AltaTurno(this);

            altaTurnoForm.ShowDialog();
        }