Ejemplo n.º 1
0
 public List<Call> DeleteCalls(Call call)
 {
     this.callHistory.Remove(call);
     return this.callHistory;
 }
Ejemplo n.º 2
0
 public void RemoveCall(Call call)
 {
     for (int i = 0; i < callHistory.Count; i++)
     {
         if (call.Duration == callHistory[i].Duration)
         {
             callHistory.RemoveAt(i);
         }
     }
 }
Ejemplo n.º 3
0
 public List<Call> AddCalls(Call call)
 {
     this.callHistory.Add(call);
     return this.callHistory;
 }
Ejemplo n.º 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);
 }