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