Пример #1
0
 private void Add_Users_Click(object sender, RoutedEventArgs e)
 {
     if (right.First() != "nada")
     {
         AddUsers addUsers = new AddUsers(right);
         addUsers.ShowDialog();
     }
 }
Пример #2
0
        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");
            }
        }