Ignore:
Timestamp:
08/23/10 15:38:05 (12 years ago)
Author:
mkommend
Message:

Reverted incorrect commit (r4250) regarding the registration of parameter events and chained deserialization ctor correctly (ticket #1028).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/DataAnalysisProblemData.cs

    r4250 r4291  
    106106          if (TargetVariable != null) DeregisterStringValueEventHandlers(TargetVariable);
    107107          TargetVariableParameter.Value = value;
    108           RegisterStringValueEventHandlers(TargetVariable);
    109108        }
    110109      }
     
    117116          if (InputVariables != null) DeregisterInputVariablesEventHandlers();
    118117          InputVariablesParameter.Value = value;
    119           RegisterInputVariablesEventHandlers();
    120118        }
    121119      }
     
    128126          if (TrainingSamplesStart != null) DeregisterValueTypeEventHandlers(TrainingSamplesStart);
    129127          TrainingSamplesStartParameter.Value = value;
    130           RegisterValueTypeEventHandlers(TrainingSamplesStart);
    131128        }
    132129      }
     
    139136          if (TrainingSamplesEnd != null) DeregisterValueTypeEventHandlers(TrainingSamplesEnd);
    140137          TrainingSamplesEndParameter.Value = value;
    141           RegisterValueTypeEventHandlers(TrainingSamplesEnd);
    142138        }
    143139      }
     
    150146          if (TestSamplesStart != null) DeregisterValueTypeEventHandlers(TestSamplesStart);
    151147          TestSamplesStartParameter.Value = value;
    152           RegisterValueTypeEventHandlers(TestSamplesStart);
    153148        }
    154149      }
     
    161156          if (TestSamplesEnd != null) DeregisterValueTypeEventHandlers(TestSamplesEnd);
    162157          TestSamplesEndParameter.Value = value;
    163           RegisterValueTypeEventHandlers(TestSamplesEnd);
    164158        }
    165159      }
     
    207201
    208202    [StorableConstructor]
    209     private DataAnalysisProblemData(bool deserializing) : base() { }
     203    private DataAnalysisProblemData(bool deserializing) : base(deserializing) { }
    210204
    211205    [StorableHook(HookType.AfterDeserialization)]
     
    249243    }
    250244    private void InputVariablesParameter_ValueChanged(object sender, EventArgs e) {
     245      RegisterInputVariablesEventHandlers();
    251246      OnProblemDataChanged(EventArgs.Empty);
    252247    }
    253248    private void TargetVariableParameter_ValueChanged(object sender, EventArgs e) {
     249      RegisterStringValueEventHandlers(TargetVariable);
    254250      if (TargetVariable != null) OnProblemDataChanged(EventArgs.Empty);
    255251    }
    256252    private void TrainingSamplesStartParameter_ValueChanged(object sender, EventArgs e) {
     253      RegisterValueTypeEventHandlers(TrainingSamplesStart);
    257254      OnProblemDataChanged(EventArgs.Empty);
    258255    }
    259256    private void TrainingSamplesEndParameter_ValueChanged(object sender, EventArgs e) {
     257      RegisterValueTypeEventHandlers(TrainingSamplesEnd);
    260258      OnProblemDataChanged(EventArgs.Empty);
    261259    }
    262260    private void TestSamplesStartParameter_ValueChanged(object sender, EventArgs e) {
     261      RegisterValueTypeEventHandlers(TestSamplesStart);
    263262      OnProblemDataChanged(EventArgs.Empty);
    264263    }
    265264    private void TestSamplesEndParameter_ValueChanged(object sender, EventArgs e) {
     265      RegisterValueTypeEventHandlers(TestSamplesEnd);
    266266      OnProblemDataChanged(EventArgs.Empty);
    267267    }
Note: See TracChangeset for help on using the changeset viewer.