private void btnDefineRegion_Click(object sender, EventArgs e) { BoundaryChooser choose = new BoundaryChooser(); choose.VideoFrame = background; choose.MotionRectangles = resultRegion; if (choose.ShowDialog() == DialogResult.OK) { resultRegion = choose.MotionRectangles; if (resultRegion.Count() == 0) { resultRegion = null; } } }
private void btnDefineRegion_Click(object sender, EventArgs e) { BoundaryChooser choose = new BoundaryChooser(); choose.VideoFrame = background; choose.MotionRectangles = resultRegion; if (choose.ShowDialog() == DialogResult.OK) { resultRegion = choose.MotionRectangles; if (resultRegion.Count() == 0) resultRegion = null; } }