private void editSchedule()
 {
     if (SelectedSchedule != null)
     {
         var schedule = _dialogs.ShowScheduleDialog(SelectedSchedule.Schedule);
         if (schedule != null)
         {
             SelectedSchedule.Schedule = schedule;
             refreshItems();
         }
     }
 }