public void DeleteCall(int callIndex) { if (callIndex >= 0 && callIndex < CallHistory.Count) { CallHistory.RemoveAt(callIndex); } }
public void RemoveCallByDuration(ulong duration) { for (int i = 0; i < CallHistory.Count; i++) { if (CallHistory[i].CallDuration == duration) { CallHistory.RemoveAt(i); } } }
public void RemoveCallByNumber(ulong number) { for (int i = 0; i < CallHistory.Count; i++) { if (CallHistory[i].PhoneNumber == number) { CallHistory.RemoveAt(i); } } }
public void DeleteCall(Call call) { for (int i = 0; i < CallHistory.Count; i++) { if (call.CallDateTime == CallHistory[i].CallDateTime) { CallHistory.RemoveAt(i); i--; } } }
public void DeleteCall(int callIndex) { CallHistory.RemoveAt(callIndex); }