public void Update(ShapeSheetUpdate update, bool blastguards, bool testcircular) { this.AssertApplicationAvailable(); this.AssertDocumentAvailable(); this.Client.WriteVerbose("Staring ShapeSheet Update"); var surface = this.Client.Draw.GetDrawingSurfaceSafe(); using (var undoscope = new VA.Application.UndoScope(this.Client.VisioApplication, "Update ShapeSheet Formulas")) { var internal_update = update.update; internal_update.BlastGuards = blastguards; internal_update.TestCircular = testcircular; this.Client.WriteVerbose("BlastGuards={0}", blastguards); this.Client.WriteVerbose("TestCircular={0}", testcircular); internal_update.Execute(surface); } this.Client.WriteVerbose("Ending ShapeSheet Update"); }
public void Update(ShapeSheetUpdate update, bool blastguards, bool testcircular) { this._client.Application.AssertApplicationAvailable(); this._client.Document.AssertDocumentAvailable(); this._client.WriteVerbose("Staring ShapeSheet Update"); var surface = this._client.ShapeSheet.GetShapeSheetSurface(); var application = this._client.Application.Get(); using (var undoscope = this._client.Application.NewUndoScope("Update ShapeSheet Formulas")) { var internal_update = update.update; internal_update.BlastGuards = blastguards; internal_update.TestCircular = testcircular; this._client.WriteVerbose("BlastGuards={0}", blastguards); this._client.WriteVerbose("TestCircular={0}", testcircular); internal_update.Execute(surface); } this._client.WriteVerbose("Ending ShapeSheet Update"); }