예제 #1
0
 private void btn_agregar_Click(object sender, EventArgs e)
 {
     ControlVistaHora.opcion = "Registrar";
     flowLayoutPanel1.Controls.Remove(agh);
     agh = new agregarhorario(flowLayoutPanel1);
     agh.labelOpcion.Text = "AGREGAR HORARIO";
     agh.TopLevel         = false;
     agh.Visible          = true;
     ControlVistaHora.cargarValores(agh);
     flowLayoutPanel1.Width  = this.Width;
     flowLayoutPanel1.Height = this.Height;
     flowLayoutPanel1.Controls.Add(agh);
     asignarTamanioVentanaResponsivo(agh);
     flowLayoutPanel1.Visible = true;
 }
예제 #2
0
 private void btn_modificar_Click(object sender, EventArgs e)
 {
     ControlVistaHora.opcion = "Modificar";
     flowLayoutPanel1.Controls.Remove(agh);
     flowLayoutPanel1.Visible = true;
     agh = new agregarhorario(flowLayoutPanel1);
     agh.labelOpcion.Text = "MODIFICAR DATOS DE LA HORA";
     ControlVistaHora.obtenerSeleccion();
     ControlVistaHora.cargarValores(agh);
     agh.TopLevel            = false;
     agh.Visible             = true;
     flowLayoutPanel1.Width  = this.Width;
     flowLayoutPanel1.Height = this.Height;
     asignarTamanioVentanaResponsivo(agh);
     flowLayoutPanel1.Controls.Add(agh);
 }