Inheritance: Livet.ViewModel
コード例 #1
0
		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);
		}
コード例 #2
0
        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);
        }