我正在使用以下内容在转发器中替换一些数据 -
BindingSource bindingSource5 = new BindingSource();
bindingSource5.DataSource = BookingManager.GetBookingDaysForDayWithBookingFields(DateTime.Now.AddDays(+4));
lbSchoolFri.DataBindings.Add("Text", bindingSource5, "SchoolName");
lbTeacherFri.DataBindings.Add("Text", bindingSource5, "FullName");
lbDurationFri.DataBindings.Add("Text", bindingSource5, "BookingDayDuration");
lbYear.DataBindings.Add("Text", bindingSource5, "Year");
cbSchoolFri.DataBindings.Add("Checked", bindingSource5, "SchoolContacted");
cbTeacherFri.DataBindings.Add("Checked", bindingSource5, "TeacherContacted");
cbEmailFri.DataBindings.Add("Checked", bindingSource5, "LetterSent");
dataRepeater5.DataSource = bindingSource5;
如果选中 cbSchoolFriday,我想将 Picture Box pbFriday 的背景颜色更改为红色。我怎样才能做到这一点?
截屏 -
谢谢