public grupos() { InitializeComponent(); this.lista.DefaultCellStyle.Font = new Font("Microsoft Sans Serif", 12); this.lista.DefaultCellStyle.SelectionForeColor = Color.White; this.lista.DefaultCellStyle.SelectionBackColor = Color.Orange; ControlVistaGrupo controlVistaGrupo = new ControlVistaGrupo(); controlVistaGrupo.iniciarGrupos(this); flowLayoutPanel1.Visible = false; //asignarTamanioVentanaResponsivo(agg); }
private void btn_agregar_Click(object sender, System.EventArgs e) { ControlVistaGrupo.opcion = "Registrar"; flowLayoutPanel1.Controls.Remove(agg); flowLayoutPanel1.Controls.Remove(mtg); agg = new agregargrupos(flowLayoutPanel1); ControlVistaGrupo.cargarValores(agg); agg.labelOpcion.Text = "AGREGAR GRUPO"; agg.TopLevel = false; agg.Visible = true; flowLayoutPanel1.Width = this.Width; flowLayoutPanel1.Height = this.Height; flowLayoutPanel1.Controls.Add(agg); asignarTamanioVentanaResponsivo(agg); flowLayoutPanel1.Visible = true; }