public ModifyGame(int GameID, Logger Logfacility) { InitializeComponent(); LogInstance = Logfacility; DBConnection = new DatabaseConnector(LogInstance); LogInstance.WriteToFile(1, "Modify game with the ID " + GameID, "Database:Connector"); GameToModify = DBConnection.GetGame(GameID); lblmod_GameName.Text = GameToModify.Name; if (GameToModify.Snatched) chkmod_Snatched.Checked = true; else chkmod_Snatched.Checked = false; if (GameToModify.Wanted) chkmod_Wanted.Checked = true; else chkmod_Wanted.Checked = false; if (GameToModify.Downloaded) chkmod_Downloaded.Checked = true; else chkmod_Downloaded.Checked = false; if (GameToModify.InstallPath != null) txtmod_InstallPath.Text = GameToModify.InstallPath; }