private void Add_Users_Click(object sender, RoutedEventArgs e) { if (right.First() != "nada") { AddUsers addUsers = new AddUsers(right); addUsers.ShowDialog(); } }
private void AddFirstUser() { AddUsers add = new AddUsers(roles); add.ShowDialog(); if (add.DialogResult.HasValue && add.DialogResult.Value) { MessageBox.Show("User clicked OK"); } else { MessageBox.Show("Vous n'avez pas enregistrer d'admin"); } }