public void SavePathSetting(string filePath, Constants.Setting setting)
 {
     try
     {
         _artworkEditorLogic.SavePathSetting(filePath, setting);
     }
     catch (Exception e)
     {
         _logger.LogException(e);
     }
 }
Example #2
0
        public string GetPathSetting(Constants.Setting setting)
        {
            switch (setting)
            {
            case Constants.Setting.LastUsedLoadPath:
                return(Properties.Settings.Default.LastUsedLoadPath);

            case Constants.Setting.LastUsedReplacementImagePath:
                return(Properties.Settings.Default.LastUsedReplacementImagePath);

            case Constants.Setting.LastUsedCardDbPath:
                return(Properties.Settings.Default.LasstUsedCardDbPath);

            default:
                throw new ArgumentOutOfRangeException(nameof(setting), setting, null);
            }
        }
Example #3
0
        public void SavePathSetting(string filePath, Constants.Setting setting)
        {
            switch (setting)
            {
            case Constants.Setting.LastUsedLoadPath:
                Properties.Settings.Default.LastUsedLoadPath = filePath;
                break;

            case Constants.Setting.LastUsedReplacementImagePath:
                Properties.Settings.Default.LastUsedReplacementImagePath = filePath;
                break;

            case Constants.Setting.LastUsedCardDbPath:
                Properties.Settings.Default.LasstUsedCardDbPath = filePath;
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(setting), setting, null);
            }
            Properties.Settings.Default.Save();
        }
Example #4
0
 public void SavePathSetting(string filePath, Constants.Setting setting)
 {
     _settingRepo.SavePathSetting(filePath, setting);
 }
Example #5
0
 public string GetPathSetting(Constants.Setting setting)
 {
     return(_settingRepo.GetPathSetting(setting));
 }