private EventPresent GetPresentReturned(PresentPickerWindow window)
        {
            EventPresent present;

            switch (window.SelectedType)
            {
            case PresentPickerWindow.SelectionType.Car:
                present = EventPresent.FromCar(window.CarLabelSelected);
                break;

            case PresentPickerWindow.SelectionType.Paint:
                present = EventPresent.FromPaint(window.PaintIDSelected);
                break;

            /*
             * case PresentPickerWindow.SelectionType.Paint:
             *  present = EventPresent.FromCar(dlg.PaintIDSelected);
             *  break;
             */
            default:
                present = null;
                break;
            }

            return(present);
        }
        public void btn_PresentParticipationOne_Clicked(object sender, RoutedEventArgs e)
        {
            var dlg = new PresentPickerWindow(GameDatabase);

            dlg.ShowDialog();

            if (dlg.SelectedType != PresentPickerWindow.SelectionType.None)
            {
                EventPresent present = GetPresentReturned(dlg);
                CurrentEvent.Rewards.SetParticipatePresent(0, present);
                btn_PresentParticipationOne.Content = PresentToString(CurrentEvent.Rewards.ParticipatePresents[0]);
            }
            btn_RemovePresentParticipationOne.IsEnabled = CurrentEvent.Rewards.ParticipatePresents[0] != null;
        }
        public string PresentToString(EventPresent present)
        {
            if (present is null)
            {
                return("No Present Selected");
            }

            if (present.PresentType == PresentType.CAR)
            {
                return($"Car: {GameDatabase.GetCarNameByLabel(present.CarLabel)}");
            }
            else if (present.PresentType == PresentType.PAINT)
            {
                return($"Paint: {GameDatabase.GetPaintNameByID(present.PaintID)}");
            }
            else
            {
                return("No Present Selected");
            }
        }