Changeset 14255 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/SymbolicDataAnalysisModelMathView.cs
- Timestamp:
- 08/16/16 12:04:56 (8 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/SymbolicDataAnalysisModelMathView.cs
r14254 r14255 29 29 [View("Mathematical Representation")] 30 30 [Content(typeof(ISymbolicDataAnalysisModel))] 31 public partial class MathSymbolicDataAnalysisModelView : AsynchronousContentView {32 pr ivate SymbolicDataAnalysisExpressionLatexFormatter formatter = new SymbolicDataAnalysisExpressionLatexFormatter();33 public MathSymbolicDataAnalysisModelView()31 public partial class SymbolicDataAnalysisModelMathView : AsynchronousContentView { 32 protected readonly SymbolicDataAnalysisExpressionLatexFormatter Formatter = new SymbolicDataAnalysisExpressionLatexFormatter(); 33 public SymbolicDataAnalysisModelMathView() 34 34 : base() { 35 35 InitializeComponent(); … … 60 60 if (Content != null) { 61 61 HtmlElement newElement = webBrowser.Document.GetElementById("model"); 62 newElement.InnerText = formatter.Format(Content.SymbolicExpressionTree);62 newElement.InnerText = GetFormattedTree(); 63 63 webBrowser.Document.InvokeScript("refreshModel"); 64 64 } else { … … 67 67 } 68 68 } 69 70 protected virtual string GetFormattedTree() { 71 return Formatter.Format(Content.SymbolicExpressionTree); 72 } 69 73 } 70 74 }
Note: See TracChangeset
for help on using the changeset viewer.