public static ORSResourceOvermanager getResourceOvermanagerForResource(String resource_name) {
     ORSResourceOvermanager fnro;
     if (resources_managers.ContainsKey(resource_name)) {
         fnro = resources_managers[resource_name];
     }else {
         fnro = new ORSResourceOvermanager(resource_name);
         resources_managers.Add(resource_name,fnro);
     }
     return fnro;
 }
Esempio n. 2
0
        public static ORSResourceOvermanager getResourceOvermanagerForResource(String resource_name)
        {
            ORSResourceOvermanager fnro;

            if (!resources_managers.TryGetValue(resource_name, out fnro))
            {
                fnro = new ORSResourceOvermanager(resource_name);
                resources_managers.Add(resource_name, fnro);
            }

            return(fnro);
        }
        public static ORSResourceOvermanager getResourceOvermanagerForResource(String resource_name)
        {
            ORSResourceOvermanager fnro;

            if (resources_managers.ContainsKey(resource_name))
            {
                fnro = resources_managers[resource_name];
            }
            else
            {
                fnro = new ORSResourceOvermanager(resource_name);
                resources_managers.Add(resource_name, fnro);
            }
            return(fnro);
        }
Esempio n. 4
0
 protected virtual ORSResourceOvermanager getOvermanagerForResource(string resourcename)
 {
     return(ORSResourceOvermanager.getResourceOvermanagerForResource(resourcename));
 }