// Serial number (receives as result of earlier request for serial number): ************************************************************ private void OnSerialNumber(SerialNumberArgs e) { if (SerialNumber != null) SerialNumber(this, e); }
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; } }
void m_spokes_SerialNumber(object sender, SerialNumberArgs e) { OnPltEvent(new PltEventArgs(PltEventType.SerialNumber, e.SerialNumber, e.SerialNumberType.ToString())); }
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); }