public Version GetPreviousVersion() { Version legacyVersion = VersionUtilities.GetLegacyVersion(State.StateAccess.State.PhysicalApplicationPath); Version importVersion = VersionUtilities.GetImportVersion(State.StateAccess.State.PhysicalApplicationPath); Version version = null; if (legacyVersion.ToString() != new Version(0, 0, 0, 0).ToString()) { version = legacyVersion; } else { version = importVersion; } return(version); }
/// <summary> /// Retrieves the current version of the application. /// </summary> /// <returns>The current version of the application.</returns> public Version GetApplicationVersion() { return(VersionUtilities.GetCurrentVersion(Configuration.Config.Application.PhysicalApplicationPath)); }
/// <summary> /// Retrieves the version of the data in the legacy folder. /// </summary> /// <returns>The version of the legacy data.</returns> public Version GetLegacyVersion() { return(VersionUtilities.GetLegacyVersion(Configuration.Config.Application.PhysicalApplicationPath)); }