コード例 #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);
 }