Exemplo n.º 1
0
 public static KWPHandler getInstance()
 {
     if (m_kwpDevice == null)
         Console.WriteLine("KWPDevice not set.");
     if (m_instance == null)
         m_instance = new KWPHandler();
     return m_instance;
 }
Exemplo n.º 2
0
 public static void setKWPHandler(KWPHandler a_kwpHandler)
 {
     if (m_kwpHandler != null)
         throw new Exception("KWPHandler already set");
     m_kwpHandler = a_kwpHandler;
 }