/// <summary> /// Opens game finder form /// </summary> /// <param name="sender">object</param> /// <param name="e">EventArgs</param> private void lblFindGames_Click(object sender, EventArgs e) { var gameWindow = new gameForm(); gameWindow.ShowDialog(); var games = gameWindow.mGamesSelected; if (games.Count > 0) { foreach (var game in games) { mActiveAccount.Games.Add(game.id); } RefreshGameList(); } gameWindow.Close(); }
/// <summary> /// Opens game finder form /// </summary> /// <param name="sender">object</param> /// <param name="e">EventArgs</param> private void lblFindGames_Click(object sender, EventArgs e) { var gameWindow = new gameForm(); gameWindow.ShowDialog(); var games = gameWindow.mGamesSelected; if (games.Count > 0) { foreach (var game in games) mActiveAccount.Games.Add(game.id); RefreshGameList(); } gameWindow.Close(); }