//Opens a window to confirm a user. private void confirmUsers_Click(object sender, RoutedEventArgs e) { // goes over to server and checks if I'm saved as an admin if (network.amIAdmin(myInfo.Name)) { // good, I'm an admin, now I can confirm other users List <string> unconfirmedUsers = network.getUnconfirmedUsers(); ConfirmUsers confirmUserWindow = new ConfirmUsers(unconfirmedUsers, this); confirmUserWindow.ShowDialog(); } else { // Whoops! Looks like you're not an admin, not soup for you! System.Windows.MessageBox.Show("You're Not an Admin Bro!"); } }
//Opens a window to confirm a user. private void confirmUsers_Click(object sender, RoutedEventArgs e) { // goes over to server and checks if I'm saved as an admin if (network.amIAdmin(myInfo.Name)) { // good, I'm an admin, now I can confirm other users List<string> unconfirmedUsers = network.getUnconfirmedUsers(); ConfirmUsers confirmUserWindow = new ConfirmUsers(unconfirmedUsers, this); confirmUserWindow.ShowDialog(); } else { // Whoops! Looks like you're not an admin, not soup for you! System.Windows.MessageBox.Show("You're Not an Admin Bro!"); } }