Esempio n. 1
0
        /// <summary>
        /// Generate yearly forcast operations
        /// </summary>
        /// <returns>A list of yearly forcast operations</returns>
        private List <Operation> populateYearlyOperations()
        {
            var lstOps = new List <Operation>();

            for (var i = 0; i < NbOfRepetition; i++)
            {
                //Consider only due dates in the future
                if (DateTime.Compare(DueDate.AddYears(i), DateTime.Now) >= 0)
                {
                    lstOps.Add(new Operation(DueDate.AddYears(i), Commentary, Credit, Debit, Type, Budget, ID));
                }
            }
            return(lstOps);
        }