public FleetStateViewModel(FleetState source) { this.Source = source; this.CompositeDisposable.Add(new PropertyChangedEventListener(source) { (sender, args) => this.RaisePropertyChanged(args.PropertyName), }); this.Sortie = new SortieViewModel(source); this.CompositeDisposable.Add(this.Sortie); this.Homeport = new HomeportViewModel(source); this.CompositeDisposable.Add(this.Homeport); }
public FleetStateViewModel(FleetState source) { this.Source = source; this.CompositeDisposable.Add(new PropertyChangedEventListener(source) { (sender, args) => this.RaisePropertyChanged(args.PropertyName), }); this.Sortie = new SortieViewModel(source); this.CompositeDisposable.Add(this.Sortie); this.Homeport = new HomeportViewModel(source); this.CompositeDisposable.Add(this.Homeport); }