예제 #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
파일: Login.xaml.cs 프로젝트: AdairHdz/SPP
 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();
     }
 }