static void notification_notificationevent(object sender, EventArgs e) { Notification n = (Notification)sender; Console.WriteLine(n.ToString()); }