コード例 #1
0
        private void EditTour()
        {
            ClsTour lcTour = (ClsTour)LbTours.SelectedItem;

            if (lcTour != null && lcTour.ViewEdit())
            {
                UpdateDisplay();
                ClsCompany.SaveTours();
            }
        }
コード例 #2
0
        private void BtnAddTour_Click(object sender, EventArgs e)
        {
            ClsTour lcTour = new ClsTour();

            if (lcTour != null && lcTour.ViewEdit())
            {
                ClsCompany.TourList.Add(lcTour.TourCode, lcTour);
                UpdateDisplay();
                ClsCompany.SaveTours();
            }
        }
コード例 #3
0
 private void FrmTourTable_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         ClsCompany.SaveTours();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.GetBaseException().Message);
         e.Cancel = true;
     }
 }
コード例 #4
0
 private void BtnQuit_Click(object sender, EventArgs e)
 {
     ClsCompany.SaveTours();
     Application.Exit();
 }
コード例 #5
0
 private void TmrAutoSave_Tick(object sender, EventArgs e)
 {
     ClsCompany.SaveTours();
 }