public void displayID(Object studentObj, Student.StudentEventArgs e) { Student student = (Student)studentObj; Console.WriteLine("student sex:{0}", e.ID); Console.WriteLine(); }
public void displayName(Object studentObj, Student.StudentEventArgs e) { Student student = (Student)studentObj; Console.WriteLine("student name:{0}", e.name); Console.WriteLine(); }