public FinancialPlan(FinancialPlan copyFrom) { DateCreated = DateTime.Now; Income = copyFrom.Income; Savings = copyFrom.Savings; PlannedSavings = copyFrom.PlannedSavings; FinancialGoals = copyFrom.FinancialGoals; Expenses = copyFrom.Expenses; }
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); }
public static void UpdateActive() { ActivePlan = FinancialPlans.Last(); }