Ejemplo n.º 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;
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
        public horario()
        {
            InitializeComponent();
            this.lista.DefaultCellStyle.SelectionForeColor = Color.White;
            this.lista.DefaultCellStyle.SelectionBackColor = Color.Orange;
            this.lista.DefaultCellStyle.Font = new Font("Microsoft Sans Serif", 12);
            agh                     = new agregarhorario(flowLayoutPanel1);
            agh.TopLevel            = false;
            agh.Visible             = true;
            flowLayoutPanel1.Width  = this.Width;
            flowLayoutPanel1.Height = this.Height;
            flowLayoutPanel1.Controls.Add(agh);
            flowLayoutPanel1.Visible = false;
            ControlVistaHora controlVistaDocente = new ControlVistaHora();

            controlVistaDocente.iniciarHoras(this);
            asignarTamanioVentanaResponsivo(agh);
        }