private void buttonNewRental_Click(object sender, EventArgs e) { using (OpenRentalForm openRentalForm = new OpenRentalForm()) { openRentalForm.Customer = this.customer; if (openRentalForm.ShowDialog() == DialogResult.OK) { this.ReloadData(); } } }
private void buttonNewRental_Click( object sender, EventArgs e ) { using ( OpenRentalForm openRentalForm = new OpenRentalForm() ) { openRentalForm.Customer = this.customer; if ( openRentalForm.ShowDialog() == DialogResult.OK ) { this.ReloadData(); } } }