Example #1
0
 public LeapPanel(LeapTracker tracker)
 {
     InitializeComponent();
     try
     {
         DataContext = tracker;
     }
     catch (Exception exc)
     {
     }
 }
Example #2
0
 public LeapPanel(LeapTracker tracker)
 {
     InitializeComponent();
     try
     {
         DataContext = tracker;
     }
     catch (Exception)
     {
     }
 }
Example #3
0
 public LeapPlugin()
 {
     try
     {
         Name = "Leap";
         var tracker = new LeapTracker()
         {
             PositionScaleFactor = ConfigHelper.ParseDouble(Config.AppSettings.Settings["PositionScaleFactor"].Value),
             RotationFactor      = ConfigHelper.ParseDouble(Config.AppSettings.Settings["RotationFactor"].Value)
         };
         Content = tracker;
         Panel   = new LeapPanel(tracker);
     }
     catch (Exception exc)
     {
         Logger.Instance.Error(string.Format("Error while loading '{0}'", GetType().FullName), exc);
     }
 }