Example #1
0
 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);
 }
Example #2
0
        private void OnLayerInvalidated(object sender, RectInt32InvalidatedEventArgs e)
        {
            ConcurrentSet <Layer> invalidatedLayers = this.invalidatedLayers;

            lock (invalidatedLayers)
            {
                this.invalidatedLayers.Add((Layer)sender);
            }
            PdnSynchronizationContext.Instance.EnsurePosted(this.processInvalidatedLayersCallback);
        }
Example #3
0
 private void DocumentInvalidated(object sender, RectInt32InvalidatedEventArgs e)
 {
 }