private void OnCSChanged(object sender, EventArgs e) { switch (CheckedState) { case CheckedState.Checked: if (_unstaged != null) { _unstaged.Stage(); } break; case CheckedState.Unchecked: if (_staged != null) { _staged.Unstage(); } break; } }