private static void Book(Loan pLoan, Event e, User pUser) { //IEventProcessor eP = new Events.Cash.EventProcessor(pUser, pLoan.ChartOfAccounts, pLoan); //pLoan.Events.Add(e); //AccountingTransaction mS = eP.FireEvent(e, pLoan.Product.Currency.Id); //if (mS != null) //{ // pLoan.ChartOfAccounts.Book(mS); // pLoan.Bookings = mS.Bookings; //} }
public bool IsLastEvent(Event e) { for (int i = _list.Count - 1; i >= 0; i--) { Event _e = _list[i]; if (!_e.Deleted) { return _e.Id == e.Id; } } return false; }
public void AddWithoutSorting(Event e) { _list.Add(e); }
public void Insert(int index, Event e) { _list.Insert(index, e); }
/// <summary> /// Add e to events list and sort list by id /// </summary> /// <param name="e"></param> public void Add(Event e) { _list.Add(e); SortEventsById(); }