void dialog_OnCreateContact(object sender, CreateContactEventArgs e)
 {
     mContacts.Add(new Contact()
     {
         Name = e.Name, Number = e.Number
     });
     mAdapter.NotifyDataSetChanged();
 }
 void dialog_OnCreateContact(object sender, CreateContactEventArgs e)
 {
     //Create a new contact and update the UI
     mContacts.Add(new Contact()
     {
         ID = e.ID, Name = e.Name, Number = e.Number
     });
     mAdapter.NotifyDataSetChanged();
 }
Exemple #3
0
        void dialog_OnCreateContact(object sender, CreateContactEventArgs e)
        {
            Contact newContact = new Contact()
            {
                Name = e.Name, Bithday = e.Birthday
            };

            mContacts.Add(newContact);
            mAdapter.NotifyDataSetChanged();

            DBRepo dbr    = new DBRepo();
            string result = dbr.InsertContact(newContact);
        }
 void dialog_OnCreateContact(object sender, CreateContactEventArgs e)
 {
     //Create a new contact and update the UI
     mContacts.Add(new Contact() {ID = e.ID, Name = e.Name, Number = e.Number });
     mAdapter.NotifyDataSetChanged();
 }