Пример #1
0
        public async void EventChamaMensagemTesteReceberMensasgem(Object sender2, EventosDiversos e2)
        {
            _timer.Enabled = false;
            await TesteReceberMensagemDB();

            _timer.Enabled = true;
        }
        protected virtual void ExecutarEvento(EventosDiversos e)
        {
            ThresholdReachedEventHandler handler = EventThresholdReached;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #3
0
        protected virtual void ExecutarEvento2(EventosDiversos e)
        {
            ThresholdReachedEventHandler handler2 = EventThresholdReachedChamaMensagemDB;

            if (handler2 != null)
            {
                handler2(this, e);
            }
        }
Пример #4
0
 public void EventVerificarSincronizandoLabel(Object sender, EventosDiversos e)
 {
     if (Sincronizando == true)
     {
         labelConexao.ForeColor = Color.Red;
         labelConexao.Text      = "Sincronizando";
     }
     else
     {
         labelConexao.ForeColor = Color.Black;
         labelConexao.Text      = "Sincronia";
     }
 }
Пример #5
0
 public void EventVerificarSincronizandoLabel(Object sender, EventosDiversos e)
 {
     mudarlabel();
 }
        public void EventMudarCorLabelSincronia()
        {
            EventosDiversos args = new EventosDiversos();

            ExecutarEvento(args);
        }
Пример #7
0
        public void EventAtualizaTesteMensagemDB()
        {
            EventosDiversos args = new EventosDiversos();

            ExecutarEvento2(args);
        }