private void OnDocumentInvalidated(object sender, RectInt32InvalidatedEventArgs e) { this.invalidationQueue.Enqueue(e.InvalidRect); if (this.processInvalidationQueue == null) { this.processInvalidationQueue = new Action(this.ProcessInvalidationQueue); } PdnSynchronizationContext.Instance.EnsurePosted(this.processInvalidationQueue); }
private void OnLayerInvalidated(object sender, RectInt32InvalidatedEventArgs e) { ConcurrentSet <Layer> invalidatedLayers = this.invalidatedLayers; lock (invalidatedLayers) { this.invalidatedLayers.Add((Layer)sender); } PdnSynchronizationContext.Instance.EnsurePosted(this.processInvalidatedLayersCallback); }
private void DocumentInvalidated(object sender, RectInt32InvalidatedEventArgs e) { }