Exemplo n.º 1
0
 public override void LocateFile()
 {
     try
     {
         CleanHelper.FindFile(Location);
     }
     catch { }
 }
Exemplo n.º 2
0
 public override void LocateFile()
 {
     try
     {
         CleanHelper.FindFile(SanitizePath(Location));
     }
     catch { }
 }
Exemplo n.º 3
0
 public override void LocateKey()
 {
     try
     {
         CleanHelper.FindKeyInRegistry(Key.ToString());
     }
     catch { }
     //finally { Key.Close(); }
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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 { }
        }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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;
            }
        }
Exemplo n.º 9
0
 internal static void Clean()
 {
     CleanHelper.EmptyFolder(CoreFolder);
 }
Exemplo n.º 10
0
 internal static void LocateHosts()
 {
     CleanHelper.FindFile(HostsFile);
 }