Пример #1
0
        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;
        }
Пример #2
0
 public void setChild(AAddAsig form1, AGestTurn form2)
 {
     childNew = form1;
     childTur = form2;
 }
Пример #3
0
 public void setParent(AGestAsig form)
 {
     parentGest = form;
     parentAdd = null;
 }
Пример #4
0
 public void setParent(AAddAsig form)
 {
     parentGest = null;
     parentAdd = form;
 }