コード例 #1
0
        // 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;
        }
コード例 #2
0
        // 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;
        }