public PhonebookEntry ReturnInfo() { PhonebookEntry ourEntry = this.newEntry; Reset(); return(ourEntry); }
public void AddMainInfo(string surname, string name, string phoneNumber, string country) { this.newEntry = new PhonebookEntry(surname, name, phoneNumber, country); }
public void Reset() { this.newEntry = new PhonebookEntry(); }