private void RadNumericUpDown_ValueChanged_1(object sender, RadRangeBaseValueChangedEventArgs e) { if (outlookBar != null) { outlookBar.MinimizedWidthThreshold = (double)e.NewValue; } }
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; }
/// <summary> /// Sự kiện thay đổi số bản ghi trên một page hiển thị /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void nudPageSize_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) { if (grid != null && grid.DataContext != null) { DataTable dt = ((DataView)grid.DataContext).Table; if (dt != null) { radPage.PageSize = (int)nudPageSize.Value; grid.DataContext = dt.DefaultView; } } }
/// <summary> /// Sự kiện thay đổi số bản ghi trên một page hiển thị /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void nudPageSize_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) { if (grDanhSach != null && grDanhSach.ItemsSource != null) { if (dtDetail != null) { radPage.PageSize = (int)nudPageSize.Value; //grDanhSach.DataContext = dt.DefaultView; grDanhSach.ItemsSource = dtDetail.DefaultView; loadWidthColumn(); } } }
/// <summary> /// Sự kiện thay đổi số bản ghi trên một page hiển thị /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void nudPageSize_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) { if (grDanhSach != null) { radPage.PageSize = (int)nudPageSize.Value; if (dt.Rows.Count > 0) { grDanhSach.ItemsSource = dt.DefaultView; } lblSumNNSD.Content = dt.Rows.Count; loadWidthColumnDoiTuong(); } }
/// <summary> /// Sự kiện thay đổi số bản ghi trên một page hiển thị /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void nudPageSize_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) { if (grDanhSach != null) { radPage.PageSize = (int)nudPageSize.Value; if (grdData.Rows.Count > 0) { grDanhSach.ItemsSource = grdData; } lblTong.Content = grdData.Rows.Count; loadWidthColumn(); } }
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); } } }
/// <summary> /// Sự kiện thay đổi số bản ghi trên một page hiển thị /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void nudPageSize_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) { if (grKhachHangDS != null && grKhachHangDS.ItemsSource != null) { DataTable dt = null; if (grKhachHangDS.ItemsSource is DataView) { dt = ((DataView)grKhachHangDS.ItemsSource).Table; } else { dt = grKhachHangDS.ItemsSource as DataTable; } if (dt != null) { radpage.PageSize = (int)nudPageSize.Value; grKhachHangDS.ItemsSource = dt.DefaultView; } } }
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; }); }
private void ZoomSpinner_OnValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) { if (diagram != null && ZoomSpinner != null && ZoomSpinner.Value.HasValue) diagram.Zoom = ZoomSpinner.Value.Value / 100d; }
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 dpYear_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) { this.FilterSourceStyles(); }
private void Tolerance_OnValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) { OnValueChanged(sender, (res) => { DataSource.Tolerance = res; if (DataSource.Tolerance != res) ((RadNumericUpDown)sender).Value = DataSource.Tolerance; }); }
private void nudRowNum_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) { string str = ucTThaiNVu.GetItemsSelected(); }
private void RadNumIndent_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) { this.RecordIndentationChange(); }
private void RadNumIndent_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) { this.RecordIndentationChange(); }
private void ProcessVariation_OnValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) { OnValueChanged(sender, (res) => { DataSource.ProcessVariation = res; if (DataSource.ProcessVariation != res) ((RadNumericUpDown)sender).Value = DataSource.ProcessVariation; }); }