private void buttonCompleted_Click(object sender, EventArgs e) { if (_selectedRow != null) { Alarm alarm = _selectedRow.Tag as Alarm; if (alarm != null) { try { IAlarmClient alarmClient = LookupAlarmClient(alarm.EventHeader.Source.FQID); alarmClient.UpdateAlarm(alarm.EventHeader.ID, "Operator Closed Alarm", 11, alarm.EventHeader.Priority, DateTime.UtcNow, null); } catch (Exception ex) { EnvironmentManager.Instance.ExceptionDialog("MessageHandler", ex); } } } }
private void buttonInprogress_Click(object sender, EventArgs e) { if (_selectedRow != null) { Alarm alarm = _selectedRow.Tag as Alarm; if (alarm != null) { try { IAlarmClient alarmClient = LookupAlarmClient(alarm.EventHeader.Source.FQID); alarmClient.UpdateAlarm(alarm.EventHeader.ID, "Operator changed to InProgress", 4, 1, DateTime.UtcNow, ""); } catch (Exception ex) { EnvironmentManager.Instance.ExceptionDialog("MessageHandler", ex); } } } }