示例#1
0
        private void FrmCardPaying_FormClosed(object sender, FormClosedEventArgs e)
        {
            AppSettings.CurrentSetting.SaveConfig("PaymentPanelWidth", paymentPanel.Width.ToString());
            AppSettings.CurrentSetting.SaveConfig("VideoPanelHeight", videoPanel.Height.ToString());
            CardReaderManager.GetInstance(UserSetting.Current.WegenType).PopCardReadRequest(CardReadHandler);
            if (_TicketReader != null)
            {
                _TicketReader.Close();
            }
            if (_BillPrinter != null)
            {
                _BillPrinter.Close();
            }
            if (_YCTReader != null)
            {
                _YCTReader.Close();
            }
            if (_ChargeLed != null)
            {
                _ChargeLed.Close();
            }

            if (AppSettings.CurrentSetting.EnableZST)
            {
                FrmZSTSetting frm = FrmZSTSetting.GetInstance();
                frm.ZSTReader.MessageRecieved -= new EventHandler <ZSTReaderEventArgs>(ZSTReader_MessageRecieved);
            }
            this.ucVideoes.Clear();
            this._EnterVideoes.Clear();
        }
示例#2
0
 public static FrmZSTSetting GetInstance()
 {
     if (_Instance == null)
     {
         _Instance = new FrmZSTSetting();
     }
     return(_Instance);
 }
示例#3
0
 private void FrmCardPaying_Deactivate(object sender, EventArgs e)
 {
     if (AppSettings.CurrentSetting.EnableZST)
     {
         FrmZSTSetting frm = FrmZSTSetting.GetInstance();
         frm.ZSTReader.MessageRecieved -= new EventHandler <ZSTReaderEventArgs>(ZSTReader_MessageRecieved);
     }
 }
示例#4
0
 private void FrmCardCenterCharge_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (AppSettings.CurrentSetting.EnableZST)
     {
         FrmZSTSetting frm = FrmZSTSetting.GetInstance();
         frm.ZSTReader.MessageRecieved -= new EventHandler <ZSTReaderEventArgs>(ZSTReader_MessageRecieved);
     }
 }
示例#5
0
        private void FrmZSTPayment_Load(object sender, EventArgs e)
        {
            FrmZSTSetting frm = FrmZSTSetting.GetInstance();

            frm.ZSTReader.MessageRecieved -= new EventHandler <GeneralLibrary.CardReader.ZSTReaderEventArgs>(ZSTReader_MessageRecieved);
            frm.ZSTReader.MessageRecieved += new EventHandler <GeneralLibrary.CardReader.ZSTReaderEventArgs>(ZSTReader_MessageRecieved);
            frm.ZSTReader.Consumption(AppSettings.CurrentSetting.ZSTReaderIP, Payment);
        }
示例#6
0
 private void FrmCards_Deactivate(object sender, EventArgs e)
 {
     CardReaderManager.GetInstance(UserSetting.Current.WegenType).PopCardReadRequest(CardReadHandler);
     if (AppSettings.CurrentSetting.EnableZST)
     {
         FrmZSTSetting frm = FrmZSTSetting.GetInstance();
         frm.ZSTReader.MessageRecieved -= new EventHandler <ZSTReaderEventArgs>(ZSTReader_MessageRecieved);
     }
 }
示例#7
0
 private void FrmCards_Activated(object sender, EventArgs e)
 {
     CardReaderManager.GetInstance(UserSetting.Current.WegenType).PushCardReadRequest(CardReadHandler);
     ShowOperatorRights(OperatorInfo.CurrentOperator);
     if (AppSettings.CurrentSetting.EnableZST)
     {
         FrmZSTSetting frm = FrmZSTSetting.GetInstance();
         frm.ZSTReader.MessageRecieved += new EventHandler <ZSTReaderEventArgs>(ZSTReader_MessageRecieved);
     }
 }
示例#8
0
        private void FrmZSTPayment_FormClosed(object sender, FormClosedEventArgs e)
        {
            FrmZSTSetting frm = FrmZSTSetting.GetInstance();

            frm.ZSTReader.MessageRecieved -= new EventHandler <GeneralLibrary.CardReader.ZSTReaderEventArgs>(ZSTReader_MessageRecieved);
        }