Exemplo n.º 1
0
        void wnd_Closed(object sender, EventArgs e)
        {
            WndUsers wnd = (WndUsers)sender;

            if (wnd.DialogResult == true && wnd.SelectedUser != null)
            {
                this.Group.Members.Add(wnd.SelectedUser);
                RefreshMembersListBox();
            }
        }
Exemplo n.º 2
0
        private void btnAddMember_Click(object sender, RoutedEventArgs e)
        {
            List <User> users =
                (from u in new XPQuery <User>(session)
                 where !this.Group.Members.Contains(u)
                 select u).ToList();

            WndUsers wnd = new WndUsers(users, Group.Name);

            wnd.Closed += new EventHandler(wnd_Closed);
            wnd.Show();
        }