/// <summary> /// get Consumable Category name to display /// </summary> /// <param name="category">Consumable Category</param> /// <returns>category name</returns> public static string GetCategoryName(ConsumableCategory category) { switch (category) { case ConsumableCategory.PatchElectrodes: return(Translations.Language.Label_PatchElectrodes); case ConsumableCategory.StimProbe: return(Translations.Language.Label_StimProbe); case ConsumableCategory.ManometryProbe: return(Translations.Language.Label_ManometryProbe); case ConsumableCategory.ManometryTubing: return(Translations.Language.Label_ManometryTubing); case ConsumableCategory.EmgProbe: return(Translations.Language.Label_EMGProbe); case ConsumableCategory.PvesCatheter: return(Translations.Language.Label_PvesCatheter); case ConsumableCategory.PabdCatheter: return(Translations.Language.Label_PabdCatheter); case ConsumableCategory.PuraCatheter: return(Translations.Language.Label_PuraCatheter); case ConsumableCategory.VinfCatheter: return(Translations.Language.Label_VinfCatheter); case ConsumableCategory.VinfTubing: return(Translations.Language.Label_VinfTubing); } return(string.Empty); }
private static void AddConsumableCategory(List <ConsumableCategory> categories, bool isFeatureExisted, ConsumableCategory category) { if (isFeatureExisted) { categories.Add(category); } }