public bool AddEntry(SupplyOrderEntry entry) { foreach (var testEntry in OrderEntries) { if (entry.ItemName == testEntry.ItemName) { return(false); } } OrderEntries.Add(entry); return(true); }
public void AddEntry(OrderEntry entry) { OrderEntries.Add(entry); }
/// <summary> /// Порядок сортировки записей /// </summary> /// <param name="order"></param> /// <returns></returns> public IFilter AddOrder(Order order) { OrderEntries.Add(new OrderEntry(order, this)); return(this); }