public void Initialize(Slider slider)
 {
     this.slider = slider;
     this.trackBar1.Value = SliderToTrackBar();
     this.labelDescription.Text = slider.Description;
     this.trackBar1.LargeChange = (int)(trackBar1.Maximum * (slider.Increment / (slider.Maximum - slider.Minimum)));
     SetSliderTextBox(slider.Value);
 }
Exemple #2
0
 public Slider AddSlider(float defaultValue, float minimum, float maximum, float increment, string description)
 {
     Slider slider = new Slider(defaultValue, minimum, maximum, increment, description);
     sliders.Add(slider);
     return slider;
 }