Пример #1
0
 public void distribute()
 {
     foreach (var item in empl)
     {
         EmpArgs e = new EmpArgs();
         e.Name = item;
         OnPizzaDist(e);
     }
 }
Пример #2
0
        public void OnPizzaDist(EmpArgs e)
        {
            var handler = PizzaDist;

            if (handler != null)
            {
                PizzaDist(this, e);
            }
        }
Пример #3
0
 private static void Em_PizzaDist(object sender, EmpArgs e)
 {
     Console.WriteLine(e.Name);
 }