コード例 #1
0
        public object Clone()
        {
            var clone = new FinancialGoal(Value, Name);

            clone.AllocatedFunds = AllocatedFunds;
            clone.TimeToDeadline = TimeToDeadline;
            return(clone);
        }
コード例 #2
0
 //returns false if item not found
 public bool RemoveFinancialGoal(FinancialGoal goal)
 {
     return(FinancialGoals.Remove(goal));
 }
コード例 #3
0
 public void AddFinancialGoal(FinancialGoal goal)
 {
     FinancialGoals.Add(goal);
 }