private void LoadSchedulesComboBox()
        {
            try
            {
                List<ScheduleSummary> schedules = new List<ScheduleSummary>();
                var allSchedules = Proxies.SchedulerService.GetAllSchedules(ChannelType.Television, _scheduleType, false).Result;
                foreach (ScheduleSummary schedule in allSchedules)
                {
                    if (schedule.IsActive)
                    {
                        schedules.Add(schedule);
                    }
                }
                schedules.Sort(
                    delegate(ScheduleSummary s1, ScheduleSummary s2) { return s1.Name.CompareTo(s2.Name); });
                ScheduleSummary allSchedulesEntry = new ScheduleSummary();
                allSchedulesEntry.ScheduleId = Guid.Empty;
                allSchedulesEntry.Name = String.Empty;
                schedules.Insert(0, allSchedulesEntry);

                _schedulesComboBox.DataSource = schedules;
                _schedulesComboBox.DisplayMember = "Name";
            }
            catch (Exception ex)
            {
                _schedulesComboBox.DataSource = null;
                MessageBox.Show(this, ex.Message, null, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
 /// <summary>
 /// Save a modified schedule summary.
 /// </summary>
 /// <param name="scheduleSummary">The schedule summary to save.</param>
 /// <returns>The saved schedule.</returns>
 public async Task<ScheduleSummary> SaveScheduleSummary(ScheduleSummary scheduleSummary)
 {
     var request = NewRequest(HttpMethod.Post, "SaveScheduleSummary");
     request.AddBody(scheduleSummary);
     return await ExecuteAsync<ScheduleSummary>(request).ConfigureAwait(false);
 }