public MainWindow() { InitializeComponent(); UpdaterThread = new Thread(UpdaterThreadFunc); UpdaterThread.IsBackground = true; UpdaterThread.Priority = ThreadPriority.AboveNormal; UpdaterThread.Name = "DualShock 4 state monitor"; UpdaterThread.Start(); SliderBySensorIndex = new[] { tbGyroX, tbGyroY, tbGyroZ, tbAccelX, tbAccelY, tbAccelZ }; GestureOverlay = new GestureOverlay(); niTrayIcon.Visible = true; RefreshProfileList(); }