Пример #1
0
        public VersionInfo(VersionNum versionId)
        {
            VersionId = versionId;

            VersionFolderPath = string.Format("{0}/{1}/{2}", ABHelper.AppTempCachePath, VersionId.Id1A2, VersionId.Id3rd.ToString());

            VersionFilePath    = string.Format("{0}/{1}", VersionFolderPath, ABHelper.VersionFileName);
            IsVersionFileExist = File.Exists(VersionFilePath);

            VersionNumFilePath    = GetABFullPath(ABHelper.VersionNumFileName);
            IsVersionNumFileExist = null == VersionNumFilePath ? false : File.Exists(VersionNumFilePath);

            ManifestFilePath    = GetABFullPath(ABHelper.ManifestFileName);
            IsManifestFileExist = null == ManifestFilePath ? false : File.Exists(ManifestFilePath);

            if (IsValid)
            {
                VersionId.Update(ABHelper.ReadVersionNumFile(VersionNumFilePath));
            }
        }