示例#1
0
        protected void OnButtonAddClicked(object sender, EventArgs e)
        {
            UserDialog userDialog = new UserDialog(interactiveService);

            userDialog.ShowAll();
            if (userDialog.Run() == (int)ResponseType.Ok)
            {
                usersModel.UpdateUsers(chkShowInactive.Active);
            }

            userDialog.Destroy();
        }
示例#2
0
        private void EditUser()
        {
            if (treeviewUsers.GetSelectedObject() is UserBase selectedUser)
            {
                UserDialog userDialog = new UserDialog(selectedUser.Id, interactiveService);
                userDialog.ShowAll();
                if (userDialog.Run() == (int)ResponseType.Ok)
                {
                    usersModel.UpdateUsers(chkShowInactive.Active);
                }

                userDialog.Destroy();
            }
        }