Example #1
0
        /// <summary>Gets a location by its ID.</summary>
        internal FilePath GetLocation(UserDataKind kind)
        {
            switch (kind)
            {
            case UserDataKind.Addins:
                return(Addins);

            case UserDataKind.Cache:
                return(Cache);

            case UserDataKind.Data:
                return(Data);

            case UserDataKind.Logs:
                return(Logs);

            case UserDataKind.Config:
                return(Config);

            case UserDataKind.ConfigLocal:
                return(ConfigLocal);

            case UserDataKind.Temp:
                return(Temp);

            default:
                throw new ArgumentException("Unknown UserDataLocation:" + kind.ToString());
            }
        }
Example #2
0
        /// <summary>Gets a location by its ID.</summary>
        internal FilePath GetLocation(UserDataKind kind)
        {
            switch (kind)
            {
            case UserDataKind.LocalInstall:
                return(LocalInstallDir);

            case UserDataKind.Cache:
                return(CacheDir);

            case UserDataKind.UserData:
                return(UserDataRoot);

            case UserDataKind.Logs:
                return(LogDir);

            case UserDataKind.Config:
                return(ConfigDir);

            case UserDataKind.LocalConfig:
                return(LocalConfigDir);

            case UserDataKind.Temp:
                return(TempDir);

            default:
                throw new ArgumentException("Unknown UserDataLocation:" + kind.ToString());
            }
        }
		/// <summary>Gets a location by its ID.</summary>
		internal FilePath GetLocation (UserDataKind kind)
		{
			switch (kind) {
			case UserDataKind.Addins:
				return Addins;
			case UserDataKind.Cache:
				return Cache;
			case UserDataKind.Data:
				return Data;
			case UserDataKind.Logs:
				return Logs;
			case UserDataKind.Config:
				return Config;
			case UserDataKind.ConfigLocal:
				return ConfigLocal;
			case UserDataKind.Temp:
				return Temp;
			default:
				throw new ArgumentException ("Unknown UserDataLocation:" + kind.ToString ());
			}
		}
		/// <summary>Gets a location by its ID.</summary>
		internal FilePath GetLocation (UserDataKind kind)
		{
			switch (kind) {
			case UserDataKind.LocalInstall:
				return LocalInstallDir;
			case UserDataKind.Cache:
				return CacheDir;
			case UserDataKind.UserData:
				return UserDataRoot;
			case UserDataKind.Logs:
				return LogDir;
			case UserDataKind.Config:
				return ConfigDir;
			case UserDataKind.LocalConfig:
				return LocalConfigDir;
			case UserDataKind.Temp:
				return TempDir;
			default:
				throw new ArgumentException ("Unknown UserDataLocation:" + kind.ToString ());
			}
		}