Ejemplo n.º 1
0
    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);
        }
    }
Ejemplo n.º 2
0
 public void setLightSelection(TypeLightSelection new_value)
 {
     flagHasLightSelection = true;
     storeLightSelection   = new_value;
 }
Ejemplo n.º 3
0
            protected override void handle_result(TypeLightSelection result)
            {
//@@@        Debug.Assert(!have_value);
                have_value = true;
                value      = result;
            }
Ejemplo n.º 4
0
 protected override void handle_result(TypeLightSelection result)
 {
     top.value.Add(result);
 }
Ejemplo n.º 5
0
 protected abstract void handle_result(TypeLightSelection result);