Exemplo n.º 1
0
        private static void WantMessage(object sender, WorkerEventArgs e)
        {
            WorkerEventArgs args = e as WorkerEventArgs;

            if (args != null)
            {
                Console.WriteLine($"I want working nothing\n");
            }
        }
Exemplo n.º 2
0
        public static void WorkingFinishMessage(object sender, EventArgs e)
        {
            WorkerEventArgs args = e as WorkerEventArgs;

            if (args != null)
            {
                Console.WriteLine($"I finished working {args.WorkingHours} for hours...{args.Complaint}\n)");
            }
        }