예제 #1
0
        public static StringTableSet Load(Package package, ulong iid)
        {
            if ((iid >> 56) != 0)
                throw new ArgumentException("Instance ID must not contain language to load StringTableSet");

            StringTableSet sts = new StringTableSet(package, iid);
            
            foreach (Language l in Enum.GetValues(typeof(Language)))
            {
                StringTable stl = StringTable.Load(package, l, iid);

                if (stl != null)
                {
                    stl.ResourceChanged += new EventHandler(sts.OnResourceChanged);
                    sts.Add(l, stl);
                }
            }

            return sts;
        }
예제 #2
0
        public static StringTableSet Load(Package package, ulong iid)
        {
            if ((iid >> 56) != 0)
            {
                throw new ArgumentException("Instance ID must not contain language to load StringTableSet");
            }

            StringTableSet sts = new StringTableSet(package, iid);

            foreach (Language l in Enum.GetValues(typeof(Language)))
            {
                StringTable stl = StringTable.Load(package, l, iid);

                if (stl != null)
                {
                    stl.ResourceChanged += new EventHandler(sts.OnResourceChanged);
                    sts.Add(l, stl);
                }
            }

            return(sts);
        }
예제 #3
0
        public static StringTableSet New(Package package)
        {
            StringTableSet sts = new StringTableSet(package, Package.NewInstance() >> 8);

            return sts;
        }
예제 #4
0
        public static StringTableSet New(Package package)
        {
            StringTableSet sts = new StringTableSet(package, Package.NewInstance() >> 8);

            return(sts);
        }