private void Load()
        {
            try
            {
                var noErrors = GetFeedbackSettings(IskuFxNoErrorsCollection);
                var errors   = GetFeedbackSettings(IskuFxErrorsCollection);

                if (noErrors != null || errors != null)
                {
                    _iskuFxSettings = new RoccatIskuFxSettings(noErrors, errors);
                }
            }
            catch (Exception ex)
            {
                ActivityLog.LogWarning(Constants.ApplicationName, string.Format("Could not load user settings, error: {0}", ex));
            }
        }
예제 #2
0
 public IskuFxOptionsViewModel(RoccatIskuFxSettings settings)
 {
     Errors   = new IskuFxFeedbackViewModel(settings.Errors);
     NoErrors = new IskuFxFeedbackViewModel(settings.NoErrors);
 }