1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| Private Sub tm_gestion_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tm_gestion.Tick
If S >= Alarm1.Seuil Then
Dim row0 As Object
'Réglage de l'aquitement
Alarm1.Ack = "non acquitée"
'Réglage de la date d'apparition de l'alarme
Alarm1.TimeIn = Date.Now
Alarm1.NiveauAlarm = "Defaut"
Alarm1.Priority = 1
row0 = {Alarm1.Ack, Alarm1.TimeIn, Alarm1.Unit, Alarm1.ModuleParam, Alarm1.Description, Alarm1.NiveauAlarm, Alarm1.Message, Alarm1.Priority}
DataGridView1.Rows.Add(row0)
End If
If S >= Alarm2.Seuil Then
Dim row1 As Object
'Réglage de l'aquitement
Alarm2.Ack = "non acquitée"
'Réglage de la date d'apparition de l'alarme
Alarm2.TimeIn = Date.Now
Alarm2.NiveauAlarm = "Defaut"
Alarm2.Priority = 2
row1 = {Alarm2.Ack, Alarm2.TimeIn, Alarm2.Unit, Alarm2.ModuleParam, Alarm2.Description, Alarm2.NiveauAlarm, Alarm2.Message, Alarm2.Priority}
DataGridView1.Rows.Add(row1)
End If
End Sub |
Partager