示例#1
0
        private void DoCaptureCommand(string schema, string command, string option)
        {
            var w = new WindowCapturer(serverUrl, option);

            this.commandObject = w;

            w.Finish += () =>
            {
                this.Close();
            };

            w.CaptureAndSend();
        }
示例#2
0
        private void ClipboardHelper_ItemCopied(object sender, ItemCopiedEventArgs e)
        {
            this.Snippet = snippetService.ExtractSnippet(e.Rtf);
            if (this.Snippet == null)
            {
                return;
            }
            this.Snippet.Marks        = new ObservableCollection <SnippetMark>();
            this.marksLst.ItemsSource = this.Snippet.Marks;

            var bitmap = WindowCapturer.Capture();

            var selection = BitmapHelper.GetSnippetSelection(bitmap);

            Snippet = BitmapHelper.CalculatePageSelection(Snippet, selection);

            LoadSnippet();
            this.Activate();
            OnNewSnippet(this.Snippet);
        }