protected override void EhView_ActiveChildControlChanged(object sender, Main.InstanceChangedEventArgs <object> e) { // first: test if this is the view of the additional style if (_additionalPlotStyleController != null && object.ReferenceEquals(_additionalPlotStyleController.ViewObject, e.OldInstance)) { if (!_additionalPlotStyleController.Apply()) { return; } if (_additionalPlotStyle is LinePlotStyle && ((LinePlotStyle)_additionalPlotStyle).IsVisible) { MakeAdditionalPlotStylePermanent(); } else if (_additionalPlotStyle is ScatterPlotStyle && ((ScatterPlotStyle)_additionalPlotStyle).IsVisible) { MakeAdditionalPlotStylePermanent(); } } else { // test if it is the view of the normal styles for (int i = 0; i < _styleControllerList.Count; i++) { if (_styleControllerList[i] != null && object.ReferenceEquals(_styleControllerList[i].ViewObject, e.OldInstance)) { if (!_styleControllerList[i].Apply()) { return; } DistributeStyleChange(i); } } } }
protected virtual void EhView_ActiveChildControlChanged(object sender, Main.InstanceChangedEventArgs <object> e) { }