public TestLight(IUpdateActionParent parent, IApiVersion3 logicalDevice) : base(logicalDevice) { parent.AddUpdateAction(() => { lock (lockObject) { if (this.newDataAvailable) { this.newDataAvailable = false; Output(); } } }); }
public TestLight(IUpdateActionParent parent, IApiVersion3 logicalDevice) : base(logicalDevice) { parent.AddUpdateAction(() => { lock (lockObject) { if (this.performUpdate) { this.performUpdate = false; if (this.hasNewData) { this.control.Invalidate(); } } } }); }
private TestPixel1D(IUpdateActionParent parent, int numberOfPixels) { this.numberOfPixels = numberOfPixels; parent.AddUpdateAction(() => { lock (lockObject) { if (this.newDataAvailable) { this.newDataAvailable = false; if (control != null) control.SetImage(this.outputBitmap); } } }); Executor.Current.Register(this); }
public TestPixel2D(IUpdateActionParent parent, int pixelWidth, int pixelHeight) { this.pixelWidth = pixelWidth; this.pixelHeight = pixelHeight; parent.AddUpdateAction(() => { lock (lockObject) { if (this.newDataAvailable) { this.newDataAvailable = false; if (control != null) control.SetImage(this.outputBitmap); } } }); Executor.Current.Register(this); }
private TestPixel1D(IUpdateActionParent parent, int numberOfPixels) { this.numberOfPixels = numberOfPixels; parent.AddUpdateAction(() => { lock (lockObject) { if (this.newDataAvailable) { this.newDataAvailable = false; if (control != null) { control.SetImage(this.outputBitmap); } } } }); Executor.Current.Register(this); }
public TestPixel2D(IUpdateActionParent parent, int pixelWidth, int pixelHeight) { this.pixelWidth = pixelWidth; this.pixelHeight = pixelHeight; parent.AddUpdateAction(() => { lock (lockObject) { if (this.newDataAvailable) { this.newDataAvailable = false; if (control != null) { control.SetImage(this.outputBitmap); } } } }); Executor.Current.Register(this); }