Пример #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
 private void FrmCardPaying_Deactivate(object sender, EventArgs e)
 {
     if (AppSettings.CurrentSetting.EnableZST)
     {
         FrmZSTSetting frm = FrmZSTSetting.GetInstance();
         frm.ZSTReader.MessageRecieved -= new EventHandler <ZSTReaderEventArgs>(ZSTReader_MessageRecieved);
     }
 }
Пример #3
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);
     }
 }
Пример #4
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);
        }
Пример #5
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);
     }
 }
Пример #6
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);
     }
 }
Пример #7
0
        private void FrmZSTPayment_FormClosed(object sender, FormClosedEventArgs e)
        {
            FrmZSTSetting frm = FrmZSTSetting.GetInstance();

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