Exemplo n.º 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;
     }
 }