Exemple #1
0
 private void TakeSnapshot_Click(object sender, EventArgs e)
 {
     using (TakeScreenShot snap = new TakeScreenShot())
     {
         Visible = false;
         snap.ShowDialog(this);
         Visible = true;
         BringToFront();
         if (snap.BackgroundImage != null)
         {
             snapShotImg.Image = snap.BackgroundImage;
         }
     }
     drawing.Enabled         = true;
     drawing.FlatStyle       = FlatStyle.Standard;
     snapShotImg.Cursor      = DefaultCursor;
     snapShotComment.Enabled = true;
 }
 private void TakeSnapshot_Click(object sender, EventArgs e)
 {
     using (TakeScreenShot snap = new TakeScreenShot())
     {
         form.Visible = false;
         snap.ShowDialog(this);
         form.Visible = true;
         BringToFront();
         if (snap.BackgroundImage != null)
         {
             snapShotImg.Image = snap.BackgroundImage;
         }
     }
     drawing.Enabled = true;
     drawing.FlatStyle = FlatStyle.Standard;
     snapShotImg.Cursor = DefaultCursor;
     snapShotComment.Enabled = true;
 }