Exemple #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            //SHOP
            this.Text = "Steam Lite " + loggedUser;

            List <GameItem> shopGames = SQLManager.GetShopGames();

            foreach (GameItem game in shopGames)
            {
                dataGridView1.Rows.Add(game.title, game.price + "$");
            }

            //WISHLIST
            UpdateWishlist();

            //LIBRARY
            UpdateLibrary();

            //PROFILE
            UpdateProfile();

            //DATA BOXES
            try
            {
                UpdateGameDataBox(dataGridView1.Rows[0].Cells[0].Value.ToString());
                UpdateGameDataLibraryBox(dataGridView3.Rows[0].Cells[0].Value.ToString());
            }
            catch { }
        }