public KinectPanel(KinectTracker tracker) { InitializeComponent(); try { DataContext = tracker; } catch (Exception exc) { } }
public KinectPanel(KinectTracker tracker) { InitializeComponent(); try { DataContext = tracker; } catch (Exception) { } }
public KinectPlugin() { try { Name = "Microsoft Kinect"; var tracker = new KinectTracker(); Content = tracker; Panel = new KinectPanel(tracker); InjectConfig(PluginConfig.FromSettings(ConfigHelper.LoadConfig().AppSettings.Settings)); } catch (Exception exc) { Logger.Instance.Error(string.Format("Error while loading '{0}'", GetType().FullName), exc); } }