Пример #1
0
 private void MsConfigCheck_Tick(object sender, EventArgs e)
 {
     Process[] pname = Process.GetProcessesByName("msconfig");
     if (pname.Length == 0)
     {
         if (Properties.Settings.Default.Lang == "FR")
         {
             labelControl4.Text = "Vérifier ce que vous avez désactivé dans les Services au démarrage (Manuel)";
         }
         else if (Properties.Settings.Default.Lang == "EN")
         {
             labelControl4.Text = "Check what you have disabled in Startup Services (Manuel)";
         }
         labelControl4.ForeColor = Color.Red;
         MsConfigCheck.Stop();
     }
     else
     {
         if (Properties.Settings.Default.Lang == "FR")
         {
             labelControl4.Text = "Vérifier ce que vous avez désactivé dans les Services au démarrage (Manuel)";
         }
         else if (Properties.Settings.Default.Lang == "EN")
         {
             labelControl4.Text = "Check what you have disabled in Startup Services (Manuel)";
         }
         labelControl4.ForeColor = Color.Green;
     }
 }
 private void MsConfigCheck_Tick(object sender, EventArgs e)
 {
     Process[] pname = Process.GetProcessesByName("msconfig");
     if (pname.Length == 0)
     {
         simpleButton2.ForeColor = Color.Red;
         MsConfigCheck.Stop();
     }
     else
     {
         simpleButton2.ForeColor = Color.Green;
     }
 }
Пример #3
0
        private void simpleButton4_Click(object sender, EventArgs e)
        {
            if (Properties.Settings.Default.Lang == "FR")
            {
                DevExpress.XtraEditors.XtraMessageBox.Show("COCHEZ BIEN “MASQUEZ TOUS LES SERVICES MICROSOFT” SINON VOUS RISQUEZ DE FAIRE DES BÊTISES ! ", "Attention !", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                DevExpress.XtraEditors.XtraMessageBox.Show("Check 'HIDE ALL MICROSOFT SERVICES' OTHERWISE YOU CAN DO BADIES ! ", "Warning !", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            MsConfigCheck.Start();
            var process = new Process
            {
                StartInfo =
                {
                    FileName  = Path.Combine(Environment.SystemDirectory, "msconfig.exe"),
                    Arguments = "/3"
                }
            };

            process.Start();
        }