public SettingsWindow()
        {
            InitializeComponent();

            volumeUpModifiers = (ModifierKeys)Properties.Settings.Default.VolumeUpModifiers;
            volumeDownModifiers = (ModifierKeys)Properties.Settings.Default.VolumeDownModifiers;
            volumeUpKey = (Key)Properties.Settings.Default.VolumeUpKey;
            volumeDownKey = (Key)Properties.Settings.Default.VolumeDownKey;
            RefreshHotkeyTextBoxes();

            autostartManager = new AutostartManager("BrightnessControl", Assembly.GetExecutingAssembly().Location, "/autostart", AutostartType.CurrentUser);
            autostartCheckBox.IsChecked = autostartManager.IsRegistered;
        }
        public SettingsWindow()
        {
            InitializeComponent();

            volumeUpModifiers   = (ModifierKeys)Properties.Settings.Default.VolumeUpModifiers;
            volumeDownModifiers = (ModifierKeys)Properties.Settings.Default.VolumeDownModifiers;
            volumeUpKey         = (Key)Properties.Settings.Default.VolumeUpKey;
            volumeDownKey       = (Key)Properties.Settings.Default.VolumeDownKey;
            RefreshHotkeyTextBoxes();

            autostartManager            = new AutostartManager("BrightnessControl", Assembly.GetExecutingAssembly().Location, "/autostart", AutostartType.CurrentUser);
            autostartCheckBox.IsChecked = autostartManager.IsRegistered;
        }