Inheritance: System.Windows.Forms.Form
Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public void setChild(AAddAsig form1, AGestTurn form2)
 {
     childNew = form1;
     childTur = form2;
 }