示例#1
0
 public KinectPanel(KinectTracker tracker)
 {
     InitializeComponent();
     try
     {
         DataContext = tracker;
     }
     catch (Exception exc)
     {
     }
 }
示例#2
0
 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);
     }
 }