Exemplo n.º 1
0
        public static ulong ChooseManifestID(uint DepotID)
        {
            ManifestIDSelector manifestIDSelector = new ManifestIDSelector(DepotID);

            manifestIDSelector.ShowDialog();
            return(manifestIDSelector.PendingReturnManifestID);
        }
Exemplo n.º 2
0
        private void ButtonSelectManifest_Click(object sender, EventArgs e)
        {
            var  listDepotIDs = (List <uint>) this.listDepots.Tag;
            uint DepotID      = 0;

            if (this.listDepots.SelectedIndex >= 0)
            {
                DepotID = listDepotIDs[this.listDepots.SelectedIndex];
            }
            PendingManifestID = ManifestIDSelector.ChooseManifestID(DepotID);
            if (PendingManifestID == ContentDownloader.INVALID_MANIFEST_ID)
            {
                this.buttonSelectManifest.Text = string.Format(Resources.CurrentManifestID, Resources.Default);
            }
            else
            {
                this.buttonSelectManifest.Text = string.Format(Resources.CurrentManifestID, PendingManifestID.ToString());
            }
        }