Exemplo n.º 1
0
 public virtual bool CanCopy()
 {
     if (SelectedObjects.Length != 0)
     {
         return(SelectedObjects.All(obj => obj is Component));
     }
     return(false);
 }
Exemplo n.º 2
0
 public virtual bool CanCut()
 {
     if (SelectedObjects.Length != 0)
     {
         return(SelectedObjects.All(obj => obj is Component && ((Component)obj).Parent != null));
     }
     return(false);
 }