예제 #1
0
        protected virtual void OnRaiseNormalEvent(NormalEventArgs data)
        {
            EventHandler <NormalEventArgs> handler = this.RaiseNormalEvent;

            // A null check on the handler is necessary in case nothing has been added.
            if (handler != null)
            {
                Console.WriteLine($"Invoking NormalEvent: {data}");
                handler(this, data);
            }
            else
            {
                Console.WriteLine($"No Events to Raise: {data}");
            }
        }
예제 #2
0
 private static void AppendNormalProcess(object sender, NormalEventArgs state)
 {
     Console.WriteLine($"Processing appended to Normal Process: {state}");
 }
예제 #3
0
 private static void PerformNormalProcess(object sender, NormalEventArgs state)
 {
     Console.WriteLine($"Performing Normal Process: {state}");
 }