예제 #1
0
 public ActionLibrary GetActionLibrary(int libid)
 {
     ActionLibrary lib;
     if (Libraries.TryGetValue(libid, out lib))
         return lib;
     lib = new ActionLibrary(this, libid);
     Libraries.Add(libid, lib);
     return lib;
 }
예제 #2
0
        public ActionLibrary GetActionLibrary(int libid)
        {
            ActionLibrary lib;

            if (Libraries.TryGetValue(libid, out lib))
            {
                return(lib);
            }
            lib = new ActionLibrary(this, libid);
            Libraries.Add(libid, lib);
            return(lib);
        }