private void SetOutputDepth(OutputDepths depth) { sixteenBppToolStripMenuItem.Checked = depth == OutputDepths.SixteenBitsPerPixel; twentyFourBppToolStripMenuItem1.Checked = depth == OutputDepths.TwentyFourBitsPerPixel; currentDepthToolStripMenuItem.Checked = depth == OutputDepths.CurrentDepth; }