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

            return true;
        }
Exemplo 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;
 }