public void OnCome(Employee e, OnComeEventArgs args) { Come?.Invoke(e, args); Come += e.SayHi; Leave += e.SayGoodby; }
public void OnCome() { if (Come != null) { Come?.Invoke(this, DateTime.Now); } }
public void GoToOffice(int time) { Come?.Invoke(this, new OnComeEventArgs(Name, time)); }
/// <summary> /// Вызывает событие Come /// </summary> /// <param name="time">Время прихода сотрудника в офис</param> public void ComeToOffice(DateTime time) { Come?.Invoke(this, time); }