public static NameMap Load(Package _package) { NameMap nm = new NameMap(); nm.resource = _package.FindResource(MatchNMAPResourceType); nm._package = _package; return nm.resource.IResource == null ? null : nm; }
public static NameMap Load(Package _package) { NameMap nm = new NameMap(); nm.resource = _package.FindResource(MatchNMAPResourceType); nm._package = _package; return(nm.resource.IResource == null ? null : nm); }
public static StringTable Load(Package _package, Language language, ulong iid) { StringTable st = new StringTable(); ulong liid = iid | (((ulong)language) << 56); st.resource = _package.FindResource(x => x.ResourceType == STBLResourceType && x.Instance == liid); if (st.resource.IResource != null) { st.resource.IResource.ResourceChanged += new EventHandler(st.OnResourceChanged); st._package = _package; return(st); } return(null); }