public CustomerInformation(ShowCustomer showCustomer, Property property) { InitializeComponent(); customer = new Customer(); this.showCustomer = showCustomer; da = new DataAccess(); this.property = property; }
private void btnBook_Click(object sender, EventArgs e) { if (property.Id != 0) { property.Status = "Booked"; showCustomer = new ShowCustomer(property, user, cons); cons.OpenFormPanel(showCustomer); this.Dispose(); } else { MessageBox.Show("Please select a ROW"); } }
public CustomerInformation(Customer customer) { InitializeComponent(); this.customer = customer; this.showCustomer = null; txtFirstName.Text = customer.FirstName; txtLastName.Text = customer.LastName; txtAddress.Text = customer.Address; txtEmail.Text = customer.Email; txtMobileNumber.Text = customer.MobileNumber; txtNid.Text = customer.Nid; da = new DataAccess(); this.property = new Property(); this.property.Status = "Null"; }