public void Close() { s3pi.Package.Package.ClosePackage(0, _package); _package = null; _filename = null; _nmap = null; }
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 New(Package _package, ulong?iid = null) { NameMap nm = new NameMap(); nm.resource = _package.NewResource(NMAPResourceType, 0, iid.HasValue ? iid.Value : Package.NewInstance()); nm._package = _package; return(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 NameMap New(Package _package, ulong? iid = null) { NameMap nm = new NameMap(); nm.resource = _package.NewResource(NMAPResourceType, 0, iid.HasValue ? iid.Value : Package.NewInstance()); nm._package = _package; return nm; }
public void ResourceName(ulong iid, string name) { if (nmap == null && _package != null) { _nmap = NameMap.New(this, NewInstance()); } if (nmap != null) { nmap.Add(iid, name); } }
public void ResourceName(ulong iid, string name) { if (nmap == null && _package != null) _nmap = NameMap.New(this, NewInstance()); if (nmap != null) nmap.Add(iid, name); }