void dialog_OnCreateContact(object sender, CreateContactEventArgs e)
 {
     mContacts.Add(new Contact()
     {
         Name = e.Name, Number = e.Number
     });
     mAdapter.NotifyDataSetChanged();
 }
예제 #2
0
 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();
 }
예제 #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);
        }
예제 #4
0
 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();
 }