/// <summary> /// Translate boolean to on or off localized. /// </summary> /// <param name="value">The boolean value.</param> /// <returns>Returns on localized when boolean is true else it will return off localized.</returns> private static string ToEnabledDisabledString(bool value) { return(value ? On.GetString() : Off.GetString()); }