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; }
public void AddCallToHistory(Call call) { callHistory.Add(call); }