我必须开发一个项目,但是当我输入此代码块时,卡巴斯基安全软件会提醒我并删除 exe 文件。
这是报告:
我在看到病毒后添加的这段代码:
foreach (DataGridViewRow idrow in dataGridView8.Rows)
{
TimeSpan diftime = new TimeSpan();
DateTime diftimson;
diftimson = Convert.ToDateTime(idrow.Cells[1].Value);
diftime = diftimson.Subtract(DateTime.Now);
double AradakiFark1 = diftime.Hours + Convert.ToInt32(idrow.Cells[4].Value);
int sonuc1 = Convert.ToInt32(AradakiFark1) / 24;
if (sonuc1 <= 3)
{
MessageBox.Show("3 Months Left For " + sonuc1 + " ", "ATTENTION !", MessageBoxButtons.OK, MessageBoxIcon.Warning);
idrow.Cells[0].Style.BackColor = Color.Red;
idrow.Cells[0].Style.ForeColor = Color.White;
}
}
我该如何解决?