Beispiel #1
0
        public void CreateData()
        {
            ObservableCollection <SingleWhiskerAngleViewModel> whiskers = new ObservableCollection <SingleWhiskerAngleViewModel>();

            foreach (ISingleWhiskerAngle whisker in Model.Targets)
            {
                SingleWhiskerAngleViewModel singleWhiskerAngleViewModel = new SingleWhiskerAngleViewModel(whisker);
                singleWhiskerAngleViewModel.EnabledChanged += PropagateWhiskerEnabledNotification;
                whiskers.Add(singleWhiskerAngleViewModel);
            }

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

            Whiskers = whiskers;
        }