Пример #1
0
 void BluetoothClient_InternalMessageReceived(SocketClient sender, InternalMessage message)
 {
     Logger.Info(message.ToString(), "<I");
 }
Пример #2
0
 protected virtual Message TryCreate(byte[] data)
 {
     return(InternalMessage.TryCreate(data));
 }
Пример #3
0
        private static void ProcessInternalMessage(InternalMessage m)
        {
            Logger.Info(m.DataString, "INT <");

            switch (m.DataString)
            {
                case "GET_BM_SCREEN":
                    // TODO send last BM screen
                    if (BordmonitorMenu.Instance.IsEnabled)
                    {
                        BordmonitorMenu.Instance.UpdateScreen(MenuScreenUpdateReason.Refresh);
                    }
                    break;
            }
        }
Пример #4
0
 protected virtual bool CanStartWith(byte[] data)
 {
     return(InternalMessage.CanStartWith(data));
 }
Пример #5
0
 protected void OnInternalMessageReceived(InternalMessage m)
 {
     var e = InternalMessageReceived;
     if (e != null)
     {
         try
         {
             e(this, m);
         }
         catch(Exception ex)
         {
             Logger.Error(ex, "while processing incoming internal message");
         }
     }
 }