Exemple #1
0
        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
            {
            }
        }
Exemple #2
0
 public void RemoveContactFromPhoneBook(PhoneBookContact i_Contact)
 {
     Contacts.Remove(i_Contact);
 }
Exemple #3
0
 public void AddContactToPhoneBook(PhoneBookContact i_Contact)
 {
     Contacts.Add(i_Contact);
 }