public void RefreshAppList() { //Update App List if (ContentDownloader.Steam3 == null) { return; } this.appList.Items.Clear(); this.listDepots.Items.Clear(); this.ClearDepotInfo(); var WaitingForm = Waiting.ShowWaiting(Properties.Resources.UpdateAppListMsg); ContentDownloader.Steam3.RequestFreeAppLicense(730); IEnumerable <uint> licenseQuery; licenseQuery = ContentDownloader.Steam3.Licenses.Select(x => x.PackageID); ContentDownloader.Steam3.RequestPackageInfo(licenseQuery); ContentDownloader.Steam3.FillAppsList(); foreach (uint AppID in ContentDownloader.Steam3.AppInfo.Keys) { int itemIndex = this.appList.Items.Add(ContentDownloader.Steam3.AppInfo[AppID].KeyValues["common"]["name"].AsString()); } this.appList.Tag = ContentDownloader.Steam3.AppInfo.Keys; this.labelGameCount.Text = string.Format(Properties.Resources.Apps, ContentDownloader.Steam3.AppInfo.Count); WaitingForm.Close(); }
public static Waiting ShowWaiting(string Message) { Waiting WaitingForm = new Waiting(); WaitingForm.WaitingMsg.Text = Message; WaitingForm.Show(); return(WaitingForm); }