public AdminForm() { InitializeComponent(); bienvenidaForm = new ABienvenida(); gestionUserForm = new AGestUser(); gestionAsigForm = new AGestAsig(); addAsigForm = new AAddAsig(); addUserForm = new AAddUser(); gestTurnForm = new AGestTurn(); gestionUserForm.setChild(addUserForm); addUserForm.setParent(gestionUserForm); gestionAsigForm.setChild(addAsigForm, gestTurnForm); addAsigForm.setParent(gestionAsigForm); addAsigForm.setChild(gestTurnForm); addAsigForm.setChild(gestTurnForm); bienvenidaForm.MdiParent = this; gestionUserForm.MdiParent = this; gestionAsigForm.MdiParent = this; addAsigForm.MdiParent = this; addUserForm.MdiParent = this; gestTurnForm.MdiParent = this; }
public void setChild(AAddAsig form1, AGestTurn form2) { childNew = form1; childTur = form2; }
public void setParent(AGestAsig form) { parentGest = form; parentAdd = null; }
public void setParent(AAddAsig form) { parentGest = null; parentAdd = form; }