Example #1
0
        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;
 }
Example #7
0
		public BinaryResourceData(UserResourceType type, byte[] data)
			: base(type) {
			this.data = data;
		}
Example #8
0
		public ImageResourceData(UserResourceType type, byte[] data)
			: base(type) {
			bitmap = new Bitmap(Image.FromStream(new MemoryStream(data)));
		}
Example #9
0
		public IconResourceData(UserResourceType type, byte[] data)
			: base(type) {
			icon = new Icon(new MemoryStream(data));
		}
Example #10
0
		public CharArrayResourceData(UserResourceType type, char[] data)
			: base(type) {
			this.data = data;
		}
Example #11
0
		public UserResourceData(UserResourceType type) {
			this.type = type;
		}
Example #12
0
        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;
        }