private void CheckBoxConStandBy_Click(object sender, RoutedEventArgs e)
        {
            TaskSchHandler taskShedHandler = new TaskSchHandler();

            if (CheckBoxConStandBy.IsChecked.Value)
            {
                taskShedHandler.CreateConnectedStandbyTask();
                Properties.Settings.Default.connectedStandby = true;
            }
            else
            {
                taskShedHandler.RemoveConnectedStandbyTask();
                Properties.Settings.Default.connectedStandby = false;
            }
        }
        private void CheckBoxBackgroundUpdater_Click(object sender, RoutedEventArgs e)
        {
            TaskSchHandler taskShedHandler = new TaskSchHandler();

            if (CheckBoxBackgroundUpdater.IsChecked.Value)
            {
                taskShedHandler.CreateAppUpdaterTask();
                Properties.Settings.Default.BackgroundUpdate = true;
            }
            else
            {
                taskShedHandler.RemoveAppUpdaterTask();
                Properties.Settings.Default.BackgroundUpdate = false;
            }
        }
        private void CheckBoxLogonTask_Click(object sender, RoutedEventArgs e)
        {
            RegeditHandler regeditHandler = new RegeditHandler();
            TaskSchHandler taskScheduler  = new TaskSchHandler();

            if (CheckBoxLogonTask.IsChecked.Value)
            {
                regeditHandler.RemoveAutoStart();
                taskScheduler.CreateLogonTask();
                Settings.Default.LogonTaskInsteadOfAutostart = true;
            }
            else
            {
                taskScheduler.RemoveLogonTask();
                regeditHandler.AddAutoStart();
                Settings.Default.LogonTaskInsteadOfAutostart = false;
            }
        }
        private void CheckBoxMultiUserImprovements_Click(object sender, RoutedEventArgs e)
        {
            TaskSchHandler taskScheduler  = new TaskSchHandler();
            RegeditHandler regEditHandler = new RegeditHandler();

            if (CheckBoxMultiUserImprovements.IsChecked == true)
            {
                taskScheduler.RemoveAllTasks();
                Settings.Default.TaskFolderTitle          = "ADM_" + Environment.UserName;
                Settings.Default.TaskFolderTitleMultiUser = true;
            }
            else
            {
                taskScheduler.RemoveAllTasks();
                Settings.Default.TaskFolderTitle          = "Auto Dark Mode";
                Settings.Default.TaskFolderTitleMultiUser = false;
            }
            if (!Settings.Default.LogonTaskInsteadOfAutostart)
            {
                regEditHandler.RemoveAutoStart();
            }
            Settings.Default.Enabled = false;
            RestartButton_Click(this, null);
        }