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(); }
public static FrmZSTSetting GetInstance() { if (_Instance == null) { _Instance = new FrmZSTSetting(); } return(_Instance); }
private void FrmCardPaying_Deactivate(object sender, EventArgs e) { if (AppSettings.CurrentSetting.EnableZST) { FrmZSTSetting frm = FrmZSTSetting.GetInstance(); frm.ZSTReader.MessageRecieved -= new EventHandler <ZSTReaderEventArgs>(ZSTReader_MessageRecieved); } }
private void FrmCardCenterCharge_FormClosing(object sender, FormClosingEventArgs e) { if (AppSettings.CurrentSetting.EnableZST) { FrmZSTSetting frm = FrmZSTSetting.GetInstance(); frm.ZSTReader.MessageRecieved -= new EventHandler <ZSTReaderEventArgs>(ZSTReader_MessageRecieved); } }
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); }
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); } }
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); } }
private void FrmZSTPayment_FormClosed(object sender, FormClosedEventArgs e) { FrmZSTSetting frm = FrmZSTSetting.GetInstance(); frm.ZSTReader.MessageRecieved -= new EventHandler <GeneralLibrary.CardReader.ZSTReaderEventArgs>(ZSTReader_MessageRecieved); }