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; }
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); }
public static StringTableSet New(Package package) { StringTableSet sts = new StringTableSet(package, Package.NewInstance() >> 8); return sts; }
public static StringTableSet New(Package package) { StringTableSet sts = new StringTableSet(package, Package.NewInstance() >> 8); return(sts); }