private void ShowGetNewVersionForm(NewerVersionFoundEventArgs e)
        {
            try
            {
                var form = new GetNewVersionForm(
                    e.WhatsNewInformation,
                    e.NewVersion,
                    e.DownloadLink,
                    new GlobalOptionsDataAccess().LoadGlobalOptionsNoThrow().IsInstallNewVersionEnabled);

                form.TurnOffCheckForNewerVersions += delegate
                {
                    var options = _generalOptionsDataAccess.LoadOptions();
                    options.ShouldCheckForNewerVersions = false;
                    _generalOptionsDataAccess.SaveOptions(options);

                    MessageBox.Show(Strings.Get($"Automatic check for newer version turned off."), MessageBoxTitle);
                };

                form.IgnoreThisVersion += delegate
                {
                    _generalOptionsDataAccess.IgnoreUpdatesTilVersion = e.NewVersion;
                    MessageBox.Show(Strings.Get($"Waiting for newer version than '{e.NewVersion}'."), MessageBoxTitle);
                };

                form.ShowDialog();
            }
            catch (Exception x)
            {
                ExceptionHandler.Instance.LogException(x, s_logger);
            }
        }
        private void ShowGetNewVersionForm(NewerVersionFoundEventArgs e)
        {
            try
            {
                var form = new GetNewVersionForm(e.WhatsNewInformation, e.NewVersion, e.DownloadLink);
                form.TurnOffCheckForNewerVersions += delegate
                {
                    var options = _generalOptionsDataAccess.LoadOptions();
                    options.ShouldCheckForNewerVersions = false;
                    _generalOptionsDataAccess.SaveOptions(options);

                    MessageBox.Show("Automatic check for newer version turned off.", "CalDav Synchronizer");
                };

                form.IgnoreThisVersion += delegate
                {
                    _generalOptionsDataAccess.IgnoreUpdatesTilVersion = e.NewVersion;
                    MessageBox.Show(string.Format("Waiting for newer version than '{0}'.", e.NewVersion), "CalDav Synchronizer");
                };

                form.ShowDialog();
            }
            catch (Exception x)
            {
                ExceptionHandler.Instance.LogException(x, s_logger);
            }
        }
 private void ShowGetNewVersionForm(NewerVersionFoundEventArgs e)
 {
     try
     {
         var form = new GetNewVersionForm(e.WhatsNewInformation, e.NewVersion, e.DownloadLink);
         form.TurnOffCheckForNewerVersions += delegate
         {
             ShouldCheckForNewerVersions = false;
             MessageBox.Show("Automatic check for newer version turned off.", "CalDav Synchronizer");
         };
         form.ShowDialog();
     }
     catch (Exception x)
     {
         ExceptionHandler.Instance.LogException(x, s_logger);
     }
 }