void UpdateStatus()
        {
            chkFolderStatus.IsChecked     = RestoreTool.CheckFolderStatus();
            chkFolderBackStatus.IsChecked = RestoreTool.CheckFolderBackgroundStatus();
            chkExplorerStatus.IsChecked   = RestoreTool.CheckExplorerRibbonStatus();

            if (chkFolderStatus.IsChecked.GetValueOrDefault())
            {
                btnFolderContextEnable.IsEnabled  = false;
                btnFolderContextDisable.IsEnabled = true;
            }
            else
            {
                btnFolderContextEnable.IsEnabled  = true;
                btnFolderContextDisable.IsEnabled = false;
            }

            if (chkFolderBackStatus.IsChecked.GetValueOrDefault())
            {
                btnFolderBackEnable.IsEnabled  = false;
                btnFolderBackDisable.IsEnabled = true;
            }
            else
            {
                btnFolderBackEnable.IsEnabled  = true;
                btnFolderBackDisable.IsEnabled = false;
            }



            if (chkExplorerStatus.IsChecked.GetValueOrDefault())
            {
                btnExplorerEnable.IsEnabled  = false;
                btnExplorerDisable.IsEnabled = true;
            }
            else
            {
                btnExplorerEnable.IsEnabled  = true;
                btnExplorerDisable.IsEnabled = false;
            }
        }
 private void btnExplorerEnable_Click(object sender, RoutedEventArgs e)
 {
     RestoreTool.ReplacePowershellWithCmd();
     UpdateStatus();
 }
 private void btnFolderBackDisable_Click(object sender, RoutedEventArgs e)
 {
     RestoreTool.DisableFolderBackground();
     UpdateStatus();
 }
 private void btnFolderContextDisable_Click(object sender, RoutedEventArgs e)
 {
     RestoreTool.DisableFolder();
     UpdateStatus();
 }
 private void btnExplorerDisable_Click(object sender, RoutedEventArgs e)
 {
     RestoreTool.RestorePowershellRibbon();
     UpdateStatus();
 }