Exemplo n.º 1
0
        /// <summary>
        /// Deletes the given model obejcts and their attached shapes
        /// </summary>
        /// <param name="modelObjects"></param>
        public void DeleteModelObjects(IEnumerable <IModelObject> modelObjects)
        {
            if (modelObjects == null)
            {
                throw new ArgumentNullException("modelObjects");
            }
            ICommand cmd = new DeleteModelObjectsCommand(modelObjects);

            Project.ExecuteCommand(cmd);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Deletes the given model obejcts and their attached shapes
 /// </summary>
 /// <param name="modelObjects"></param>
 public void DeleteModelObjects(IEnumerable<IModelObject> modelObjects)
 {
     if (modelObjects == null) throw new ArgumentNullException("modelObjects");
     ICommand cmd = new DeleteModelObjectsCommand(modelObjects);
     Project.ExecuteCommand(cmd);
 }