public void UpdateRecord(BaseRecord sc) { if (sc == null) { this.UpdateText(string.Empty); return; } FontLangInfo defLang; if (!Encoding.TryGetFontInfo(Domain.Properties.Settings.Default.LocalizationName, out defLang)) { defLang = new FontLangInfo(1252, 1033, 0); } var rb = new RTFBuilder(RTFFont.Arial, 16, defLang.lcid, defLang.charset); sc.GetFormattedHeader(rb); sc.GetFormattedData(rb); this.rtfInfo.Rtf = rb.ToString(); }
internal static bool TryGetFontInfo(string name, out FontLangInfo langInfo) { return(LanguageMap.TryGetValue(name, out langInfo)); }
internal static bool TryGetFontInfo(string name, out FontLangInfo langInfo) { return LanguageMap.TryGetValue(name, out langInfo); }