Esempio n. 1
0
        private void btnAddTour_Click(object sender, EventArgs e)
        {
            ClsTour lcTour = ClsTourCompany.NewTour();

            if (lcTour != null && lcTour.ViewEdit())
            {
                ClsTourCompany.TourList.Add(lcTour.TourID, lcTour);
                updateDisplay();
            }
        }
Esempio n. 2
0
        public FrmMain()
        {
            InitializeComponent();
            cboSortBy.DataSource    = _SortStrings;
            cboSortBy.SelectedIndex = 0;

            try
            {
                ClsTourCompany.Retrieve();
                updateDisplay();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Esempio n. 3
0
 private void btnClose_Click(object sender, EventArgs e)
 {
     Close();
     ClsTourCompany.Save();
 }