private Outlook.OlImportance GetImportance(string sImportance) { Outlook.OlImportance oPriority = Outlook.OlImportance.olImportanceLow; switch (sImportance) { case "High": oPriority = Outlook.OlImportance.olImportanceHigh; break; case "Medium": oPriority = Outlook.OlImportance.olImportanceNormal; break; } return(oPriority); }
public static Outlook.OlImportance TASKPRIORITYConvertIntToOutlookOlImportance(int _tASKPRIORITY) { Outlook.OlImportance importance = Outlook.OlImportance.olImportanceHigh; switch (_tASKPRIORITY) { case 0: importance = Outlook.OlImportance.olImportanceLow; break; case 1: importance = Outlook.OlImportance.olImportanceNormal; break; case 2: importance = Outlook.OlImportance.olImportanceHigh; break; } return(importance); }