Exemplo n.º 1
0
        public LocalSettingsVM(LocalHexSettings options)
        {
            this.origOptions = options;
            this.bytesGroupCountVM = new NullableInt32VM(a => HasErrorUpdated());
            this.bytesPerLineVM = new NullableInt32VM(a => HasErrorUpdated(), true) {
                Min = 0,
                Max = HexEditorSettings.MAX_BYTES_PER_LINE,
            };
            this.hexOffsetSizeVM = new Int32VM(a => HasErrorUpdated(), true) {
                Min = 0,
                Max = 64,
            };
            this.baseOffsetVM = new UInt64VM(a => HasErrorUpdated());
            this.startOffsetVM = new NullableUInt64VM(a => HasErrorUpdated());
            this.endOffsetVM = new NullableUInt64VM(a => HasErrorUpdated());
            this.asciiEncodingVM = new EnumListVM(asciiEncodingList);

            Reinitialize();
        }
Exemplo n.º 2
0
        public LocalSettingsVM(LocalHexSettings options)
        {
            this.origOptions       = options;
            this.bytesGroupCountVM = new NullableInt32VM(a => HasErrorUpdated());
            this.bytesPerLineVM    = new NullableInt32VM(a => HasErrorUpdated(), true)
            {
                Min = 0,
                Max = HexSettings.MAX_BYTES_PER_LINE,
            };
            this.hexOffsetSizeVM = new Int32VM(a => HasErrorUpdated(), true)
            {
                Min = 0,
                Max = 64,
            };
            this.baseOffsetVM    = new UInt64VM(a => HasErrorUpdated());
            this.startOffsetVM   = new NullableUInt64VM(a => HasErrorUpdated());
            this.endOffsetVM     = new NullableUInt64VM(a => HasErrorUpdated());
            this.asciiEncodingVM = new EnumListVM(asciiEncodingList);

            Reinitialize();
        }