public void ShowLifeSign() { EmployeeArgs args = new EmployeeArgs { Message = $"For the record: {Name} is alive" }; pulse(this, args); }
public void ListenSignal(object sender, EmployeeArgs args) { Employee employ = (Employee)sender; Console.WriteLine($"Bip from {employ.Name}"); }
public void ListenLifesign(object sender, EmployeeArgs args) { Console.WriteLine(args.Message); }