public static string ToDescription(this TriggerSources triggerSources) { switch (triggerSources) { case TriggerSources.Fixations: return(Resources.FIXATIONS_DWELL); case TriggerSources.KeyboardKeyDownsUps: return(Resources.KEYBOARD_KEY); case TriggerSources.MouseButtonDownUps: return(Resources.MOUSE_BUTTON); } return(triggerSources.ToString()); }
public static string ToDescription(this TriggerSources triggerSources) { switch (triggerSources) { case TriggerSources.Fixations: return("Fixations (dwell)"); case TriggerSources.KeyboardKeyDownsUps: return("Keyboard key"); case TriggerSources.MouseButtonDownUps: return("Mouse button"); } return(triggerSources.ToString()); }