Esempio n. 1
0
 /// <summary>
 /// 时段票价
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void tsPeriodPriceSet_Click(object sender, EventArgs e)
 {
     try
     {
         frmPeriodPriceSet frm = new frmPeriodPriceSet(dataManager);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             dataManager.Save();
             RefreshData();
             SetIsSave();
         }
         else
         {
             dataManager.RefreshPeriodPrice(frm.GetPeriodPricesList());
         }
     }
     catch (Exception error)
     {
         MessageBox.Show(error.Message);
     }
 }