private void startCapture_Click(object sender, EventArgs e) { this.Hide(); var frm = new SelectAreaForm(); frm.InstanceRef = this; frm.Show(); startCapture.Visible = false; }
public void OnAreaSelected(Point topLeft, Point bottomRight, SelectAreaForm frm) { topLeftPoint = topLeft; captureSize = new Size(bottomRight.X - topLeft.X, bottomRight.Y - topLeft.Y); frm.Close(); this.Show(); StartCapturing(); }