示例#1
0
		public ImageListVM(ImageListOptions options) {
			origOptions = options;

			ImageListStreamerVM = new ImageListStreamerVM();
			ImageListStreamerVM.Collection.CollectionChanged += (s, e) => HasErrorUpdated();
			WidthVM = new Int32VM(a => HasErrorUpdated(), true) {
				Min = 1,
				Max = 256,
			};
			HeightVM = new Int32VM(a => HasErrorUpdated(), true) {
				Min = 1,
				Max = 256,
			};
			TransparentColorVM = new DefaultConverterVM<Color>(a => HasErrorUpdated());

			Reinitialize();
		}
示例#2
0
        public ImageListVM(ImageListOptions options)
        {
            this.origOptions = options;

            this.imageListStreamerVM = new ImageListStreamerVM();
            ImageListStreamerVM.Collection.CollectionChanged += (s, e) => HasErrorUpdated();
            this.widthVM = new Int32VM(a => HasErrorUpdated()) {
                Min = 1,
                Max = 256,
                UseDecimal = true,
            };
            this.heightVM = new Int32VM(a => HasErrorUpdated()) {
                Min = 1,
                Max = 256,
                UseDecimal = true,
            };
            this.transparentColorVM = new DefaultConverterVM<Color>(a => HasErrorUpdated());

            Reinitialize();
        }