// Handle changes to the Shipyard tab private void setShipyardFromConfiguration() { shipsConfiguration = new ShipsConfiguration(); List <Ship> ships = new List <Ship>(); if (profile != null) { ships.Add(profile.Ship); ships.AddRange(profile.Shipyard); } shipsConfiguration.Ships = ships; shipyardData.ItemsSource = ships; }
// Handle changes to the Shipyard tab private void setShipyardFromConfiguration() { shipsConfiguration = new ShipsConfiguration(); List <Ship> ships = new List <Ship>(); if (commander != null) { ships.Add(commander.Ship); ships.AddRange(commander.StoredShips); } shipsConfiguration.Ships = ships; shipyardData.ItemsSource = ships; }