private void AddRace_click(object sender, RoutedEventArgs e)
        {
            HullRace race = new HullRace();

            race.ID = Data.HullRaces.Count;
            Data.HullRaces.Add(race);
        }
        private void DeleteRace_Click(object sender, RoutedEventArgs e)
        {
            Button b = sender as Button;

            if (b != null)
            {
                HullRace race = b.CommandParameter as HullRace;
                if (race != null)
                {
                    if (Locations.MessageBoxShow(AMLResources.Properties.Resources.AreYouSure, MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
                    {
                        Data.HullRaces.Remove(race);
                    }
                }
            }
        }