public void LoadScreenshot(Action <Action <SelectWindow.Model> > dispatch, WindowService.Window window) { dispatch(model => model.LoadingScreehshotStarted()); var screenshot = this.screenshotService.TakeScreenshot(window.WindowHandle); dispatch(model => model.LoadingScreehshotFinished(screenshot)); }
public void SourceSelected(WindowService.Window window) { if (window != null) { this.Source = new WindowCaptureStream(window.WindowHandle) { FrameInterval = 1000 }; this.Effect = dispatch => { this._effects.Value.OpenVideoSource(this.Source); }; } }
private void Button1_Click(object sender, EventArgs e) { this.Result = this.Model.SelectedWindow; this.Close(); }