Changeset 18142 for branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4
- Timestamp:
- 12/16/21 11:22:29 (3 years ago)
- Location:
- branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicExpressionTreeChart.cs
r18115 r18142 104 104 var symbol = dialog.SelectedSymbol; 105 105 var node = symbol.CreateTreeNode(); 106 if (node is INumericTreeNode numTreeNode) {106 if (node is NumberTreeNode numTreeNode) { 107 107 numTreeNode.Value = double.Parse(dialog.numberValueTextBox.Text); 108 108 } else if (node is VariableTreeNode) { … … 132 132 ISymbolicExpressionTreeNode newNode = null; 133 133 var result = DialogResult.Cancel; 134 if (node is INumericTreeNode) {134 if (node is NumberTreeNode) { 135 135 using (var dialog = new NumberNodeEditDialog(node)) { 136 136 dialog.ShowDialog(this); -
branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/TreeEditDialogs/SymbolicExpressionTreeConstantNodeEditDialog.cs
r18115 r18142 29 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Views { 30 30 public partial class NumberNodeEditDialog : Form { 31 private INumericTreeNode numberTreeNode;32 public INumericTreeNode NewNode {31 private NumberTreeNode numberTreeNode; 32 public NumberTreeNode NewNode { 33 33 get { return numberTreeNode; } 34 34 set { 35 35 if (InvokeRequired) 36 Invoke(new Action<SymbolicExpressionTreeNode>(x => numberTreeNode = ( INumericTreeNode)x), value);36 Invoke(new Action<SymbolicExpressionTreeNode>(x => numberTreeNode = (NumberTreeNode)x), value); 37 37 else 38 38 numberTreeNode = value; … … 43 43 InitializeComponent(); 44 44 oldValueTextBox.TabStop = false; // cannot receive focus using tab key 45 NewNode = ( INumericTreeNode)node;45 NewNode = (NumberTreeNode)node; 46 46 InitializeFields(); 47 47 } … … 103 103 // we impose an extra validation condition: that the new value is different from the original value 104 104 if (numberTreeNode.Value.Equals(value)) return; 105 106 105 numberTreeNode.Value = value; 107 106 DialogResult = DialogResult.OK;
Note: See TracChangeset
for help on using the changeset viewer.