Beispiel #1
0
        private async void MController_OfflineStrokeReceived(IPenClient sender, OfflineStrokeReceivedEventArgs args)
        {
            await this.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => {
                foreach (Stroke stroke in args.Strokes)
                {
                    DrawStroke(_canvasArchived, stroke);
                }

                _progressDialog.Update(args.AmountDone, args.Total);
            });
        }
        private async void MController_OfflineStrokeReceived(IPenClient sender, OfflineStrokeReceivedEventArgs args)
        {
            foreach (Stroke stroke in args.Strokes)
            {
                _strokes.Add(new CachedDrawableStroke(_color, _thickness, stroke));
            }

            await this.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => {
                _progressDialog.Update(args.AmountDone, args.Total);
            });

            drawableCanvas.Invalidate();
        }