예제 #1
0
 private void SetupChannel(ref SharpDXTrackbar control, string channel, byte value)
 {
     control                    = new SharpDXTrackbar();
     control.Minimum            = 0;
     control.Maximum            = 1;
     control.NumberOfDecimals   = 4;
     control.Value              = value / 255f;
     control.ValueChangedEvent += control_ValueChangedEvent;
     control.FillParent         = true;
     control.Text               = channel;
     this.AddChildControl(control);
 }
 private void SetupChannel(ref SharpDXTrackbar control, string channel, byte value)
 {
     control = new SharpDXTrackbar();
     control.Minimum = 0;
     control.Maximum = 1;
     control.NumberOfDecimals = 4;
     control.Value = value / 255f;
     control.ValueChangedEvent += control_ValueChangedEvent;
     control.FillParent = true;
     control.Text = channel;
     this.AddChildControl(control);
 }
예제 #3
0
 private static void InitTrackBar(ref SharpDXTrackbar control, string text, object tag, float min =0, float max = 100, float value = 50, int numberofdecimals = 2)
 {
     control = new SharpDXTrackbar();
     control.Text = text;
     control.Tag = tag;
     control.Minimum = min;
     control.Maximum = max;
     control.Value = value;
     control.NumberOfDecimals = numberofdecimals;
     control.ValueChangedEvent += trackBar_ValueChangedEvent;
 }