Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/08/19 15:29:57 (6 years ago)
Author:
pfleck
Message:

#2972 merged to trunk

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/HeuristicLab.Problems.DataAnalysis.Views

  • trunk/HeuristicLab.Problems.DataAnalysis.Views/3.4/Controls/FactorPartialDependencePlot.cs

    r15845 r16519  
    167167      // add an event such that whenever a value is changed in the shared dataset,
    168168      // this change is reflected in the internal dataset (where the value becomes a whole column)
    169       if (this.sharedFixedVariables != null)
     169      if (this.sharedFixedVariables != null) {
    170170        this.sharedFixedVariables.ItemChanged -= sharedFixedVariables_ItemChanged;
     171        this.sharedFixedVariables.Reset -= sharedFixedVariables_Reset;
     172      }
     173
    171174      this.sharedFixedVariables = sharedFixedVariables;
    172175      this.sharedFixedVariables.ItemChanged += sharedFixedVariables_ItemChanged;
     176      this.sharedFixedVariables.Reset += sharedFixedVariables_Reset;
    173177
    174178      RecalculateInternalDataset();
     
    218222        if (updateOnFinish)
    219223          Update();
    220       }
    221       catch (OperationCanceledException) { }
    222       catch (AggregateException ae) {
     224      } catch (OperationCanceledException) {
     225      } catch (AggregateException ae) {
    223226        if (!ae.InnerExceptions.Any(e => e is OperationCanceledException))
    224227          throw;
     
    495498    }
    496499
     500    private void sharedFixedVariables_Reset(object sender, EventArgs e) {
     501      var newValue = sharedFixedVariables.GetStringValue(FreeVariable, 0);
     502      UpdateSelectedValue(newValue);
     503
     504      int idx = variableValues.IndexOf(newValue);
     505      UpdateAllSeriesStyles(idx);
     506    }
     507
    497508    private async void chart_DragDrop(object sender, DragEventArgs e) {
    498509      var data = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat);
Note: See TracChangeset for help on using the changeset viewer.