Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 public override string ToString()
 {
     return(LocationPath.ToString());
 }