/// <summary> /// Gets the exact path which was setted for the specefied serverFolder in the config file. /// Use GetPath() /// </summary> /// <param name="serverFolder">The server folder.</param> /// <returns></returns> public string GetExactPath(ServerFolders serverFolder) { return (string)ExactPaths[serverFolder]; }
private bool IsVital(ServerFolders serverFolder) { string descr = EnumHelper.GetAssociatedDescription(serverFolder); if (descr.EndsWith("/NotVital")) { return false; } else { return true; } }
public void SetExactPath(ServerFolders serverFolder, string path) { ProcessException.Handle(serverFolder + " " + path); ExactPaths[serverFolder] = path; }
public string GetPath(ServerFolders serverFolder) { string path = (string)ExactPaths[serverFolder]; if ((string)ExactPaths[serverFolder] == string.Empty) { string descr = EnumHelper.GetAssociatedDescription(serverFolder); path = descr.Replace("/NotVital", ""); if (path == string.Empty) { path = Enum.GetName(serverFolder.GetType(), serverFolder); } } return Path.Combine(basePath, path); }