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