Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 internal static bool TryGetFontInfo(string name, out FontLangInfo langInfo)
 {
     return(LanguageMap.TryGetValue(name, out langInfo));
 }
Ejemplo n.º 3
0
 internal static bool TryGetFontInfo(string name, out FontLangInfo langInfo)
 {
     return LanguageMap.TryGetValue(name, out langInfo);
 }