public ModificarFamilia(Familia familia, MDIFamilias fFamilias) { this.familia = familia; this.fFamilias = fFamilias; InitializeComponent(); txtNombre.Text = this.familia.Nombre; }
private void btnFamilias_Click(object sender, EventArgs e) { //comprueba si ya esta abierto el formulario de familias Form existe = Application.OpenForms.OfType <Form>().Where(pre => pre.Name == "MDIFamilias").SingleOrDefault <Form>(); if (existe == null) { if (ActiveMdiChild != null) { ActiveMdiChild.Close(); } this.LayoutMdi(MdiLayout.TileHorizontal); Form f = new MDIFamilias(); f.MdiParent = this; f.Show(); f.WindowState = FormWindowState.Minimized; f.WindowState = FormWindowState.Maximized; } }
public CrearFamilia(MDIFamilias fFamilias) { this.fFamilias = fFamilias; InitializeComponent(); }