Exemplo 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();
            }
        }
Exemplo n.º 2
0
        public FrmMain()
        {
            InitializeComponent();
            cboSortBy.DataSource    = _SortStrings;
            cboSortBy.SelectedIndex = 0;

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