Beispiel #1
0
 public Form1()
 {
     InitializeComponent();
     background_q = CrystalisHIDQueueHandler.GetInstance();
     background_q.RemoteCommEstablished_event += GainedRemoteCommsEventHandler;
     background_q.RemoteCommLost_event += LostRemoteCommsEventHandler;
     Debug.SetLogFilePath("BackgroundQueue.log");
     UEI.HidIf.HidIFTraceSwitch.trace_switch.Level = System.Diagnostics.TraceLevel.Info;
     
     background_q.Start();
     
     lbl_FirmwareVersion.Text = "";
     lbl_SerialNumber.Text = "";
     
 }
 /// <summary>
 /// Singleton get instance method.
 /// </summary>
 /// <returns>CrystalisHIDQueueHandler</returns>
 public static CrystalisHIDQueueHandler GetInstance()
 {
     if (m_instance == null)
     {
         m_instance = new CrystalisHIDQueueHandler();
     }
     return m_instance;
 }