public void CreateData() { ObservableCollection <SingleWhiskerCurveViewModel> whiskers = new ObservableCollection <SingleWhiskerCurveViewModel>(); foreach (ISingleWhiskerCurve whisker in Model.Targets) { SingleWhiskerCurveViewModel singleWhiskerCurve = new SingleWhiskerCurveViewModel(whisker); singleWhiskerCurve.EnabledChanged += PropagateWhiskerEnabledNotification; whiskers.Add(singleWhiskerCurve); } Whiskers = whiskers; }
public void CreateData() { ObservableCollection<SingleWhiskerCurveViewModel> whiskers = new ObservableCollection<SingleWhiskerCurveViewModel>(); foreach (ISingleWhiskerCurve whisker in Model.Targets) { SingleWhiskerCurveViewModel singleWhiskerCurve = new SingleWhiskerCurveViewModel(whisker); singleWhiskerCurve.EnabledChanged += PropagateWhiskerEnabledNotification; whiskers.Add(singleWhiskerCurve); } Whiskers = whiskers; }