예제 #1
0
 public override void LocateFile()
 {
     try
     {
         CleanHelper.FindFile(Location);
     }
     catch { }
 }
예제 #2
0
 public override void LocateFile()
 {
     try
     {
         CleanHelper.FindFile(SanitizePath(Location));
     }
     catch { }
 }
예제 #3
0
 public override void LocateKey()
 {
     try
     {
         CleanHelper.FindKeyInRegistry(Key.ToString());
     }
     catch { }
     //finally { Key.Close(); }
 }
예제 #4
0
        private bool FixRegistry()
        {
            bool changeDetected = false;

            try
            {
                if (wfirewall.Checked)
                {
                    CleanHelper.EnableFirewall();
                    changeDetected = true;
                }
                if (cmdp.Checked)
                {
                    CleanHelper.EnableCommandPrompt();
                    changeDetected = true;
                }
                if (controlp.Checked)
                {
                    CleanHelper.EnableControlPanel();
                    changeDetected = true;
                }
                if (foldero.Checked)
                {
                    CleanHelper.EnableFolderOptions();
                    changeDetected = true;
                }
                if (rundialog.Checked)
                {
                    CleanHelper.EnableRunDialog();
                    changeDetected = true;
                }
                if (rightmenu.Checked)
                {
                    CleanHelper.EnableContextMenu();
                    changeDetected = true;
                }
                if (taskmgr.Checked)
                {
                    CleanHelper.EnableTaskManager();
                    changeDetected = true;
                }
                if (regeditor.Checked)
                {
                    CleanHelper.EnableRegistryEditor();
                    changeDetected = true;
                }
            }
            catch
            {
                changeDetected = false;
            }

            return(changeDetected);
        }
예제 #5
0
        private void GetStartupItems()
        {
            items = CleanHelper.GetStartupItems();
            listStartupItems.Items.Clear();

            for (int i = 0; i < items.Count; i++)
            {
                ListViewItem list = new ListViewItem(items[i].Name);
                list.SubItems.Add(items[i].Location);
                list.SubItems.Add(items[i].ToString());

                listStartupItems.Items.Add(list);
            }
        }
예제 #6
0
        internal static void DisableTelemetryRunner()
        {
            try
            {
                if (File.Exists(CompatTelRunnerFile))
                {
                    CleanHelper.RunCommand(string.Format("takeown /F {0}", CompatTelRunnerFile));
                    CleanHelper.RunCommand(string.Format("icacls \"{0}\" /grant administrators:F", CompatTelRunnerFile));

                    FileSystem.RenameFile(CompatTelRunnerFile, CompatTelRunnerFileOff);
                }
            }
            catch { }
        }
예제 #7
0
 private void CleanPC()
 {
     try
     {
         if (tempfiles.Checked)
         {
             CleanHelper.CleanTemp();
         }
         if (utorrentcache.Checked)
         {
             CleanHelper.CleanUTorrent();
         }
         if (ftpservers.Checked)
         {
             CleanHelper.CleanFileZilla();
         }
         if (bsoddumps.Checked)
         {
             CleanHelper.CleanMiniDumps();
         }
         if (prefetchcache.Checked)
         {
             CleanHelper.CleanPrefetch();
         }
         if (mediaplayercache.Checked)
         {
             CleanHelper.CleanMediaPlayersCache();
         }
         if (logfiles.Checked)
         {
             CleanHelper.CleanLogs();
         }
         if (emptytrash.Checked)
         {
             CleanHelper.EmptyRecycleBin();
         }
         if (errorreports.Checked)
         {
             CleanHelper.CleanErrorReports();
         }
     }
     catch { }
     finally
     {
         CleanAnimation(false);
     }
 }
예제 #8
0
        private void button33_Click(object sender, EventArgs e)
        {
            bool flag = FixRegistry();

            panel2.Enabled   = false;
            button33.Enabled = false;

            if (flag)
            {
                if (restartexplorer.Checked)
                {
                    CleanHelper.RestartExplorer();
                }

                panel2.Enabled   = true;
                button33.Enabled = true;
            }
        }
예제 #9
0
 internal static void Clean()
 {
     CleanHelper.EmptyFolder(CoreFolder);
 }
예제 #10
0
 internal static void LocateHosts()
 {
     CleanHelper.FindFile(HostsFile);
 }