private void btnAdminMode_Click(object sender, RoutedEventArgs Admin admin = new Admin(); admin.Show(); }
private void btnOK_Click(object sender, RoutedEventArgs e) { if (ptxtPassword.Password == "tqty") { string msgtext = "Correct!\nAdministrator Rights are now ON"; string txt = "Password"; MessageBoxButton button = MessageBoxButton.OK; MessageBox.Show(msgtext, txt, button); this.Close(); } else { string msgtext = "Incorrect Password"; string txt = "Password"; MessageBoxButton button = MessageBoxButton.OK; MessageBox.Show(msgtext, txt, button); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)