示例#1
0
 protected void OnBillUpdated(object messageElement)
 {
     if (BillUpdated != null)
     {
         BillUpdated(this, EventArgsBase <BillUpdatedEventArgs> .Parse((XElement)messageElement));
     }
 }
示例#2
0
 protected void OnTunnelDataReceived(object messageElement)
 {
     if (TunnelDataReceived != null)
     {
         TunnelDataReceived(this, EventArgsBase <TunnelDataReceivedEventArgs> .Parse((XElement)messageElement));
     }
 }
示例#3
0
 protected void OnPlayerInfoChanged(object messageElement)
 {
     if (PlayerInfoChanged != null)
     {
         PlayerInfoChanged(this, EventArgsBase <PlayerInfoChangedEventArgs> .Parse((XElement)messageElement));
     }
 }
示例#4
0
 protected void OnPlayerIncoherence(object messageElement)
 {
     if (PlayerIncoherence != null)
     {
         PlayerIncoherence(this, EventArgsBase <PlayerIncoherenceEventArgs> .Parse((XElement)messageElement));
     }
 }
示例#5
0
 protected void OnStatusChanged(object messageElement)
 {
     if (StatusChanged != null)
     {
         StatusChanged(this, EventArgsBase <StatusChangedEventArgs> .Parse((XElement)messageElement));
     }
 }
示例#6
0
 protected void OnPlayerCheckpoint(object messageElement)
 {
     if (PlayerCheckpoint != null)
     {
         PlayerCheckpoint(this, EventArgsBase <PlayerCheckpointEventArgs> .Parse((XElement)messageElement));
     }
 }
示例#7
0
 protected void OnPlayerManialinkPageAnswer(object messageElement)
 {
     if (PlayerManialinkPageAnswer != null)
     {
         PlayerManialinkPageAnswer(this, EventArgsBase <PlayerManialinkPageAnswerEventArgs> .Parse((XElement)messageElement));
     }
 }
示例#8
0
 protected void OnEcho(object messageElement)
 {
     if (Echo != null)
     {
         Echo(this, EventArgsBase <EchoEventArgs> .Parse((XElement)messageElement));
     }
 }
示例#9
0
 protected void OnManualFlowControlTransition(object messageElement)
 {
     if (ManualFlowControlTransition != null)
     {
         ManualFlowControlTransition(this, EventArgsBase <ManualFlowControlTransitionEventArgs> .Parse((XElement)messageElement));
     }
 }
示例#10
0
 protected void OnPlayerDisconnect(object messageElement)
 {
     if (PlayerDisconnect != null)
     {
         PlayerDisconnect(this, EventArgsBase <PlayerDisconnectEventArgs> .Parse((XElement)messageElement));
     }
 }
示例#11
0
 protected void OnBeginChallenge(object messageElement)
 {
     if (BeginChallenge != null)
     {
         BeginChallenge(this, EventArgsBase <BeginChallengeEventArgs> .Parse((XElement)messageElement));
     }
 }
示例#12
0
 protected void OnEndChallenge(object messageElement)
 {
     if (EndChallenge != null)
     {
         EndChallenge(this, EventArgsBase <EndChallengeEventArgs> .Parse((XElement)messageElement));
     }
 }
示例#13
0
 protected void OnChallengeListModified(object messageElement)
 {
     if (ChallengeListModified != null)
     {
         ChallengeListModified(this, EventArgsBase <ChallengeListModifiedeventArgs> .Parse((XElement)messageElement));
     }
 }
示例#14
0
 protected void OnPlayerFinish(object messageElement)
 {
     if (PlayerFinish != null)
     {
         PlayerFinish(this, EventArgsBase <PlayerFinishEventArgs> .Parse((XElement)messageElement));
     }
 }
示例#15
0
 private static void OnEvent(object sender, EventArgsBase e)
 {
     lock (locker)
     {
         MessageQueue.Enqueue(e.Message);
         ARE.Set();
     }
 }
示例#16
0
 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)
 {
 }
示例#19
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////
        /// <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);
        }
示例#20
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////
        /// <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;
            }
        }
示例#21
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////
        /// <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)
 {
 }