Exemple #1
0
 private void OnAguardaRespCallback(string Arquivo, int SegundosTimeOut, ref bool Interromper)
 {
     if (onAguardaResp.IsAssigned)
     {
         AguardaRespEventArgs e = new AguardaRespEventArgs(Arquivo, SegundosTimeOut);
         onAguardaResp.Raise(e);
         Interromper = e.Interromper;
     }
 }
        private void acBrTEFD_OnAguardaResp(object sender, ACBrFramework.TEFD.AguardaRespEventArgs e)
        {
            String Msg = "";

            if ((ACBrTEFD.GPAtual == ACBrFramework.TEFD.TefTipo.CliSiTef) || (ACBrTEFD.GPAtual == ACBrFramework.TEFD.TefTipo.CliSiTef)) // É TEF dedicado?
            {
                if (e.Arquivo == "23")                                                                                                  // está aguardando Pin-Pad ?
                {
                    Msg = "Tecle ESC para cancelar.";
                }
            }
            else
            {
                Msg = "Aguardando: " + e.Arquivo + " " + Convert.ToString(e.SegundosTimeout);
            }

            if (Msg != "")
            {
                Caixa.LabelMensagens.Text = Msg;
            }
            Application.DoEvents();
        }
Exemple #3
0
		private void tef_OnAguardaResp(object sender, AguardaRespEventArgs e)
		{
            try
            {
                messageToolStripStatusLabel.Text = "Menssagem";
                descriptionToolStripStatusLabel.Text = string.Format("Aguardando: {0} - {1}", e.Arquivo, e.SegundosTimeout);
            }
            catch (Exception ex)
            {
                messageToolStripStatusLabel.Text = "Exception";
                descriptionToolStripStatusLabel.Text = ex.Message;
            }
		}
Exemple #4
0
		private void OnAguardaRespCallback(string Arquivo, int SegundosTimeOut, ref bool Interromper)
		{
			if (onAguardaResp.IsAssigned)
			{
				AguardaRespEventArgs e = new AguardaRespEventArgs(Arquivo, SegundosTimeOut);
				onAguardaResp.Raise(e);
				Interromper = e.Interromper;
			}
		}