Esempio n. 1
0
        private void ModRepositoryUpdated()
        {
            var applicationData = ModRepository.Instance.ApplicationData;
            var cVer            = Version.Parse($"{ThisAssembly.Git.SemVer.Major}.{ThisAssembly.Git.SemVer.Minor}.{ThisAssembly.Git.SemVer.Patch}");

            if (applicationData != null && applicationData.LatestApplicationVersion > cVer)
            {
                App.RunInMainThread(() =>
                {
                    UpdateText.Visibility = Visibility.Visible;
                    UpdateText.Text       = $"Update to {applicationData.LatestApplicationVersion} available!\n{applicationData.UpdateText}";
                });
            }
        }
Esempio n. 2
0
 public ExiledLibrary(Assembly lib)
 {
     Library = lib;
     Version = Version.Parse(lib.GetCustomAttribute <AssemblyInformationalVersionAttribute>().InformationalVersion);
 }