/// <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); }
/// <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); }