Beispiel #1
0
 void HandleCustomEvent(object sender, CustomEventArgs e)
 {
     Console.WriteLine($"Event id is {id}, date time message is following: {e.Message}");
 }
Beispiel #2
0
        public void DoSomething()
        {
            CustomEventArgs args = new CustomEventArgs("Something was done");

            OnRaiseCustomEvent(args);
        }