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