Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 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); };
     }
 }
Esempio n. 3
0
 private void Button1_Click(object sender, EventArgs e)
 {
     this.Result = this.Model.SelectedWindow;
     this.Close();
 }