private void BackButton_Click(object sender, RoutedEventArgs e) { InstructorMenu instructorMenu = new InstructorMenu(); this.Hide(); instructorMenu.Show(); }
private void LoginButton_Click(object sender, RoutedEventArgs e) { if (AdminloginNameTxt.Text == "admin" && AdminloginPasswordTxt.Password == "admin123") { AdminloginNameTxt.Clear(); AdminloginPasswordTxt.Clear(); if (path == "help") { ChatBot_Loader chatBot_Loader = new ChatBot_Loader(); this.Hide(); chatBot_Loader.Show(); } if (path == "instructor") { InstructorMenu instructorMenu = new InstructorMenu(); this.Hide(); instructorMenu.Show(); } } else { MsgProfile msgBox = new MsgProfile("Incorrect Username or Password!!"); msgBox.Show(); AdminloginNameTxt.Clear(); AdminloginPasswordTxt.Clear(); } }