private async void scanMalWebEndLess() { while (true) { ScanMalWeb scanMalWeb = new ScanMalWeb(); List <string> foundList = scanMalWeb.getListOfFoundMalWeb(); lb_malWebList.DataSource = foundList; if (foundList.Count() > 0) { lbl_mss.Text = "MalWeb Found"; lbl_mss.ForeColor = Color.DarkRed; } else { lbl_mss.ForeColor = Color.DarkBlue; lbl_mss.Text = "No Found"; } await Task.Delay(500); lbl_Scanning.BackColor = lbl_Scanning.BackColor == Color.LightGreen ? Color.LightBlue : Color.LightGreen; //lbl_Scanning.Visible = lbl_Scanning.Visible == true ? false : true; } }
private void btn_kill_Click(object sender, EventArgs e) { ScanMalWeb scanMalWeb = new ScanMalWeb(); scanMalWeb.killProcessThatConnectMalWeb(); }