private void BehindButtonClicked(object sender, RoutedEventArgs routedEventArgs) { TeacherMenu teacherMenu = new TeacherMenu(); teacherMenu.Show(); Close(); }
private void BackToMenu() { TeacherMenu teacherMenu = new TeacherMenu(_staffNumber); teacherMenu.Show(); this.Close(); }
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(); }
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(); } }