Esempio n. 1
0
 private void CheckHomework(CustomEventArgs e)
 {
     e.Message.Grade = 3;
     Console.WriteLine(Name + " rated the homework above with grade: {0}", e.Message.Grade);
     Console.WriteLine("-----------------------------------------");
 }
Esempio n. 2
0
 private void HandleCustomEvent(object sender, CustomEventArgs e)
 {
     Console.WriteLine("-----------------------------------------");
     Console.WriteLine(Name + " received this homework: {0}", e.Message.Content);
     CheckHomework(e);
 }