Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Check"/> class.
 /// </summary>
 /// <param name="parent">Parent control.</param>
 public Number(Control.Base parent)
     : base(parent)
 {
     m_NumericUpDown = new Control.NumericUpDown(this);
     m_NumericUpDown.ValueChanged += OnValueChanged;
     m_NumericUpDown.ShouldDrawBackground = false;
     m_NumericUpDown.Dock = Pos.Fill;
 }
Exemplo n.º 2
0
 public NumericUpDown(Base parent)
     : base(parent)
 {
     Control.NumericUpDown ctrl = new Control.NumericUpDown(this);
     ctrl.SetBounds(10, 10, 50, 20);
     ctrl.Value = 50;
     ctrl.Max = 100;
     ctrl.Min = -100;
     ctrl.ValueChanged += OnValueChanged;
 }
Exemplo n.º 3
0
 public NumericUpDown(ControlBase parent)
     : base(parent)
 {
     Control.NumericUpDown ctrl = new Control.NumericUpDown(this);
     ctrl.SetBounds(10, 10, 50, 20);
     ctrl.Value         = 50;
     ctrl.Max           = 100;
     ctrl.Min           = -100;
     ctrl.ValueChanged += OnValueChanged;
 }
Exemplo n.º 4
0
        public NumericUpDown(ControlBase parent)
            : base(parent)
        {
            VerticalLayout layout = new VerticalLayout(this);

            Control.NumericUpDown ctrl = new Control.NumericUpDown(layout);
            ctrl.Margin        = Margin.Five;
            ctrl.Width         = 70;
            ctrl.Value         = 50;
            ctrl.Max           = 100;
            ctrl.Min           = -100;
            ctrl.ValueChanged += OnValueChanged;

            ctrl               = new Control.NumericUpDown(layout);
            ctrl.Margin        = Margin.Five;
            ctrl.Width         = 70;
            ctrl.Value         = 50;
            ctrl.Max           = 100;
            ctrl.Min           = -100;
            ctrl.Step          = 5;
            ctrl.ValueChanged += OnValueChanged;

            ctrl               = new Control.NumericUpDown(layout);
            ctrl.Margin        = Margin.Five;
            ctrl.Width         = 70;
            ctrl.Value         = 50;
            ctrl.Max           = 100;
            ctrl.Min           = -100;
            ctrl.Step          = 0.1f;
            ctrl.ValueChanged += OnValueChanged;

            ctrl               = new Control.NumericUpDown(layout);
            ctrl.Margin        = Margin.Five;
            ctrl.Width         = 70;
            ctrl.Max           = Single.MaxValue;
            ctrl.Min           = 0;
            ctrl.Step          = 1f;
            ctrl.ValueChanged += OnValueChanged;
        }
Exemplo n.º 5
0
 void parallelCheckToleranceNumUD_ValueChanged(Control.NumericUpDown m, double NewValue)
 {
     RealMeta.ParallelTollerance = NewValue;
 }