Beispiel #1
0
        //========================Edit a tour===========================//

        private void EditTour()

        {
            clsTour lcTour = (clsTour)lstTour.SelectedItem;

            if (lcTour != null &&

                lcTour.ViewEdit())

            {
                updateDisplay();
            }
        }
Beispiel #2
0
        //============ Add a Tour - Tutorial 2 ==================//
        private void btnAdd_Click(object sender, EventArgs e)

        {
            clsTour lcTour = new clsTour();

            if (lcTour != null && lcTour.ViewEdit())



            {
                ClsTourCompany.TourList.Add(lcTour.ID, lcTour);

                updateDisplay();
            }
        }