示例#1
0
        private void btnAddGroup_Click(object sender, EventArgs e)
        {
            var addUserGroupForm = new AddUserGroupForm();
            var result           = addUserGroupForm.ShowDialog();

            if (result == DialogResult.OK)
            {
                this.btnAddUser.Enabled = true;
            }
        }
示例#2
0
        private void btnAddGroup_Click(object sender, EventArgs e)
        {
            var addUserGroupForm = new AddUserGroupForm();
            var result           = addUserGroupForm.ShowDialog();

            if (result == DialogResult.OK)
            {
                using (var store = new Store())
                {
                    this.combGroup.DataSource = store.UserGroups.ToArray();
                }
            }
        }