private static void DownloadFiles(string downloadPath, IEnumerable <FileInformation> listOfCurrentFiles, VersionObject newerVersion) { ChangeUpdateIcon(DowloadIconState.Donwloading); var listOfFilesToBeDownloaded = ListOfFilesToBeAdded(newerVersion.ListOfFiles, listOfCurrentFiles); DowloadUpdateFiles(listOfFilesToBeDownloaded, downloadPath); }
private static void DownloadUpdateFiles(string downloadPath, IEnumerable <FileInformation> listOfCurrentFiles, VersionObject newerVersion) { bool choice; try { choice = UpdaterWindowsManager.DownloadUpdatesWindow.Choice; } catch { choice = (Directory.GetFiles(AuxiliaryDirectory).Length > 1); } if (choice) { DownloadFiles(downloadPath, listOfCurrentFiles, newerVersion); } else { DeleteDirectory(AuxiliaryDirectory); } }
private static void CalculateNaroVersion(VersionObject currentVersion) { _fullNumericVersion = currentVersion.VersionData.VersionName; }