二個以上の常設艦隊で編成された連合艦隊を表します。
Inheritance: DisposableNotifier
Ejemplo n.º 1
0
		public CombinedFleetViewModel(CombinedFleet fleet)
		{
			this.Source = fleet;

			this.CompositeDisposable.Add(new PropertyChangedEventListener(fleet)
			{
				{ "Name", (sender, args) => this.RaisePropertyChanged("Name") },
			});
			this.CompositeDisposable.Add(new PropertyChangedEventListener(fleet.State)
			{
				{ "Situation", (sender, args) => this.RaisePropertyChanged("QuickStateView") },
			});

			this.State = new FleetStateViewModel(fleet.State);
			this.CompositeDisposable.Add(this.State);
		}
Ejemplo n.º 2
0
 private void Combine(bool combine)
 {
     this.CombinedFleet?.Dispose();
     this.CombinedFleet = combine
         ? new CombinedFleet(this.homeport, this.Fleets.OrderBy(x => x.Key).Select(x => x.Value).Take(2).ToArray())
         : null;
 }