/// <summary> /// Action for the composite zoom in button. Performs a 3x zoom in. /// </summary> /// <returns>A Task that represents the CompositeZoomIn method</returns> private Task CompositeZoomIn() { // composite operations need to be created on the worker thread return(QueuedTask.Run(() => { this.OperationManager.CreateCompositeOperation(() => { for (int idx = 0; idx < 3; idx++) { MyZoomOperation op = new MyZoomOperation(true); this.OperationManager.Do(op); } }, "Zoom In 3x"); })); }
private async Task FixedZoomOut() { MyZoomOperation op = new MyZoomOperation(false); await this.OperationManager.DoAsync(op); }
/// <summary> /// Action for the composite zoom in button. Performs a 3x zoom in. /// </summary> /// <returns>A Task that represents the CompositeZoomIn method</returns> private Task CompositeZoomIn() { // composite operations need to be created on the worker thread return QueuedTask.Run(() => { this.OperationManager.CreateCompositeOperation(() => { for (int idx = 0; idx < 3; idx++) { MyZoomOperation op = new MyZoomOperation(true); this.OperationManager.Do(op); } }, "Zoom In 3x"); }); }