private void EditSchedule()
        {
            if (Watcher.Schedule == null)
            {
                return;
            }
            var schEditVm = new ScheduleEditTabViewModel(TabController, Watcher.Schedule);

            TabController.OpenTab(schEditVm);
        }
        private void AddSchedule()
        {
            var schedule = TabController.ConfigurationService.GetEmptyObject <ScheduleData>(TabController.Configuration);

            schedule.Code = "New schedule";
            var sEditVm = new ScheduleEditTabViewModel(TabController, schedule);

            Watcher.Schedule = schedule;
            TabController.OpenTab(sEditVm);
        }