public WiimotePanel(WiimoteTracker tracker) { InitializeComponent(); try { DataContext = tracker; } catch (Exception exc) { } }
public WiimotePlugin() { try { Name = "Nintendo Wiimote"; var tracker = new WiimoteTracker(); Content = tracker; Panel = null; } catch (Exception exc) { Logger.Instance.Error(string.Format("Error while loading '{0}'", GetType().FullName), exc); } }