protected void OnBillUpdated(object messageElement) { if (BillUpdated != null) { BillUpdated(this, EventArgsBase <BillUpdatedEventArgs> .Parse((XElement)messageElement)); } }
protected void OnTunnelDataReceived(object messageElement) { if (TunnelDataReceived != null) { TunnelDataReceived(this, EventArgsBase <TunnelDataReceivedEventArgs> .Parse((XElement)messageElement)); } }
protected void OnPlayerInfoChanged(object messageElement) { if (PlayerInfoChanged != null) { PlayerInfoChanged(this, EventArgsBase <PlayerInfoChangedEventArgs> .Parse((XElement)messageElement)); } }
protected void OnPlayerIncoherence(object messageElement) { if (PlayerIncoherence != null) { PlayerIncoherence(this, EventArgsBase <PlayerIncoherenceEventArgs> .Parse((XElement)messageElement)); } }
protected void OnStatusChanged(object messageElement) { if (StatusChanged != null) { StatusChanged(this, EventArgsBase <StatusChangedEventArgs> .Parse((XElement)messageElement)); } }
protected void OnPlayerCheckpoint(object messageElement) { if (PlayerCheckpoint != null) { PlayerCheckpoint(this, EventArgsBase <PlayerCheckpointEventArgs> .Parse((XElement)messageElement)); } }
protected void OnPlayerManialinkPageAnswer(object messageElement) { if (PlayerManialinkPageAnswer != null) { PlayerManialinkPageAnswer(this, EventArgsBase <PlayerManialinkPageAnswerEventArgs> .Parse((XElement)messageElement)); } }
protected void OnEcho(object messageElement) { if (Echo != null) { Echo(this, EventArgsBase <EchoEventArgs> .Parse((XElement)messageElement)); } }
protected void OnManualFlowControlTransition(object messageElement) { if (ManualFlowControlTransition != null) { ManualFlowControlTransition(this, EventArgsBase <ManualFlowControlTransitionEventArgs> .Parse((XElement)messageElement)); } }
protected void OnPlayerDisconnect(object messageElement) { if (PlayerDisconnect != null) { PlayerDisconnect(this, EventArgsBase <PlayerDisconnectEventArgs> .Parse((XElement)messageElement)); } }
protected void OnBeginChallenge(object messageElement) { if (BeginChallenge != null) { BeginChallenge(this, EventArgsBase <BeginChallengeEventArgs> .Parse((XElement)messageElement)); } }
protected void OnEndChallenge(object messageElement) { if (EndChallenge != null) { EndChallenge(this, EventArgsBase <EndChallengeEventArgs> .Parse((XElement)messageElement)); } }
protected void OnChallengeListModified(object messageElement) { if (ChallengeListModified != null) { ChallengeListModified(this, EventArgsBase <ChallengeListModifiedeventArgs> .Parse((XElement)messageElement)); } }
protected void OnPlayerFinish(object messageElement) { if (PlayerFinish != null) { PlayerFinish(this, EventArgsBase <PlayerFinishEventArgs> .Parse((XElement)messageElement)); } }
private static void OnEvent(object sender, EventArgsBase e) { lock (locker) { MessageQueue.Enqueue(e.Message); ARE.Set(); } }
private void TradeViewModelException <T>(EventArgsBase <T> eventArgs) { if (eventArgs.Exception != null) { TradeViewModelException(eventArgs.Message, eventArgs.Exception); } else { Logger.Log(eventArgs.Message, Category.Exception, Priority.High); } }
internal void OnErrorReceived(object sender, EventArgsBase e) { if (AssistantLoggers == null) { AssistantLoggers = new List <NLog.CoreLogger>(); } NLog.CoreLogger?logger = AssistantLoggers.Find(x => !string.IsNullOrEmpty(x.LogIdentifier) && x.LogIdentifier.Equals(e.LogIdentifier, StringComparison.OrdinalIgnoreCase)); if (logger == null) { logger = new NLog.CoreLogger(e.LogIdentifier); AssistantLoggers.Add(logger); } logger.Log(e.LogMessage, LogLevels.Error, e.CallerMemberName, e.CallerLineNumber, e.CallerFilePath); }
internal void OnWarningReceived(object sender, EventArgsBase e) { }
//////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> Dispara pulsado menu principal. </summary> /// /// <remarks> . </remarks> /// /// <param name="e"> The. </param> //////////////////////////////////////////////////////////////////////////////////////////////////// public void disparaPulsadoMenuPrincipal(fVistas e) { EventArgsBase eB = new EventArgsBase((int)e, (int)Perfil); PulsadoMenuPrincipal(this, eB); }
//////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> Carga seccion. </summary> /// /// <remarks> . </remarks> /// /// <param name="sender"> Source of the event. </param> /// <param name="e"> The. </param> //////////////////////////////////////////////////////////////////////////////////////////////////// public void CargaSeccion(object sender, EventArgsBase e) { try { ((FVistaSeccionBase)sender).PulsadoMenuPrincipal -= CargaSeccion; } catch (InvalidCastException ice) { ((FVistaPortadaBase)sender).PulsadoBotonMenu -= CargaSeccion; ((FVistaPortadaBase)sender).CerrarSesion -= CierraSesion; } TVO_FormActivo.FormClosing -= new System.Windows.Forms.FormClosingEventHandler(this.CierraAplicacion); switch (e.opcion) { case (int)fVistas.fAcceso: TVO_Mostar_FormAcceso(); break; case (int)fVistas.fPortada: if (e.perfil == (int)kPerfil.pTecnico) { TVO_Mostar_FormPortadaTecnico(); } else if (e.perfil == (int)kPerfil.pModerador) { TVO_Mostar_FormPortadaModerador(); } break; case (int)fVistas.fSeccionCriticasModerador: TVO_Mostar_FormSeccionCriticasModerador(); break; case (int)fVistas.fSeccionComentariosModerador: TVO_Mostar_FormSeccionComentariosModerador(); break; case (int)fVistas.fSeccionClientes: TVO_Mostar_FormSeccionClientes(); break; case (int)fVistas.fSeccionEmisiones: TVO_Mostar_FormSeccionEmisiones(); break; case (int)fVistas.fSeccionIncidencias: TVO_Mostar_FormSeccionIncidencias(); break; case (int)fVistas.fSeccionCanales: TVO_Mostar_FormSeccionCanales(); break; case (int)fVistas.fSeccionAdministradores: TVO_Mostar_FormSeccionAdministradores(); break; case (int)fVistas.fSeccionProgramas: TVO_Mostar_FormSeccionProgramas(); break; case (int)fVistas.fSeccionXML: TVO_Mostar_FormSeccionXML(); break; default: break; } }
//////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> Dispara pulsado boton menu. </summary> /// /// <remarks> Vmolero, 13/04/2010. </remarks> /// /// <param name="v"> The v. </param> //////////////////////////////////////////////////////////////////////////////////////////////////// public void disparaPulsadoBotonMenu(fVistas v) { EventArgsBase args = new EventArgsBase((int)v); PulsadoBotonMenu(this, args); }
internal void OnInputReceived(object sender, EventArgsBase e) { }