상속: Livet.ViewModel
예제 #1
0
        public ShipyardViewModel()
        {
            this.CreatedSlotItem = new CreatedSlotItemViewModel();

            this.CompositeDisposable.Add(new PropertyChangedEventListener(KanColleClient.Current.Homeport.Repairyard)
            {
                { "Docks", (sender, args) => this.UpdateRepairingDocks() },
            });
            this.UpdateRepairingDocks();

            this.CompositeDisposable.Add(new PropertyChangedEventListener(KanColleClient.Current.Homeport.Dockyard)
            {
                { "Docks", (sender, args) => this.UpdateBuildingDocks() },
                { "CreatedSlotItem", (sender, args) => this.UpdateSlotItem() },
            });
            this.UpdateBuildingDocks();
        }
		public ShipyardViewModel()
		{
			this.CreatedSlotItem = new CreatedSlotItemViewModel();

			this.CompositeDisposable.Add(new PropertyChangedEventListener(KanColleClient.Current.Homeport.Repairyard)
			{
				{ "Docks", (sender, args) => this.UpdateRepairingDocks() },
			});
			this.UpdateRepairingDocks();

			this.CompositeDisposable.Add(new PropertyChangedEventListener(KanColleClient.Current.Homeport.Dockyard)
			{
				{ "Docks", (sender, args) => this.UpdateBuildingDocks() },
				{ "CreatedSlotItem", (sender, args) => this.UpdateSlotItem() },
			});
			this.UpdateBuildingDocks();
		}