예제 #1
0
        static void Main(string[] args)
        {
            // 1. Setup Plantronics
            plt = PLTLayer.Instance;
            //plt.SetConsoleLogging(true); // enable optional detailed logging info from Plantronics SDK
            plt.PltEvent += new PLTLayer.PltEventHandler(plt_PltEvent);
            plt.setup(MY_APP_NAME);

            // 2. Main application loop
            while (!m_quit)
            {
                NextUserCommand();
            }

            // 3. Shutdown Plantronics
            plt.PltEvent -= plt_PltEvent;
            plt.shutdown();
            //Pause();
        }
예제 #2
0
        static void Main(string[] args)
        {
            // 1. Setup Plantronics
            plt = PLTLayer.Instance;

            Console.WriteLine("Is API installed? " + (plt.isapiinstalled() ? "Yes" : "No"));

            //plt.SetConsoleLogging(true); // enable optional detailed logging info from Plantronics SDK
            plt.PltEvent += new PLTLayer.PltEventHandler(plt_PltEvent);
            plt.setup(MY_APP_NAME);

            // 2. Main application loop
            while (!m_quit)
            {
                NextUserCommand();
            }

            // 3. Shutdown Plantronics
            plt.PltEvent -= plt_PltEvent;
        }