Пример #1
0
        private void GetShip(kcsapi_kdock_getship source)
        {
            this.homeport.Itemyard.AddFromDock(source);

            this.Ships.Add(new Ship(this.homeport, source.api_ship));
            this.RaiseShipsChanged();
        }
Пример #2
0
 internal void AddFromDock(kcsapi_kdock_getship source)
 {
     foreach (var x in source.api_slotitem.Select(x => new SlotItem(x)))
     {
         this.SlotItems.Add(x);
     }
     this.RaiseSlotItemsChanged();
 }
Пример #3
0
 private void GetShip(kcsapi_kdock_getship source)
 {
     this.Update(source.api_kdock);
 }
Пример #4
0
 private void GetShip(kcsapi_kdock_getship source)
 {
     this.Ships = new MemberTable <Ship>(this.Ships.Select(kvp => kvp.Value).Concat(new[] { new Ship(this.homeport, source.api_ship) }));
 }