Ejemplo n.º 1
0
 public SliderHandler()
 {
     Control = new EtoSlider {
         Handler = this
     };
     Control.Activated += HandleActivated;
     MinValue           = 0;
     MaxValue           = 100;
 }
Ejemplo n.º 2
0
        public ProgressBarHandler()
        {
            Control = new EtoSlider {
                Handler = this, Indeterminate = false
            };

            MinValue = 0;
            MaxValue = 100;
        }
Ejemplo n.º 3
0
        public SliderHandler()
        {
            Control = new EtoSlider {
                Handler = this
            };
            Control.Activated += delegate {
                if (Control.DoubleValue != (double)Control.IntValue)
                {
                    Control.IntValue = (int)Math.Round(Control.DoubleValue);
                }

                Widget.OnValueChanged(EventArgs.Empty);
            };
            MinValue = 0;
            MaxValue = 100;
        }