private void frmMakeBooking_Load(object sender, EventArgs e) { //System loads list of Events including, name, venue, price //where event is "Available" grdEvents.DataSource = Event.getAvailableEvents().Tables["WS"]; //Utility.formatEventGrid(grdEvents); //Load VenueIDs from Venues File WHERE Status = "Available" List <String> venues = Venue.fillComboBox(); cboVenue.Items.AddRange(venues.ToArray()); //Load Types from EventTypes File List <String> types = Type.fillComboBoxTypes(); cboType.Items.AddRange(types.ToArray()); List <String> towns = Event.fillComboBoxTowns(); cboTown.Items.AddRange(towns.ToArray()); pnlLogin.Visible = false; pnlBook.Visible = false; }
private void frmUpdateVenue_Load(object sender, EventArgs e) { //load venue names to UI List <String> venues = Venue.fillComboBox(); cboVenueNames.Items.AddRange(venues.ToArray()); }
private void frmAddEvent_Load(object sender, EventArgs e) { //Assign next Event ID txtEventID.Text = Convert.ToString(Event.getNextID()); //Load VenueIDs from Venues File WHERE Status = "Available" List <String> venues = Venue.fillComboBox(); cboVenueName.Items.AddRange(venues.ToArray()); //Load Types from EventTypes File List <String> types = Type.fillComboBoxTypes(); cboTypes.Items.AddRange(types.ToArray()); cboAmPm.SelectedIndex = 1; pnlEvDetails.Visible = false; }
private void frmAnalyseVenue_Load(object sender, EventArgs e) { List <String> venues = Venue.fillComboBox(); cboVenueNames.Items.AddRange(venues.ToArray()); }