public void FireCallEvent(CourseCollection cc) { if (CallEvent == null) { return; } DataLayer.CC_CallEventArgs CCEvtArgs = new DataLayer.CC_CallEventArgs(cc); CallEvent(this, CCEvtArgs); }// End FireCall Event
//TODO: Add the rest of the lists to be deserialize public void Initialize() { string courseFileName = "CourseCollection.json"; FileStream CC_reader = new FileStream(courseFileName, FileMode.Open, FileAccess.Read); DataContractJsonSerializer inputSerializer; inputSerializer = new DataContractJsonSerializer(typeof(CourseCollection)); cc = (CourseCollection)inputSerializer.ReadObject(CC_reader); CC_reader.Close(); }// End Initialize
public CC_CallEventArgs(CourseCollection cc) { Courses = cc; }