private void ShowMyAbandonware() { MyAbandonwareSearchDialog mad = new MyAbandonwareSearchDialog(_manager ); mad.ShowDialog(); mad.Dispose(); }
private void btnInfo_Click(object sender, EventArgs e) { MyAbandonwareSearchDialog msd = new MyAbandonwareSearchDialog(_manager, _game.Title); if (msd.ShowDialog() == DialogResult.OK) { MyAbandonGameInfo gameData = msd.GameData; if (gameData != null) { if (_cats.ContainsKey(gameData.Genre.Trim().ToLower())) { //Category existing _game.CategoryID = _cats[gameData.Genre.Trim().ToLower()].ID; CompileCategoriesCombo(_game.CategoryID); } else if(gameData.Genre.Trim() != string.Empty) { //Category not existing _cats.Add(gameData.Genre.Trim().ToLower(), new Category(-1, gameData.Genre.Trim(), string.Empty, false, false)); CompileCategoriesCombo(-1); } _game.Title = gameData.Title; _game.Description = gameData.Description; _game.Developer = gameData.Developer; _game.Perspectives = (gameData.Perspectives == null) ? string.Empty : string.Join(",", gameData.Perspectives); _game.Platform = gameData.Platform; _game.Publisher = gameData.Publisher; _game.ReleasedIn = gameData.ReleasedIn; _game.Themes = (gameData.Themes == null) ? string.Empty : string.Join(",", gameData.Themes); _game.Vote = gameData.Vote.ToString(); _game.Year = Convert.ToInt32(gameData.Year); UpdatePanel(); _game.ImagePath = msd.GameScreenshot; ShowCoverImage(); //RenderTemporaryCover(msd.GameScreenshot); } } msd.Dispose(); }