public LeapPanel(LeapTracker tracker) { InitializeComponent(); try { DataContext = tracker; } catch (Exception exc) { } }
public LeapPanel(LeapTracker tracker) { InitializeComponent(); try { DataContext = tracker; } catch (Exception) { } }
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); } }