Example #1
0
        // The is the function that fires the event:
        protected virtual void onNewUserEvent(NewUserEventArgs e)
        {
            var temp = NewUserEvent;

            if (temp != null)
            {
                temp(this, e);
            }
        }
Example #2
0
 private void DoOnNewUser(object sender, NewUserEventArgs e)
 {
     Console.WriteLine("*** In Subscriber 2. Recieved OnNewUser Event.");
     Console.WriteLine("New user: {0} Age: {1}", e.userName, e.userAge);
 }