private void RentAirplane_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new RentAirplaneDialog();

            if ((bool)dialog.ShowDialog())
            {
                MessageBox.Show("Успех");
            }
        }
        private void RentAirplane_Click(object sender, RoutedEventArgs e)
        {
            Airplane airplane = (Airplane)ShopDataGrid.SelectedItem;

            if (airplane != null)
            {
                _game.Pause();
                var dialog = new RentAirplaneDialog(_game, airplane.PriceRent);
                if ((bool)dialog.ShowDialog())
                {
                    DateTime?dateEnd = dialog.RentDateSelect.SelectedDate;
                    if (dateEnd.HasValue)
                    {
                        _game.Player.RentAirplane(airplane, dateEnd.Value);
                    }
                }
                _game.Unpause();
            }
        }