public AddScheduledProgrammeDialog(IProgrammeService programmeService, IScheduleService scheduleService) { InitializeComponent(); this.scheduleService = scheduleService; this.dateDayPickerContainer = new DateDayPickerContainer(); this.weekDayPickerContainer = new WeekDayPickerContainer(); this.chooseProgrammeContainer = new ChooseProgrammeContainer(programmeService); this.addProgrammeContainer = new AddProgrammeContainer(); CreateProgrammeChanged(); }
private void EditModeChanged(object sender, RoutedEventArgs e) { if (IsRb1Checked()) { this.chooseProgrammeContainer = new ChooseProgrammeContainer(this.programmeService, this.scheduledProgrammeID); this.editProgrammeContainer = null; this.ContentContainer.Children.Clear(); this.ContentContainer.Children.Add(this.chooseProgrammeContainer); } else if (IsRb2Checked()) { this.chooseProgrammeContainer = null; this.editProgrammeContainer = new EditScheduledProgrammeInfoContainer(); this.ContentContainer.Children.Clear(); this.ContentContainer.Children.Add(this.editProgrammeContainer); } }