Exemple #1
0
 // Serial number (receives as result of earlier request for serial number): ************************************************************
 private void OnSerialNumber(SerialNumberArgs e)
 {
     if (SerialNumber != null)
         SerialNumber(this, e);
 }
Exemple #2
0
 void spokes_SerialNumber(object sender, SerialNumberArgs e)
 {
     LogMessage(MethodInfo.GetCurrentMethod().Name, ">>> "+e.SerialNumberType.ToString()+" serial number is: " + e.SerialNumber);
     switch (e.SerialNumberType)
     {
         case SerialNumberTypes.Base:
             UpdateDeviceStatusGUIItem(baseSerialNumberTxt, e.SerialNumber);
             AnimateBackgroundColor(baseSerialNumberTxt, Color.FromArgb(0, 51, 102));
             break;
         case SerialNumberTypes.Headset:
             UpdateDeviceStatusGUIItem(headsetSerialNumberTxt, e.SerialNumber);
             AnimateBackgroundColor(headsetSerialNumberTxt, Color.FromArgb(0, 51, 102));
             break;
     }
 }
Exemple #3
0
 void m_spokes_SerialNumber(object sender, SerialNumberArgs e)
 {
     OnPltEvent(new PltEventArgs(PltEventType.SerialNumber, e.SerialNumber, e.SerialNumberType.ToString()));
 }
Exemple #4
0
 static void spokes_SerialNumber(object sender, SerialNumberArgs e)
 {
     Console.WriteLine("SerialNumber, sending message to Client App via socket...");
     if (socket == null)
     {
         Console.WriteLine("INFO: No client connected.");
         return;
     }
     socket.sendMsg("SerialNumber,"+e.SerialNumber+","+(int)e.SerialNumberType);
 }