private void initiatePage() { FAM.FromGameFile("", StoreLibrary); //get the store running StoreLibrary.Sort((a, b) => b.Name.CompareTo(a.Name)); //sort alphabetically MostPopularPanelFill(this.MostPopularPanel, StoreLibrary); //fill in most popular tab MostRatedPanelFill(this.MostLikedPanel, StoreLibrary); //fill in most rated tab }
private void generatesGames(int amount) { FileAccessModule FAM = new FileAccessModule(); List <Game> libraryofGames = new List <Game>(); FAM.FromGameFile("", libraryofGames); FAM.initateGames(amount, libraryofGames); FAM.ToGameFile("", libraryofGames); }