Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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;
        }