protected override void ProcessRecord() { var t = new VisioScripting.Models.TargetDocuments(this.Documents); t.Resolve(this.Client); this.Client.Document.CloseDocuments(t, this.Force); }
public void CloseDocuments(VisioScripting.Models.TargetDocuments target_docs, bool force) { this._client.Output.WriteVerbose("Closing {0} documents", target_docs.Documents.Length); foreach (var target_doc in target_docs.Documents) { this._client.Output.WriteVerbose("Closing doc with ID={0} Name={1}", target_doc.ID, target_doc.Name); target_doc.Close(force); } }