예제 #1
0
        static void Main(string[] args)
        {
            Students        students = new Students();
            MovingEventArgs m        = new MovingEventArgs();
            StringHelper    h        = new StringHelper();

            students.onCount += m.Message;
            students.onCount += h.Message;
            students.Move(15);
        }
예제 #2
0
 private static void Student_Moving(object sender, MovingEventArgs e)
 {
     Console.WriteLine(e.Message);
 }