public NumericPropertyEditor()
        {
            this.numEditor = new NumericEditorTemplate(this);
            this.numEditor.Invalidate += this.numEditor_Invalidate;
            this.numEditor.Edited += this.numEditor_Edited;
            this.numEditor.EditingFinished += this.numEditor_EditingFinished;

            //this.Height = 18;
        }
        public ImagePreviewPropertyEditor()
        {
            this.subImageSelector = new NumericEditorTemplate(this);
            this.subImageSelector.Edited += this.subImageSelector_Edited;
            this.subImageSelector.Invalidate += this.subImageSelector_Invalidate;
            this.subImageSelector.ReadOnly = false;
            this.subImageSelector.Minimum = -1;
            this.subImageSelector.Maximum = -1;
            this.subImageSelector.Value = -1;

            this.Height = SmallHeight;
            this.Hints = HintFlags.None;
        }
예제 #3
0
 protected virtual void ApplyDefaultSubEditorConfig(NumericEditorTemplate subEditor)
 {
     subEditor.DecimalPlaces = 2;
     subEditor.Increment = 0.1m;
 }
예제 #4
0
 protected override void ApplyDefaultSubEditorConfig(NumericEditorTemplate subEditor)
 {
     base.ApplyDefaultSubEditorConfig(subEditor);
     subEditor.DecimalPlaces = 0;
     subEditor.Increment = 1;
 }