private void UIController_ObjectDeleting(object sender, ObjectDeletingEventArgs e) { if (UI.PropertyGrid.SelectedObjects.Contains(e.TabularObject)) { UI.PropertyGrid.SelectedObject = null; } }
internal bool CheckObjectDeleting(object item) { if (ObjectDeleting != null) { ObjectDeletingEventArgs args = new ObjectDeletingEventArgs(item); ObjectDeleting(this, args); if (args.Cancel) { return(false); } } return(true); }