private void btnAddGroup_Click(object sender, EventArgs e) { var addUserGroupForm = new AddUserGroupForm(); var result = addUserGroupForm.ShowDialog(); if (result == DialogResult.OK) { this.btnAddUser.Enabled = true; } }
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(); } } }