Esempio n. 1
0
 private void SnippingForm_AreaSelected(Rectangle rect)
 {
     while (_sfQueue.Count > 0)
     {
         SnippingForm form = _sfQueue.Dequeue();
         form.AreaSelected -= SnippingForm_AreaSelected;
         form.Close();
     }
     _areaSnippingMode = false;
     ShowPreview(CaptureHelper.Capture(rect));
 }
Esempio n. 2
0
 private void cmsiCaptureArea_Click(object sender, EventArgs e)
 {
     if (_areaSnippingMode)
     {
         return;
     }
     _areaSnippingMode = true;
     foreach (Screen screen in Screen.AllScreens)
     {
         SnippingForm form = new SnippingForm(screen);
         _sfQueue.Enqueue(form);
         form.AreaSelected += SnippingForm_AreaSelected;
         form.Show();
     }
 }