Example #1
0
        public virtual IncomeValue AddIncomeValue(Income income, decimal value, DateTime date, string description)
        {
            IncomeValue IncomeValue = income.AddIncomeValue(this, value, date, description);

            IncomeValues.Add(IncomeValue);
            return(IncomeValue);
        }
Example #2
0
 public virtual IncomeValue AddIncomeValue(Budget budget, decimal value, DateTime date, string description)
 {
     IncomeValue incomeValue = new IncomeValue
     {
         Date        = date,
         Income      = this,
         Value       = value,
         Description = description,
         Budget      = budget,
     };
     Values.Add(incomeValue);
     return incomeValue;
 }
Example #3
0
        public virtual IncomeValue AddIncomeValue(Budget budget, decimal value, DateTime date, string description)
        {
            IncomeValue incomeValue = new IncomeValue
            {
                Date        = date,
                Income      = this,
                Value       = value,
                Description = description,
                Budget      = budget,
            };

            Values.Add(incomeValue);
            return(incomeValue);
        }
 public void RemoveIncomeValue(IncomeValue incomeValue)
 {
     Budget.RemoveIncomeValue(incomeValue);
     DeleteRevenue(incomeValue);
 }
Example #5
0
 public virtual void RemoveIncomeValue(IncomeValue IncomeValue)
 {
     IncomeValues.Remove(IncomeValue);
 }
Example #6
0
 public virtual void RemoveIncomeValue(IncomeValue IncomeValue)
 {
     IncomeValues.Remove(IncomeValue);
 }