Пример #1
0
        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();
                }
            }
        }
Пример #2
0
        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();
                }
            }
        }