Пример #1
0
 static Contact CreateContact(string name, string phone, string email)
 {
     var contact = new Contact();
     contact.Name = name;
     contact.Phone = phone;
     contact.Email = email;
     return contact;
 }
Пример #2
0
 public Contact GetContact()
 {
     var contact = new Contact();
     contact.Name = this.nameEntry.Text;
     contact.Phone = this.phoneEntry.Text;
     contact.Email = this.emailEntry.Text;
     return contact;
 }
 public void updateContact(Contact contact)
 {
     this.contacts[contact.Id] = contact;
 }
 public Contact saveContact(Contact contact)
 {
     contact.Id = this.getNextId();
     this.contacts[contact.Id] = contact;
     return contact;
 }
Пример #5
0
 public ContactEditor(Contact contact)
 {
     this.contact = contact;
     this.InitUi();
 }
Пример #6
0
 public ContactDialog(string title, Contact contact)
 {
     this.Title = title;
     this.contactEditor = new ContactEditor(contact);
     this.InitDialogUI();
 }