private void TaskMgrCheck_Tick(object sender, EventArgs e)
 {
     Process[] pname = Process.GetProcessesByName("Taskmgr");
     if (pname.Length == 0)
     {
         simpleButton1.ForeColor = Color.Red;
         TaskMgrCheck.Stop();
     }
     else
     {
         simpleButton1.ForeColor = Color.Green;
     }
 }
Exemplo n.º 2
0
 private void TaskMgrCheck_Tick(object sender, EventArgs e)
 {
     Process[] pname = Process.GetProcessesByName("Taskmgr");
     if (pname.Length == 0)
     {
         labelControl3.Text      = "Vérifier les programmes que vous avez désactiver au démarrages ( Manuel ) ( Stopped )";
         labelControl3.ForeColor = Color.Red;
         TaskMgrCheck.Stop();
     }
     else
     {
         labelControl3.Text      = "Vérifier les programmes que vous avez désactiver au démarrages ( Manuel ) ( Launched )";
         labelControl3.ForeColor = Color.Green;
     }
 }