public void ShowOptionsNoThrow()
        {
            try
            {
                var            options = _optionsDataAccess.LoadOptions();
                Options[]      newOptions;
                GeneralOptions generalOptions = _generalOptionsDataAccess.LoadOptions();
                if (OptionsForm.EditOptions(
                        _session,
                        options,
                        out newOptions,
                        GetProfileDataDirectory,
                        generalOptions.FixInvalidSettings,
                        generalOptions.DisplayAllProfilesAsGeneric))
                {
                    _optionsDataAccess.SaveOptions(newOptions);
                    _scheduler.SetOptions(newOptions, generalOptions.CheckIfOnline);
                    DeleteEntityChachesForChangedProfiles(options, newOptions);

                    var changedOptions = CreateChangePairs(options, newOptions);

                    SwitchCategories(changedOptions);
                }
            }
            catch (Exception x)
            {
                ExceptionHandler.Instance.HandleException(x, s_logger);
            }
        }
        private void ApplyNewOptions(Options[] oldOptions, Options[] newOptions, GeneralOptions generalOptions)
        {
            _optionsDataAccess.SaveOptions(newOptions);
            _scheduler.SetOptions(newOptions, generalOptions.CheckIfOnline);
            _profileStatusesViewModel.EnsureProfilesDisplayed(newOptions);
            DeleteEntityChachesForChangedProfiles(oldOptions, newOptions);
            var changedOptions = CreateChangePairs(oldOptions, newOptions);

            SwitchCategories(changedOptions);
        }
 public void ShowOptionsNoThrow()
 {
     try
     {
         var options = _optionsDataAccess.LoadOptions();
         var shouldCheckForNewerVersions = ShouldCheckForNewerVersions;
         if (OptionsForm.EditOptions(_session, options, out options, shouldCheckForNewerVersions, out shouldCheckForNewerVersions))
         {
             _optionsDataAccess.SaveOptions(options);
             ShouldCheckForNewerVersions = shouldCheckForNewerVersions;
             _scheduler.SetOptions(options);
         }
     }
     catch (Exception x)
     {
         ExceptionHandler.Instance.HandleException(x, s_logger);
     }
 }