private void CreateAndDisplayWindow(object owner)
        {
            versionCheckerForm = new VersionCheckerForm { Owner = owner as Form };
            versionCheckerForm.Closed += HandleVersionCheckerWindowClosed;

            versionCheckerForm.ViewModel = new VersionCheckerViewModel(versionChecker, fileDownloader, userInterface, versionCheckerConfig, this);
            versionCheckerForm.ViewModel.AppWebPage = AppWebPage;

            versionCheckerForm.Show();
        }
 private void HandleVersionCheckerWindowClosed(object sender, EventArgs e)
 {
     versionCheckerForm.Closed -= HandleVersionCheckerWindowClosed;
     versionCheckerForm = null;
 }