示例#1
0
        private void BehindButtonClicked(object sender, RoutedEventArgs routedEventArgs)
        {
            TeacherMenu teacherMenu = new TeacherMenu();

            teacherMenu.Show();
            Close();
        }
示例#2
0
        private void BackToMenu()
        {
            TeacherMenu teacherMenu = new TeacherMenu(_staffNumber);

            teacherMenu.Show();
            this.Close();
        }
示例#3
0
        private void CatchDBException()
        {
            MessageBox.Show("No hay conexión con la base de datos. Intente más tarde.");
            TeacherMenu teacherMenu = new TeacherMenu(_staffNumber);

            teacherMenu.Show();
            this.Close();
        }
示例#4
0
 private void OpenWindowUser()
 {
     if (!accountReceived.FirstLogin)
     {
         if (user.UserType == UserType.Coordinator)
         {
             CoordinatorMenu coordinatorMenu = new CoordinatorMenu();
             CoordinatorMenu.User = user;
             coordinatorMenu.Show();
             Close();
         }
         else
         {
             if (user.UserType == UserType.Practicioner)
             {
                 PracticionerMenu practicionerMenu = new PracticionerMenu(TextBoxUsername.Text);
                 ReportList._User = user;
                 practicionerMenu.Show();
                 Close();
             }
             else
             {
                 if (user.UserType == UserType.Manager)
                 {
                     ManagerMenu managerMenu = new ManagerMenu();
                     managerMenu.Show();
                     Close();
                 }
                 else
                 {
                     string      staffNumber = GetStaffNumberTeacher();
                     TeacherMenu teacherMenu = new TeacherMenu(staffNumber);
                     TeacherMenu._User = user;
                     teacherMenu.Show();
                     Close();
                 }
             }
         }
     }
     else
     {
         FirstLogin firstLogin = new FirstLogin();
         firstLogin.InitializeAccount(accountReceived);
         firstLogin.Show();
         Close();
     }
 }