override public void LoadFrom(Subsystem lss) { _lss = (LSS)lss; Scrubbers = new ObservableCollection <ScrubberViewModel>(); foreach (Scrubber scrubber in _lss.scrubbers) { Scrubbers.Add(new ScrubberViewModel(scrubber)); } }
public LSSViewModel(LSS lss) { AddScrubberCommand = new DelegateCommand(AddScrubber); RemoveScrubberCommand = new DelegateCommand <ScrubberViewModel>(RemoveScrubber); if (lss != null) { LoadFrom(lss); } }
public bool IsViewModelOf(LSS lss) { return(lss == _lss); }