private void buttonVenues_Click(object sender, RibbonControlEventArgs e) { VenueForm venueForm = new VenueForm(); venueForm.ShowDialog(); venueForm.Dispose(); }
private void pictureBoxNewVenue_Click(object sender, EventArgs e) { VenueForm venueForm = new VenueForm(); venueForm._isChildForm = true; if (venueForm.ShowDialog(this) == DialogResult.OK) { SAPVenueReadWrite venue = new SAPVenueReadWrite(Config._dbConnectionName); comboBoxVenue.DataSource = venue.SelectAll().Venue; comboBoxVenue.DisplayMember = SAPVenueReadWrite._venueNameColumnName; comboBoxVenue.ValueMember = SAPVenueReadWrite._venueIDColumnName; comboBoxVenue.Text = venueForm._venueName; } venueForm.Dispose(); }