public static ItemTypes TranslateItemType(string itemType) { ItemTypes itemResult; ItemTypes.TryParse(itemType, out itemResult); return(itemResult); }