public bool FlagChangesFromSection(Section verSec) { SubjectVer = Subject.Equals(verSec.Subject); CatalogNbrVer = CatalogNbr.Equals(verSec.CatalogNbr); ClassDescrVer = ClassDescr.Equals(verSec.ClassDescr); SectionVer = SectionName.Equals(verSec.SectionName); ConsentVer = Consent.Equals(verSec.Consent); EnrlCapVer = EnrlCap.Equals(verSec.EnrlCap); TopicDescrVer = TopicDescr.Equals(verSec.TopicDescr); MeetingStartDtVer = MeetingStartDt.Equals(verSec.MeetingStartDt); MeetingEndDtVer = MeetingEndDt.Equals(verSec.MeetingEndDt); FacilityIdVer = FacilityId.Equals(verSec.FacilityId); MeetingTimeStartVer = MeetingTimeStart.Equals(verSec.MeetingTimeStart); MeetingTimeEndVer = MeetingTimeEnd.Equals(verSec.MeetingTimeEnd); MonVer = Mon.Equals(verSec.Mon); TuesVer = Tues.Equals(verSec.Tues); WedVer = Wed.Equals(verSec.Wed); ThursVer = Thurs.Equals(verSec.Thurs); FriVer = Fri.Equals(verSec.Fri); SatVer = Sat.Equals(verSec.Sat); SunVer = Sun.Equals(verSec.Sun); InstructorVer = Instructor.Equals(verSec.Instructor); UnitsMinVer = UnitsMin.Equals(verSec.UnitsMin); UnitsMaxVer = UnitsMax.Equals(verSec.UnitsMax); ClassAssnComponentVer = ClassAssnComponent.Equals(verSec.ClassAssnComponent); HasNotBeenChanged = SubjectVer && CatalogNbrVer && ClassDescrVer && SectionVer && ConsentVer && EnrlCapVer && TopicDescrVer && MeetingStartDtVer && MeetingEndDtVer && FacilityIdVer && MeetingTimeStartVer && MeetingTimeEndVer && MonVer && TuesVer && WedVer && ThursVer && FriVer && SatVer && SunVer && InstructorVer && UnitsMinVer && UnitsMaxVer && ClassAssnComponentVer; return(HasNotBeenChanged); }
private void button7_Click(object sender, EventArgs e) { MainPanel.Controls.Clear(); Fri su = new Fri(); MainPanel.Controls.Add(su); }