Пример #1
0
        private void UpdateTopicDetails(ITopic helpTopic)
        {
            if (helpTopic == null)
            {
                return;
            }
            _helpTopic = helpTopic;     //remember in global

            // Details View

            detailsRichTextBox.Clear();
            RichTextBoxFuncs rtf = new RichTextBoxFuncs(detailsRichTextBox);

            rtf.WriteLine("topic.Category", ExpandStringList(_helpTopic.Category()));
            rtf.WriteLine("topic.ContentFilter", ExpandStringList(_helpTopic.ContentFilter()));
            rtf.WriteLine("topic.ContentType", ExpandStringList(_helpTopic.ContentType()));
            rtf.WriteLine("topic.Description", _helpTopic.Description);
            rtf.WriteLine("topic.DisplayVersion", _helpTopic.DisplayVersion);
            rtf.WriteLine("topic.Id", _helpTopic.Id);
            rtf.WriteLine("topic.Locale", _helpTopic.Locale);
            rtf.WriteLine("topic.Package", _helpTopic.Package);
            rtf.WriteLine("topic.ParentId", _helpTopic.ParentId);
            rtf.WriteLine("topic.TableOfContentsHasChildren", _helpTopic.TableOfContentsHasChildren.ToString());
            rtf.WriteLine("topic.TableOfContentsPosition", _helpTopic.TableOfContentsPosition.ToString());
            rtf.WriteLine("topic.Title", _helpTopic.Title);
            rtf.WriteLine("topic.TopicLocale", _helpTopic.TopicLocale);
            rtf.WriteLine("topic.TopicVersion", _helpTopic.TopicVersion);
            rtf.WriteLine("topic.Url", _helpTopic.Url);
            rtf.WriteLine("topic.Vendor", _helpTopic.Vendor);
        }
Пример #2
0
        private void UpdateTopicDetails(ITopic helpTopic)
        {
            if (helpTopic == null)
                return;
            _helpTopic = helpTopic;     //remember in global

            // Details View

            detailsRichTextBox.Clear();
            RichTextBoxFuncs rtf = new RichTextBoxFuncs(detailsRichTextBox);

            rtf.WriteLine("topic.Category", ExpandStringList(_helpTopic.Category()));
            rtf.WriteLine("topic.ContentFilter", ExpandStringList(_helpTopic.ContentFilter()));
            rtf.WriteLine("topic.ContentType", ExpandStringList(_helpTopic.ContentType()));
            rtf.WriteLine("topic.Description", _helpTopic.Description);
            rtf.WriteLine("topic.DisplayVersion", _helpTopic.DisplayVersion);
            rtf.WriteLine("topic.Id", _helpTopic.Id);
            rtf.WriteLine("topic.Locale", _helpTopic.Locale);
            rtf.WriteLine("topic.Package", _helpTopic.Package);
            rtf.WriteLine("topic.ParentId", _helpTopic.ParentId);
            rtf.WriteLine("topic.TableOfContentsHasChildren", _helpTopic.TableOfContentsHasChildren.ToString());
            rtf.WriteLine("topic.TableOfContentsPosition", _helpTopic.TableOfContentsPosition.ToString());
            rtf.WriteLine("topic.Title", _helpTopic.Title);
            rtf.WriteLine("topic.TopicLocale", _helpTopic.TopicLocale);
            rtf.WriteLine("topic.TopicVersion", _helpTopic.TopicVersion);
            rtf.WriteLine("topic.Url", _helpTopic.Url);
            rtf.WriteLine("topic.Vendor", _helpTopic.Vendor);
        }