private void grpDsp1_SelectionChange(GroupDisplayer sender) { Logger.EnteringMethod(); int total = sender.SelectedRules.Count + sender.SelectedGroups.Count; btnEdit.Enabled = (total == 1); btnDelete.Enabled = (total > 0); btnSaveRules.Enabled = (total > 0); if (sender.SelectedGroups.Count == 1) { btnAddAndGroup.Enabled = true; btnAddOrGroup.Enabled = true; btnAddRule.Enabled = true; btnLoadRules.Enabled = true; if (sender.Equals(grpDspPackageLevel)) { _currentGroupPackageLevel = sender.SelectedGroups[0]; } else { _currentGroupUpdateLevel = sender.SelectedGroups[0]; } } else { btnAddAndGroup.Enabled = false; btnAddOrGroup.Enabled = false; btnAddRule.Enabled = false; btnLoadRules.Enabled = false; } }
private void grpDsp1_EditionRequest(GroupDisplayer sender) { Logger.EnteringMethod(); sender.InnerGroup.Edit(); if (sender.Equals(grpDspUpdateLevel)) { grpDspUpdateLevel.Initialize(_masterGroupUpdateLevel); } else { grpDspPackageLevel.Initialize(_masterGroupPackageLevel); } }