public bool CreateContact(Contact contact)
        {
            //Convert object to proper format
            //String contactStr = "{ 'title' : '" + contact.

            return true;
        }
Esempio n. 2
0
        private void AddContact_Click(object sender, RoutedEventArgs e)
        {
            String firstname = FirstNameInput.Text;
            String lastname = LastNameInput.Text;
            String mobilenumber = MobileNumberInput.Text;
            String description = DescriptionInput.Text;

            Contact contact = new Contact(firstname, lastname, mobilenumber, description);
            contactManager.CreateContact(contact);
            this.Close();
        }
 public bool CreateContact(Contact contact)
 {
     _contacts.Add(contact);
     return true;
 }