public RedlineTextBuilder(RenderingOptions renderingOptions) { m_opts = renderingOptions; m_opts.BuildBrushes(); SearchHighlight.BackgroundBrush = Brushes.Yellow; SearchHighlight.ForegroundBrush = Brushes.Black; }
private void Load(object redlineML, object oStatusXML, Dictionary<string, object> renderingOptions) { try { m_renderingOptions = new RenderingOptions(renderingOptions); m_rtb = new RedlineTextBuilder(m_renderingOptions); LoadChangeSummaryItems(redlineML); CountCharacters(); BuildNodeTrees(); if (oStatusXML != null) LoadChangeStatus(oStatusXML); } catch (Exception ex) { Logger.LogError(ex); if (AllChangesNode == null) CreateRootNodes(); AllChangesNode.ChildNodes.Add(new SummaryCategoryNode("The change summary could not be loaded.", ChangeCategory.AllChanges)); CategorizedChangesNode.ChildNodes.Add(new SummaryCategoryNode("The change summary could not be loaded.", ChangeCategory.CategorizedChanges)); } }
public TerLikeCharCounter(RenderingOptions opts) { _renderingOptions = opts; }