private void InitializeTimeZones() { List <SchedulerTimeZone> listOfTimeZones = SchedulerTimeZone.GetSchedulerTimeZones(); foreach (SchedulerTimeZone timezone in listOfTimeZones) { timezone.Label = timezone.Label.Replace("(", string.Empty); timezone.Label = timezone.Label.Replace(")", string.Empty); } this.radDropDownList2.DataSource = new List <SchedulerTimeZone>(listOfTimeZones); }
private void radButton2_Click(object sender, EventArgs e) { SchedulerDayViewBase view = this.radScheduler1.ActiveView as SchedulerDayViewBase; if (view != null) { SchedulerTimeZone schedulerTimeZone = this.radDropDownList2.SelectedValue as SchedulerTimeZone; if (!view.TimeZones.Contains(schedulerTimeZone)) { view.TimeZones.Add(schedulerTimeZone); } } }