public string getAbsolutePath(LocationPath parse_me, string user) { if (parse_me.EV == EnvironmentVariable.AltSavePaths) { DetectedLocations locs = interpretPath(parse_me.ToString()); if (locs.Count > 0) { parse_me = locs.getMostAccurateLocation(); } else { return(null); } } foreach (KeyValuePair <HandlerType, ALocationHandler> handler in handlers) { string result = handler.Value.getAbsolutePath(parse_me, user); if (result != null) { return(result); } } return(null); }
public string getAbsolutePath(LocationPath parse_me, string user) { if (parse_me.EV == EnvironmentVariable.AltSavePaths) { DetectedLocations locs = interpretPath(parse_me.ToString()); if (locs.Count > 0) parse_me = locs.getMostAccurateLocation(); else return null; } foreach (KeyValuePair<HandlerType, ALocationHandler> handler in handlers) { string result = handler.Value.getAbsolutePath(parse_me, user); if (result != null) return result; } return null; }
public override string ToString() { return(LocationPath.ToString()); }