private void GetShip(kcsapi_kdock_getship source) { this.homeport.Itemyard.AddFromDock(source); this.Ships.Add(new Ship(this.homeport, source.api_ship)); this.RaiseShipsChanged(); }
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(); }
private void GetShip(kcsapi_kdock_getship source) { this.Update(source.api_kdock); }
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) })); }