Exemplo n.º 1
0
 public void SavePathSetting(string filePath, Constants.Setting setting)
 {
     try
     {
         _artworkEditorLogic.SavePathSetting(filePath, setting);
     }
     catch (Exception e)
     {
         _logger.LogException(e);
     }
 }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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();
        }
Exemplo n.º 4
0
 public void SavePathSetting(string filePath, Constants.Setting setting)
 {
     _settingRepo.SavePathSetting(filePath, setting);
 }
Exemplo n.º 5
0
 public string GetPathSetting(Constants.Setting setting)
 {
     return(_settingRepo.GetPathSetting(setting));
 }