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