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