Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
 private void FrmPaying_FormClosed(object sender, FormClosedEventArgs e)
 {
     AppSettings.CurrentSetting.SaveConfig("PaymentPanelWidth", paymentPanel.Width.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();
     }
 }