private void ControlsToData() { if (contact == null) contact = new ManufacturerDataContact(); contact.email = edtEmail.GetValue<string>(); contact.name = edtName.GetValue<string>(); contact.phoneNumber = edtPhone.GetValue<string>(); }