public RazerHydraPanel(RazerHydraTracker tracker)
 {
     InitializeComponent();
     try
     {
         DataContext = tracker;
     }
     catch (Exception exc)
     {
     }
 }
Beispiel #2
0
 public RazerHydraPanel(RazerHydraTracker tracker)
 {
     InitializeComponent();
     try
     {
         DataContext = tracker;
     }
     catch (Exception)
     {
     }
 }
        public RazerHydraPlugin()
        {
            Name = "Razer Hydra";
            var tracker = new RazerHydraTracker
            {
                PositionScaleFactor = ConfigHelper.ParseDouble(Config.AppSettings.Settings["PositionScaleFactor"].Value),
                RotationOffset      = QuaternionHelper.EulerAnglesInDegToQuaternion(ConfigHelper.ParseVector3D(Config.AppSettings.Settings["RotationOffset"].Value)),
                FilterEnabled       = bool.Parse(Config.AppSettings.Settings["FilterEnabled"].Value),
            };

            Content = tracker;
            Panel   = new RazerHydraPanel(tracker);
        }