private void btnRmv_Click(object sender, EventArgs e) { Booking delBook = new Booking(); delBook.rmvBooking(Convert.ToInt32(txtPropID.Text)); //instantiate Tenant Object Tenant myTenant = new Tenant(); myTenant.setTenantId(Convert.ToInt32(txtTenantID.Text)); myTenant.setForename(txtForename.Text); myTenant.setSurname(txtTenantSearch.Text); myTenant.setPhone(txtPhone.Text); myTenant.setEmail(txtEmail.Text); //Set Tenant record in table as Inactive myTenant.rmvTenant(); //Display Confirmation message MessageBox.Show("Tenant Removed From System", "Confirmation", MessageBoxButtons.OK, MessageBoxIcon.Information); //Reset UI txtTenantID.Text = ""; txtForename.Text = ""; txtTenantSearch.Text = ""; txtPhone.Text = ""; txtEmail.Text = ""; grpTenants.Visible = false; grdTenants.Visible = false; }