Ejemplo n.º 1
0
 public void Close()
 {
     s3pi.Package.Package.ClosePackage(0, _package);
     _package  = null;
     _filename = null;
     _nmap     = null;
 }
Ejemplo n.º 2
0
 public void Close()
 {
     s3pi.Package.Package.ClosePackage(0, _package);
     _package = null;
     _filename = null;
     _nmap = null;
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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;
        }
Ejemplo n.º 6
0
        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;
        }
Ejemplo n.º 7
0
        public void ResourceName(ulong iid, string name)
        {
            if (nmap == null && _package != null)
            {
                _nmap = NameMap.New(this, NewInstance());
            }

            if (nmap != null)
            {
                nmap.Add(iid, name);
            }
        }
Ejemplo n.º 8
0
        public void ResourceName(ulong iid, string name)
        {
            if (nmap == null && _package != null)
                _nmap = NameMap.New(this, NewInstance());

            if (nmap != null)
                nmap.Add(iid, name);
        }