Esempio n. 1
0
        public override void Load()
        {
            try
            {
                IsEnabled = true;

                _listener             = new CustomListener();
                _listener.Init       += _listener_Init;
                _listener.Frame      += _listener_Frame;
                _listener.Exit       += _listener_Exit;
                _listener.Connect    += _listener_Connect;
                _listener.Disconnect += _listener_Disconnect;
                _leap = new Controller();
                _leap.AddListener(_listener);
            }
            catch (Exception exc)
            {
                Logger.Instance.Error(exc.Message, exc);
                IsEnabled = false;
            }
        }
Esempio n. 2
0
 public override void Load()
 {
     try
     {
         IsEnabled = true;
         
         _listener = new CustomListener();
         _listener.Init += _listener_Init;
         _listener.Frame += _listener_Frame;
         _listener.Exit += _listener_Exit;
         _listener.Connect += _listener_Connect;
         _listener.Disconnect += _listener_Disconnect;
         _leap = new Controller();
         _leap.AddListener(_listener);
     }
     catch (Exception exc)
     {
         Logger.Instance.Error(exc.Message, exc);
         IsEnabled = false;
     }
 }