Пример #1
0
        /// <summary>
        /// Called after the loading, register the hook (for single-process) and check for new releases.
        /// </summary>
        private async void AppLoaded(object sender, RoutedEventArgs e)
        {
            _source = HwndSource.FromHwnd(new WindowInteropHelper(this).Handle);
            _source.AddHook(new HwndSourceHook(SettingsHelper.WndProc));

            GithubRelease githubRelease = await GithubHelper.GetLatestRelease();

            if (githubRelease.IsLatest)
            {
                this.InformNewVersion(githubRelease.Url, githubRelease.Version, githubRelease.Current);
            }
        }