예제 #1
0
        public void ApplyI18n([NotNull] I18n i18n)
        {
            this.ApplyI18nToChildren(i18n);

            string md   = i18n.Get(txtReadme.Text, this.GetI18nCompatibleParent().Name, Name, txtReadme.Name, nameof(TextBox.Text));
            string html = _mdToHtmlConverter.Convert(md);

            _wbReadme.DocumentText = html;
        }
예제 #2
0
        public void ApplyI18n(I18n i18n)
        {
            string path = GetReadmeMdPath(i18n);

            using TextReader reader = new StreamReader(path);
            string md   = reader.ReadToEnd();
            string html = _mdToHtmlConverter.Convert(md);

            _browser.DocumentText = html;
        }