Exemplo n.º 1
0
        private void bManageAccess_Click(object sender, RoutedEventArgs e)
        {
            if (listBox.SelectedItem != null)
            {
                Person person = (listBox.SelectedItem as ListBoxItem).Tag as Person;

                UserWizard uw = new UserWizard {
                    person = person, faceGroupID = faceGroupID, Owner = this
                };
                var response = uw.ShowDialog();
                if (response != null)
                {
                    if (response == true)
                    {
                        //Refresh User List
                        LoadAllowedUsers();

                        if (FaceChangesMade)
                        {
                            bSave_Click(bSave, new RoutedEventArgs());
                        }
                    }
                }
            }
            else
            {
                MessageBox.Show("Please select a user first!");
            }
        }
Exemplo n.º 2
0
        private void bAddUser_Click(object sender, RoutedEventArgs e)
        {
            UserWizard uw = new UserWizard {
                faceGroupID = faceGroupID, Owner = this
            };
            var response = uw.ShowDialog();

            if (response != null)
            {
                if (response == true)
                {
                    //Refresh User List
                    LoadAllowedUsers();

                    if (FaceChangesMade)
                    {
                        bSave_Click(bSave, new RoutedEventArgs());
                    }
                }
            }
        }