private List <Game> GetGames()
        {
            var games = new List <Game>();

            if (manualDetectionRadioButton.Checked)
            {
                var dialog = new SetupFirstGameDialog();
                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    games.Add(dialog.PromptedGame);
                }
            }
            else
            {
                games = SteamGameFinder.GetSupportedSteamGames().ToList();

                if (games.Count == 0)
                {
                    var result = MessageBoxes.Warning("No games found! Try adding first game manually!",
                                                      MessageBoxButtons.AbortRetryIgnore);

                    switch (result)
                    {
                    case DialogResult.Retry:
                        games = GetGames();
                        break;

                    case DialogResult.Abort:
                        SetManualOnly();
                        break;
                    }
                }
                else
                {
                    MessageBoxes.Info(games.Count == 1
                        ? $"Found 1 game: {games[0].Name}"
                        : $"Automatically found {games.Count} games!");
                }
            }

            return(games);
        }
        private void scanButton_Click(object sender, EventArgs e)
        {
            var foundGames = SteamGameFinder.GetSupportedSteamGames()
                             .ToList();

            if (foundGames.Count == 0)
            {
                MessageBox.Show("No games have been found automatically", "Custom SDK Launcher", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                var categorizedGames = AssignGamesToCategories(foundGames, Games);

                var dialog = new GamesToKeepDialog(categorizedGames.kept, categorizedGames.discarded);

                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    Games.AddRange(dialog.Games);
                    ReloadList(Games);
                }
            }
        }