private void OnOrderAdded(List <LaborDetail.ListItem> orders) { if (OrderAdded != null) { OrderAdded.Invoke(this, new OrderEventArgs(orders)); } }
public OrderBase AddOrder(OrderType orderType) { OrderBase order = OrderFactory.CreateOrder(this, orderType); OrderList.Add(order); OrderAdded?.Invoke(order); return(order); }
protected virtual void onOrderAdded(Order o) { OrderAdded?.Invoke(this, o); }