public void StartProcess()
        {
            Console.WriteLine("Process Started!");


            OnProcessCompleted(EventArgs.Empty);


            MyEventArg myEventArg = new MyEventArg();

            myEventArg.Uhrzeit = DateTime.Now;

            OnProcessCompletedNew(myEventArg);
        }
 public virtual void OnProcessCompletedNew(MyEventArg e)
 {
     ProcessCompletedNew?.Invoke(this, e);
 }
Exemplo n.º 3
0
        private static void Bl2_ProcessCompletedNew(object sender, EventArgs e)
        {
            MyEventArg myEventArg = (MyEventArg)e;

            Console.WriteLine($"Fertig am {myEventArg.Uhrzeit.ToString()}");
        }