private void btnAddTour_Click(object sender, EventArgs e) { ClsTour lcTour = ClsTourCompany.NewTour(); if (lcTour != null && lcTour.ViewEdit()) { ClsTourCompany.TourList.Add(lcTour.TourID, lcTour); updateDisplay(); } }
public FrmMain() { InitializeComponent(); cboSortBy.DataSource = _SortStrings; cboSortBy.SelectedIndex = 0; try { ClsTourCompany.Retrieve(); updateDisplay(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnClose_Click(object sender, EventArgs e) { Close(); ClsTourCompany.Save(); }