예제 #1
0
 public List<Call> DeleteCalls(Call call)
 {
     this.callHistory.Remove(call);
     return this.callHistory;
 }
예제 #2
0
 public void RemoveCall(Call call)
 {
     for (int i = 0; i < callHistory.Count; i++)
     {
         if (call.Duration == callHistory[i].Duration)
         {
             callHistory.RemoveAt(i);
         }
     }
 }
예제 #3
0
 public List<Call> AddCalls(Call call)
 {
     this.callHistory.Add(call);
     return this.callHistory;
 }
예제 #4
0
 // Add methods for adding and deleting calls from the calls history. Add a method to clear the call history. (Task 10.)
 public void AddCall(Call call)
 {
     callHistory.Add(call);
 }