public PhoneBook(string[] i_Phones) { try { foreach (string str in i_Phones) { PhoneBookContact Contact = new PhoneBookContact(); string[] strsplit = str.Split(new string[] { ";;;;" }, StringSplitOptions.None); Contact.Phone = strsplit[0]; Contact.Name = strsplit[1]; Contact.Notes = strsplit[2]; Contact.Password = strsplit[3]; Contact.UnitID = strsplit[4]; Contacts.Add(Contact); } } catch { } }
public void RemoveContactFromPhoneBook(PhoneBookContact i_Contact) { Contacts.Remove(i_Contact); }
public void AddContactToPhoneBook(PhoneBookContact i_Contact) { Contacts.Add(i_Contact); }