private void MainFrame_Load(object sender, EventArgs e)
        {
            LoginForm      loginChild  = new LoginForm();
            AdminForm      adminChild  = new AdminForm();
            OrderForm      orderChild  = new OrderForm();
            FormController formControl = new FormController(loginChild, orderChild, adminChild);

            loginChild.addController(formControl);
            adminChild.addController(formControl);
            orderChild.addController(formControl);

            loginChild.MdiParent = this;
            adminChild.MdiParent = this;
            orderChild.MdiParent = this;

            formControl.showLoginForm();
        }
 private void btn_logout_Click(object sender, EventArgs e)
 {
     formController.showLoginForm();
 }
Exemple #3
0
 // ----------------------------------------------------------
 // Returns user to the login window
 // ----------------------------------------------------------
 private void logout_btn_Click(object sender, EventArgs e)
 {
     formController.showLoginForm();
     controller.onAdminClose();
 }