public void LoadSummary() { try { if (string.IsNullOrEmpty(RedlineMlPath)) return; if (!System.IO.File.Exists(RedlineMlPath)) return; TextReader reader = File.OpenText(RedlineMlPath); string ml = reader.ReadToEnd(); if (_summaryTree == null) _summaryTree = SummaryTree.Create(ml, null, GetRenderingOptions()); } catch (Exception ex) { Workshare.Interop.Logging.Logger.LogError(ex); throw; } }
public static SummaryTree Create(object redlineML, object oStatusXML, Dictionary<string, object> renderingOptions) { SummaryTree result = new SummaryTree(); result.Load(redlineML, oStatusXML, renderingOptions); return result; }