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); } }
protected virtual void ExecutarEvento2(EventosDiversos e) { ThresholdReachedEventHandler handler2 = EventThresholdReachedChamaMensagemDB; if (handler2 != null) { handler2(this, e); } }
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"; } }
public void EventVerificarSincronizandoLabel(Object sender, EventosDiversos e) { mudarlabel(); }
public void EventMudarCorLabelSincronia() { EventosDiversos args = new EventosDiversos(); ExecutarEvento(args); }
public void EventAtualizaTesteMensagemDB() { EventosDiversos args = new EventosDiversos(); ExecutarEvento2(args); }