public static string stringFromLightSelection(TypeLightSelection the_enum) { switch (the_enum) { case TypeLightSelection.LightSelection_LowBeams: return("LowBeams"); case TypeLightSelection.LightSelection_HighBeams: return("HighBeams"); case TypeLightSelection.LightSelection_FogLights: return("FogLights"); case TypeLightSelection.LightSelection_LeftTurnSignal: return("LeftTurnSignal"); case TypeLightSelection.LightSelection_RightTurnSignal: return("RightTurnSignal"); case TypeLightSelection.LightSelection_BothTurnSignals: return("BothTurnSignals"); case TypeLightSelection.LightSelection_HazardLights: return("HazardLights"); default: Debug.Assert(false); return(null); } }
public void setLightSelection(TypeLightSelection new_value) { flagHasLightSelection = true; storeLightSelection = new_value; }
protected override void handle_result(TypeLightSelection result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected override void handle_result(TypeLightSelection result) { top.value.Add(result); }
protected abstract void handle_result(TypeLightSelection result);