Exemplo n.º 1
0
        private void startCapture_Click(object sender, EventArgs e)
        {
            this.Hide();
            var frm = new SelectAreaForm();

            frm.InstanceRef = this;
            frm.Show();
            startCapture.Visible = false;
        }
Exemplo n.º 2
0
        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();
        }