public UserResourceType CreateUserResourceType(string fullName) { UserResourceType type; if (dict.TryGetValue(fullName, out type)) { return(type); } var newFullName = GetRealTypeFullName(fullName); type = new UserResourceType(newFullName, ResourceTypeCode.UserTypes + dict.Count); dict[fullName] = type; dict[newFullName] = type; return(type); }
public BinaryResourceData(UserResourceType type, byte[] data) : base(type) { this.data = data; }
public ImageResourceData(UserResourceType type, byte[] data) : base(type) { bitmap = new Bitmap(Image.FromStream(new MemoryStream(data))); }
public IconResourceData(UserResourceType type, byte[] data) : base(type) { icon = new Icon(new MemoryStream(data)); }
public CharArrayResourceData(UserResourceType type, char[] data) : base(type) { this.data = data; }
public UserResourceData(UserResourceType type) { this.type = type; }
public UserResourceType createUserResourceType(string fullName) { UserResourceType type; if (dict.TryGetValue(fullName, out type)) return type; var newFullName = getRealTypeFullName(fullName); type = new UserResourceType(newFullName, ResourceTypeCode.UserTypes + dict.Count); dict[fullName] = type; dict[newFullName] = type; return type; }