protected void OnSelectedItemsChange(object sender, SelectedItemsChangeEventArgs args) { if (SelectedItemsChanged != null) { SelectedItemsChanged(sender, args); } }
protected void DirectivesViewerSelectedItemsChanged(object sender, SelectedItemsChangeEventArgs e) { if (DirectivesViewer.SelectedItems.Count > 0) { buttonDeleteSelected.Enabled = !ViewedType.IsSubclassOf(typeof(StaticDictionary)); headerControl.EditButtonEnabled = true; } else { headerControl.EditButtonEnabled = false; buttonDeleteSelected.Enabled = false; } }