示例#1
0
        void radScheduler1_RefreshNeeded(object sender, EventArgs e)
        {
            isUpdating = true;
            SchedulerTimescale scale = this.radScheduler1.GetTimelineView().GetScaling();

            switch (scale.Timescale)
            {
            case Timescales.Months:
                this.radRadioButtonMonth.IsChecked = true;
                break;

            case Timescales.Hours:
                this.radRadioButtonHour.IsChecked = true;
                break;

            case Timescales.Days:
                this.radRadioButtonDay.IsChecked = true;
                break;

            case Timescales.Weeks:
                this.radRadioButtonWeek.IsChecked = true;
                break;
            }
            isUpdating = false;
        }
示例#2
0
        private void radSpinEditorTimeSlots_ValueChanged(object sender, EventArgs e)
        {
            SchedulerTimescale timescale = this.radScheduler1.GetTimelineView().GetScaling();

            timescale.DisplayedCellsCount = (int)this.radSpinEditorTimeSlots.Value;
        }