public override void CoordinateSelection(object sender) { TBox selected = sender as TBox; if (selected == null || selected.Selected) { return; } if (_primary != null) { _primary.Selected = false; } if (_spouse != null) { _spouse.Selected = false; } if (_dad != null) { _dad.Selected = false; } if (_mom != null) { _mom.Selected = false; } selected.Selected = true; }
public override void CoordinateSelection(object sender) { TBox selected = sender as TBox; if (selected == null || selected.Selected) { return; } Primary.Selected = Spouse.Selected = false; Dad.Selected = Mom.Selected = false; selected.Selected = true; }