Exemplo n.º 1
0
 public void FireCallEvent(CourseCollection cc)
 {
     if (CallEvent == null)
     {
         return;
     }
     DataLayer.CC_CallEventArgs CCEvtArgs = new DataLayer.CC_CallEventArgs(cc);
     CallEvent(this, CCEvtArgs);
 }// End FireCall Event
Exemplo n.º 2
0
        //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
Exemplo n.º 3
0
 public CC_CallEventArgs(CourseCollection cc)
 {
     Courses = cc;
 }