private string GetActionDisplayText(ActionPropertyType type, string name, string value) { switch (type) { case ActionPropertyType.SmartLabel: SmartLabelType smartLabel; if (SmartLabelTypes.TryGetValue(value, out smartLabel)) { switch (smartLabel) { case SmartLabelType.Personal: return("Categorize as personal"); case SmartLabelType.Social: return("Categorize as social"); case SmartLabelType.Promotions: return("Categorize as promotions"); case SmartLabelType.Notification: return("Categorize as updates"); case SmartLabelType.Group: return("Categorize as forums"); } } break; } return(GetDefaultDisplayText(name, value)); }
public bool GetIsBooleanProperty(ActionPropertyType type) { switch (type) { case ActionPropertyType.ArchiveIt: case ActionPropertyType.MarkAsRead: case ActionPropertyType.StarIt: case ActionPropertyType.DeleteIt: case ActionPropertyType.NeverSendToSpam: case ActionPropertyType.AlwaysImportant: case ActionPropertyType.NeverImportant: return(true); default: return(false); } }
private string GetActionDisplayText(ActionPropertyType type, string name, string value) { switch (type) { case ActionPropertyType.SmartLabel: SmartLabelType smartLabel; if (SmartLabelTypes.TryGetValue(value, out smartLabel)) { switch (smartLabel) { case SmartLabelType.Personal: return "Categorize as personal"; case SmartLabelType.Social: return "Categorize as social"; case SmartLabelType.Promotions: return "Categorize as promotions"; case SmartLabelType.Notification: return "Categorize as updates"; case SmartLabelType.Group: return "Categorize as forums"; } } break; } return GetDefaultDisplayText(name, value); }
public bool GetIsBooleanProperty(ActionPropertyType type) { switch (type) { case ActionPropertyType.ArchiveIt: case ActionPropertyType.MarkAsRead: case ActionPropertyType.StarIt: case ActionPropertyType.DeleteIt: case ActionPropertyType.NeverSendToSpam: case ActionPropertyType.AlwaysImportant: case ActionPropertyType.NeverImportant: return true; default: return false; } }