public async void CheckLatestVersion()
        {
            GitHubService service        = new GitHubService();
            Version       currentVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
            GitHubRelease latestRelease  = await service.LatestRelease();

            if (latestRelease.version > currentVersion)
            {
                this.Hide();
                VersionWindow versionWindow = new VersionWindow(latestRelease);
                versionWindow.StartPosition = FormStartPosition.CenterScreen;
                versionWindow.MinimizeBox   = false;
                versionWindow.MaximizeBox   = false;
                versionWindow.Show();
                versionWindow.Activate();
                versionWindow.FormClosed += (sender, e) => {
                    this.Show();
                };
            }
        }
 public async void CheckLatestVersion()
 {
     GitHubService service = new GitHubService();
     Version currentVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
     GitHubRelease latestRelease = await service.LatestRelease();
     if (latestRelease.version > currentVersion)
     {
         this.Hide();
         VersionWindow versionWindow = new VersionWindow(latestRelease);
         versionWindow.StartPosition = FormStartPosition.CenterScreen;
         versionWindow.MinimizeBox = false;
         versionWindow.MaximizeBox = false;
         versionWindow.Show();
         versionWindow.Activate();
         versionWindow.FormClosed += (sender, e) => {
             this.Show();
         };
     }
 }