private void twoFramesDifferenceToolStripMenuItem_Click(object sender, EventArgs e) { motionDetectionType = 1; SetMotionDetectionAlgorithm(new TwoFramesDifferenceDetector()); }