Changeset 11065 for trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionTreeChart.cs
- Timestamp:
- 07/01/14 14:14:26 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionTreeChart.cs
r10885 r11065 385 385 #region export pgf/tikz 386 386 private void exportLatexToolStripMenuItem_Click(object sender, EventArgs e) { 387 var t = Tree; 388 if (t == null) return; 387 389 using (var dialog = new SaveFileDialog { Filter = "Tex (*.tex)|*.tex" }) { 388 390 if (dialog.ShowDialog() != DialogResult.OK) return; 389 391 string filename = dialog.FileName.ToLower(); 390 392 var formatter = new SymbolicExpressionTreeLatexFormatter(); 391 File.WriteAllText(filename, formatter.Format( Tree));393 File.WriteAllText(filename, formatter.Format(t)); 392 394 } 393 395 }
Note: See TracChangeset
for help on using the changeset viewer.