Exemple #1
0
 public bool DeleteCallFromHistory(Call call)
 {
     for (int i = 0; i < callHistory.Count; i++)
     {
         if (callHistory[i].Date == call.Date &&
             callHistory[i].Time == call.Time &&
             callHistory[i].DialedPhone == call.DialedPhone &&
             callHistory[i].Duration == call.Duration)
         {
             callHistory.RemoveAt(i);
             return true;
         }
     }
     return false;
 }
Exemple #2
0
 public void AddCallToHistory(string date, string time, uint dialedPhone, ulong duration)
 {
     Call call = new Call(date, time, dialedPhone, duration);
     callHistory.Add(call);
 }