public void OnByComponentClicked(object sender, EventArgs e) { if (!ByComponentVectorCheckBox.Checked) { WholeVectorCheckBox.Checked = false; ByComponentVectorCheckBox.Checked = true; Directionality.ToByComponent(); } }