Esempio n. 1
0
            public int Compare(object x, object y)
            {
                PdnVersionInfo xpvi = (PdnVersionInfo)x;
                PdnVersionInfo ypvi = (PdnVersionInfo)y;

                if (xpvi.Version < ypvi.Version)
                {
                    return(-1);
                }
                else if (xpvi.Version == ypvi.Version)
                {
                    return(0);
                }
                else // if (xpvi.Version > ypvi.Version)
                {
                    return(+1);
                }
            }
 public PdnVersionManifest(string downloadPageUrl, PdnVersionInfo[] versionInfos)
 {
     this.downloadPageUrl = downloadPageUrl;
     this.versionInfos = (PdnVersionInfo[])versionInfos.Clone();
 }
Esempio n. 3
0
 public ExtractingState(string extractMe, PdnVersionInfo newVersionInfo)
     : base(false, false, MarqueeStyle.Smooth)
 {
     this.extractMe = extractMe;
     this.newVersionInfo = newVersionInfo;
 }
Esempio n. 4
0
 public DownloadingState(PdnVersionInfo downloadMe)
     : base(false, false, MarqueeStyle.Smooth)
 {
     this.downloadMe = downloadMe;
 }