예제 #1
0
        private void radSpinPage_ValueChanging(object sender, Telerik.WinControls.UI.ValueChangingEventArgs e)
        {
            if (!this.isInitializing)
            {
                var value   = (decimal)e.NewValue;
                var pageNum = (int)value;

                if (value == this.radSpinPage.Minimum)
                {
                    this.OnFirstPage(sender, pageNum);
                }
                else if (value == this.radSpinPage.Maximum)
                {
                    this.OnLastPage(sender, pageNum);
                }
                else if (value == (decimal)e.OldValue - 1.0m)
                {
                    this.OnPrevPage(sender, pageNum);
                }
                else if (value == (decimal)e.OldValue + 1.0m)
                {
                    this.OnNextPage(sender, pageNum);
                }
                else
                {
                    this.OnGotoPage(sender, pageNum);
                }
            }
        }
 private void radDateTimePickerElementEnd_ValueChanged(object sender, Telerik.WinControls.UI.ValueChangingEventArgs e)
 {
     System.Threading.Thread.CurrentThread.CurrentCulture   = persianCulture;
     System.Threading.Thread.CurrentThread.CurrentUICulture = persianCulture;
 }