if(Convert.ToBoolean(M3177) && rep[0]) { A1.Text = now; A1.SubItems.Add(alarms[0]); A1.ForeColor = listViewRed; rep[0] = false; } if (Convert.ToBoolean(M3176) && rep[1]) { A2.Text = now; A2.SubItems.Add(alarms[1]); A2.ForeColor = listViewRed; rep[1] = false; } if (Convert.ToBoolean(M3175) && rep[2]) { A3.Text = now; A3.SubItems.Add(alarms[2]); A3.ForeColor = listViewRed; rep[2] = false; } if (Convert.ToBoolean(M3174) && rep[3]) { A4.Text = now; A4.SubItems.Add(alarms[3]); A4.ForeColor = listViewRed; rep[3] = false; } if (Convert.ToBoolean(M3173) && rep[4]) { A5.Text = now; A5.SubItems.Add(alarms[4]); A5.ForeColor = listViewRed; rep[4] = false; } listView1.Items.Clear(); listView1.Items.AddRange(new ListViewItem[] { A1, A2, A3, A4, A5 });
if (Convert.ToBoolean(M3176) && rep[1]) { A2.Text = now; A2.SubItems.Add(alarms[1]); A2.ForeColor = listViewRed; rep[1] = false; listView1.Items.Add(A2); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)