private void LoadContactIntoUi(Contact contact) { this.firstNameTextBox.Text = contact.FirstName; this.middleNameTextBox.Text = contact.MiddleName; this.lastNameTextBox.Text = contact.LastName; this.phoneNumberTextBox.Text = contact.PhoneNumber; }
private void DisplayContact(Contact contact) { SuspendLayout(); LoadContactIntoUi(contact); ResumeLayout(); Refresh(); }