public void Register(Student student) { Console.WriteLine("Registering student"); StudentArgs args = new StudentArgs(student); OnRegistration(this, args); }
public void PrintCard(object sender, StudentArgs ars) { Student student = ars.Student; Console.WriteLine("Printing card ..."); }