Example #1
0
 public override void SetBufferContents(Rectangle rectangle, BufferCell fill)
 {
     _control.CompleteBackgroundWorkItems();
     if (rectangle.Left == -1 && rectangle.Right == -1)
     {
         _control.ClearScreen();
     }
     else
     {
         // TODO: REIMPLEMENT PSHostRawUserInterface.SetBufferContents(Rectangle rectangle, BufferCell fill)
         throw new NotImplementedException("The SetBufferContents method is not (yet) implemented!");
     }
     //if (_control.Dispatcher.CheckAccess())
     // {
     //     _control.SetBufferContents(rectangle, fill);
     // }
     // else
     // {
     //    _control.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action)delegate
     //     {
     //         _control.SetBufferContents(rectangle, fill);
     //     });
     // }
 }