Exemplo n.º 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}");
            }
        }
Exemplo n.º 2
0
 private static void AppendNormalProcess(object sender, NormalEventArgs state)
 {
     Console.WriteLine($"Processing appended to Normal Process: {state}");
 }
Exemplo n.º 3
0
 private static void PerformNormalProcess(object sender, NormalEventArgs state)
 {
     Console.WriteLine($"Performing Normal Process: {state}");
 }