コード例 #1
0
 protected void ResetUIRanges()
 {
     this.numericUpDown.Minimum = ToNudValue(Property.MinValue);
     this.numericUpDown.Maximum = ToNudValue(Property.MaxValue);
     this.slider.Minimum        = ToSliderValue(Property.MinValue);
     this.slider.Maximum        = ToSliderValue(Property.MaxValue);
     this.slider.TickFrequency  = PropertyControlUtil.GetGoodSliderTickFrequency(this.slider);
 }
コード例 #2
0
 protected void ResetUIRanges()
 {
     this.sliderX.Minimum        = this.ToSliderValueX(base.Property.MinValueX);
     this.sliderX.Maximum        = this.ToSliderValueX(base.Property.MaxValueX);
     this.sliderX.TickFrequency  = PropertyControlUtil.GetGoodSliderTickFrequency(this.sliderX);
     this.numericUpDownX.Minimum = this.ToNudValueX(base.Property.MinValueX);
     this.numericUpDownX.Maximum = this.ToNudValueX(base.Property.MaxValueX);
     this.sliderY.Minimum        = this.ToSliderValueY(base.Property.MinValueY);
     this.sliderY.Maximum        = this.ToSliderValueY(base.Property.MaxValueY);
     this.sliderY.TickFrequency  = PropertyControlUtil.GetGoodSliderTickFrequency(this.sliderY);
     this.numericUpDownY.Minimum = this.ToNudValueY(base.Property.MinValueY);
     this.numericUpDownY.Maximum = this.ToNudValueY(base.Property.MaxValueY);
 }