Example #1
0
 public FinancialPlan(FinancialPlan copyFrom)
 {
     DateCreated    = DateTime.Now;
     Income         = copyFrom.Income;
     Savings        = copyFrom.Savings;
     PlannedSavings = copyFrom.PlannedSavings;
     FinancialGoals = copyFrom.FinancialGoals;
     Expenses       = copyFrom.Expenses;
 }
Example #2
0
        public object Clone()
        {
            FinancialPlan clone = new FinancialPlan
            {
                Income         = Income,
                Savings        = Savings,
                PlannedSavings = PlannedSavings,
                FinancialGoals = (List <FinancialGoal>)FinancialGoals.Clone(),
                Expenses       = (List <Expense>)Expenses.Clone()
            };

            return(clone);
        }
Example #3
0
 public static void UpdateActive()
 {
     ActivePlan = FinancialPlans.Last();
 }