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