Exemplo n.º 1
0
        public async void NewContact(string emergency)
        {
            noContact.IsVisible = false;
            contacts.IsVisible  = true;
            ContactDatabase db      = new ContactDatabase(dbPath);
            var             contact = await db.GetNewContactAsync(emergency);

            NewContact newContact = new NewContact(emergency);

            newContact.contactId.Text     = contact.ContactId.ToString();
            newContact.contactName.Text   = contact.ContactName;
            newContact.contactNumber.Text = contact.ContactNumber;
            contactList.Children.Add(newContact);
        }