Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/16/12 14:30:54 (11 years ago)
Author:
bburlacu
Message:

#1763: Added HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views and HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views to the branch. Removed prune button, minor functionality improvements.

Location:
branches/HeuristicLab.TreeSimplifier
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.TreeSimplifier

    • Property svn:mergeinfo set to (toggle deleted branches)
      /branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views5700-5808
  • branches/HeuristicLab.TreeSimplifier/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicDataAnalysisSolutionSimplifierView.cs

    r8409 r8916  
    4747      originalValues = new Dictionary<ISymbolicExpressionTreeNode, double>();
    4848      originalVariableNames = new Dictionary<ISymbolicExpressionTreeNode, string>();
    49       Caption = "Interactive Solution Simplifier";
     49
     50      this.Caption = "Interactive Solution Simplifier";
    5051    }
    5152
     
    218219      var dialog = (ValueChangeDialog)sender;
    219220      bool flag1 = false, flag2 = false;
    220       if (dialog.Content is VariableTreeNode) {
    221         var variable = (VariableTreeNode)dialog.Content;
     221      var node = dialog.Content;
     222
     223      if (node is VariableTreeNode) {
     224        var variable = dialog.Content as VariableTreeNode;
    222225        var weight = double.Parse(dialog.NewValueTextBox.Text);
    223226        var name = (string)dialog.VariableNameComboBox.SelectedItem;
     
    232235          variable.VariableName = name;
    233236        }
    234       } else if (dialog.Content is ConstantTreeNode) {
    235         var constant = (ConstantTreeNode)dialog.Content;
     237      } else if (node is ConstantTreeNode) {
     238        var constant = dialog.Content as ConstantTreeNode;
    236239        var value = double.Parse(dialog.NewValueTextBox.Text);
    237240        if (!constant.Value.Equals(value)) {
     
    239242          originalValues[constant] = constant.Value;
    240243          constant.Value = value;
    241 
    242244        }
    243245      }
     
    324326    protected abstract void btnOptimizeConstants_Click(object sender, EventArgs e);
    325327
    326     private void btnPrune_Click(object sender, EventArgs e) {
    327       btnPrune.Enabled = false;
    328       backgroundWorker1.RunWorkerAsync();
    329     }
     328    //    private void btnPrune_Click(object sender, EventArgs e) {
     329    //      btnPrune.Enabled = false;
     330    //      backgroundWorker1.RunWorkerAsync();
     331    //    }
    330332
    331333    private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) {
     
    360362        updateInProgress = false;
    361363      }
    362       btnPrune.Enabled = true;
     364      //      btnPrune.Enabled = true;
    363365    }
    364366
Note: See TracChangeset for help on using the changeset viewer.