Exemple #1
0
        override public void LoadFrom(Subsystem lss)
        {
            _lss = (LSS)lss;

            Scrubbers = new ObservableCollection <ScrubberViewModel>();
            foreach (Scrubber scrubber in _lss.scrubbers)
            {
                Scrubbers.Add(new ScrubberViewModel(scrubber));
            }
        }
Exemple #2
0
        public LSSViewModel(LSS lss)
        {
            AddScrubberCommand    = new DelegateCommand(AddScrubber);
            RemoveScrubberCommand = new DelegateCommand <ScrubberViewModel>(RemoveScrubber);

            if (lss != null)
            {
                LoadFrom(lss);
            }
        }
Exemple #3
0
 public bool IsViewModelOf(LSS lss)
 {
     return(lss == _lss);
 }