private void RadNumericUpDown_ValueChanged_1(object sender, RadRangeBaseValueChangedEventArgs e)
 {
     if (outlookBar != null)
     {
         outlookBar.MinimizedWidthThreshold = (double)e.NewValue;
     }
 }
Ejemplo n.º 2
0
        private void RadNumericUpDown_ValueChanged_1(object sender, RadRangeBaseValueChangedEventArgs e)
        {
            var nud = sender as RadNumericUpDown;
            if (nud != null)
            {
                if (nud.Value > 24)
                {
                    nud.Value = 24;
                    var textBox = nud.FindChildByType<TextBox>();

                    if (textBox != null)
                    {
                        textBox.Text = "24.0";
                    }
                }

                if (nud.Value < 0)
                {
                    nud.Value = 0;
                    var textBox = nud.FindChildByType<TextBox>();

                    if (textBox != null)
                    {
                        textBox.Text = "0.0";
                    }
                }
            }
        }
		private void refreshRate_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e)
		{
			TimeSpan refreshRate = TimeSpan.FromSeconds(e.NewValue.Value);
			markerMax.RefreshRate = refreshRate;
			markerMin.RefreshRate = refreshRate;
			numericIndicator.RefreshRate = refreshRate;
		}
		private void OffsetChanged(object sender, RadRangeBaseValueChangedEventArgs e)
		{
			if (this.relative != null)
			{
				if (this.relative.IsChecked == true)
				{
					this.radialScale.LabelOffset = new GaugeMeasure(this.labelOffset.Value.Value, GridUnitType.Star);
				}
				else
				{
					this.radialScale.LabelOffset = new GaugeMeasure(this.labelOffset.Value.Value, GridUnitType.Pixel);
				}
			}
		}
Ejemplo n.º 5
0
		private void ZoomSpinner_OnValueChanged(object sender, RadRangeBaseValueChangedEventArgs e)
		{
			if (diagram != null && ZoomSpinner != null && ZoomSpinner.Value.HasValue)
				diagram.Zoom = ZoomSpinner.Value.Value / 100d;
		}
Ejemplo n.º 6
0
		private void CellHeightSpinner_OnValueChanged(object sender, RadRangeBaseValueChangedEventArgs e)
		{
			if (diagram != null && CellHeightSpinner != null && CellHeightSpinner.Value.HasValue)
				BackgroundGrid.SetCellSize(diagram, new Size(CellWidthSpinner.Value.Value, CellHeightSpinner.Value.Value));
		}
		private void MajorTickSizeChanged(object sender, RadRangeBaseValueChangedEventArgs e)
		{
			if (this.isInitialized)
			{
				this.linearScale.MajorTickRelativeHeight = new GaugeMeasure(this.majorHeight.Value.Value, GridUnitType.Star);
				this.linearScale.MajorTickRelativeWidth = new GaugeMeasure(this.majorWidth.Value.Value, GridUnitType.Star);
				ScaleObject.SetRelativeWidth(this.customRect, new GaugeMeasure(this.majorWidth.Value.Value, GridUnitType.Star));
			}
		}
		private void MinorTickSizeChanged(object sender, RadRangeBaseValueChangedEventArgs e)
		{
			if (this.isInitialized)
			{
				this.linearScale.MinorTickRelativeWidth = new GaugeMeasure(this.minorWidth.Value.Value, GridUnitType.Star);
			}
		}
		private void MiddleTickSizeChanged(object sender, RadRangeBaseValueChangedEventArgs e)
		{
			if (this.isInitialized)
			{
				this.radialScale.MiddleTickRelativeHeight = new GaugeMeasure(this.middleHeight.Value.Value, GridUnitType.Star);
			}
		}
 private void RadNumIndent_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e)
 {
     this.RecordIndentationChange();
 }
Ejemplo n.º 11
0
        private void ProcessVariation_OnValueChanged(object sender, RadRangeBaseValueChangedEventArgs e)
        {
            OnValueChanged(sender, (res) =>
            {
                DataSource.ProcessVariation = res;

                if (DataSource.ProcessVariation != res)
                    ((RadNumericUpDown)sender).Value = DataSource.ProcessVariation;
            });
        }
Ejemplo n.º 12
0
        private void Tolerance_OnValueChanged(object sender, RadRangeBaseValueChangedEventArgs e)
        {
            OnValueChanged(sender, (res) =>
            {
                DataSource.Tolerance = res;

                if (DataSource.Tolerance != res)
                    ((RadNumericUpDown)sender).Value = DataSource.Tolerance;
            });
        }
Ejemplo n.º 13
0
        private void NumberOfTrials_OnValueChanged(object sender, RadRangeBaseValueChangedEventArgs e)
        {
            OnValueChanged(sender, (res) =>
            {
                var newValue = Convert.ToInt32(res);

                DataSource.NumberOfTrials = newValue;

                if (DataSource.NumberOfTrials != newValue)
                    ((RadNumericUpDown)sender).Value = DataSource.NumberOfTrials;
            });
        }