Пример #1
0
        void AttachedFormVersionNumberSelectionChanged(object sender, VersionNumber versionNumber)
        {
            if (versionNumber == null)
            {
                return;
            }
            VersionInformation info = _versionInfoService.GetVersionInformationFromFile(_fileSystemService.GetCompletePath(_currentlyOpenedServer + Path.DirectorySeparatorChar + versionNumber.ToString(), InformationFile));

            _attachedForm.AppliesToVersion = info.AppliesToVersion;
            _attachedForm.CreatesVersion   = info.ResultsInVersion;
            IList <string> changed;
            IList <string> deleted;

            _versionInfoService.GenerateFileLists(info, out changed, out deleted);
            _attachedForm.ChangedFiles = changed;
            _attachedForm.DeletedFiles = deleted;
        }
Пример #2
0
        public VersionInformation GetVersionInformationFromZip(string zipfile)
        {
            string extractedInfoXml = _zipService.ExtractFileToFolder(zipfile, InfoFile, Path.GetTempPath());

            return(_versionInfoService.GetVersionInformationFromFile(extractedInfoXml));
        }