public void distribute() { foreach (var item in empl) { EmpArgs e = new EmpArgs(); e.Name = item; OnPizzaDist(e); } }
public void OnPizzaDist(EmpArgs e) { var handler = PizzaDist; if (handler != null) { PizzaDist(this, e); } }
private static void Em_PizzaDist(object sender, EmpArgs e) { Console.WriteLine(e.Name); }