private void ShowRentalNotes() { if (this.SelectedRental == null) { MessageBox.Show(this, "Please select a rental."); return; } using (ShowNotesForm showNotesForm = new ShowNotesForm()) { showNotesForm.Entity = this.SelectedRental; if (showNotesForm.ShowDialog() == DialogResult.OK) { this.ReloadData(); } } }
private void ShowRentalNotes() { if ( this.SelectedRental == null ) { MessageBox.Show( this, "Please select a rental." ); return; } using ( ShowNotesForm showNotesForm = new ShowNotesForm() ) { showNotesForm.Entity = this.SelectedRental; if ( showNotesForm.ShowDialog() == DialogResult.OK ) { this.ReloadData(); } } }