Exemplo n.º 1
0
 public RedlineTextBuilder(RenderingOptions renderingOptions)
 {
     m_opts = renderingOptions;
     m_opts.BuildBrushes();
     SearchHighlight.BackgroundBrush = Brushes.Yellow;
     SearchHighlight.ForegroundBrush = Brushes.Black;
 }
Exemplo n.º 2
0
		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));
			}
		}
Exemplo n.º 3
0
 public TerLikeCharCounter(RenderingOptions opts)
 {
     _renderingOptions = opts;
 }