public static Styles.Color GetStyleColorByState(MachineStateUIStateEnum state) { Styles.Color c = Styles.Color.Gray; switch (state) { case MachineStateUIStateEnum.Normal: c = Styles.Color.Gray; break; case MachineStateUIStateEnum.Running: c = Styles.Color.Green; break; case MachineStateUIStateEnum.select: c = Styles.Color.Blue; break; } return(c); }
public static Color GetColorByState(MachineStateUIStateEnum state) { Color c = Color.white; switch (state) { case MachineStateUIStateEnum.Normal: c = Color.white; break; case MachineStateUIStateEnum.Running: c = Color.green; break; case MachineStateUIStateEnum.select: c = Color.blue; break; } return(c); }