static void Main(string[] args) { MyEvent mailEvent = new MyEvent(); mailEvent.myEvent += OnNewMail; mailEvent.OnEventCoplete("Hello, my dear Lena!"); Console.ReadLine(); }
static void Main(string[] args) { MyEvent mailEvent = new MyEvent(); mailEvent.myEvent += OnNewMail; mailEvent.OnEventCoplete("Hello, my dear Lena!"); Console.ReadLine(); }