private void aclGroup_Click(object sender, EventArgs e, ACLSettingsGroup aclGroup) { this.latestUpdated = package.ACLSettingsGroups.IndexOf(aclGroup); latestACLGroup = aclGroup; renderActions(); pnlActions.Enabled = true; lblAclName.Text = aclGroup.Name; }
private void btnOk_Click(object sender, EventArgs e) { if (cbbGroupSelect.SelectedIndex == -1) { this.Close(); return; } SelectedGroup = cbbGroupSelect.SelectedItem as ACLSettingsGroup; this.Close(); }
public void initialize(List <DataModeling.ACLSettingsGroup> Groups) { this.Groups = Groups; cbbGroupSelect.Items.Clear(); this.SelectedGroup = null; if (Groups == null || Groups.Count == 0) { return; } cbbGroupSelect.DisplayMember = "Name"; foreach (var item in Groups.OrderBy(x => x.Name)) { cbbGroupSelect.Items.Add(item); } }
private void btnCancel_Click(object sender, EventArgs e) { this.SelectedGroup = null; this.Close(); }