Ejemplo n.º 1
0
 private void FormVASimulator_FormClosing(object sender, FormClosingEventArgs e)
 {
     //stop background thread
     _stopRetrieveAckAlarmThread = true;
     _retrieveAckAlarmThread.Abort();
     //release Alarm wrapper
     AlarmWrapperFactory.releaseExternalWrapper(VASubsystemID);
 }
Ejemplo n.º 2
0
        public FormVASimulator()
        {
            InitializeComponent();

            //get NET wrapper from factory
            _AlarmWrapper = AlarmWrapperFactory.getExternalAlarmWrapper(VASubsystemID);
            //update VA startTime;
            UpdateVAStartTime();


            //Start new thread to update Alarm Request Info and ISCS start time
            _retrieveAckAlarmThread     = new Thread(new ThreadStart(this.RetrieveAlarmAck));
            _stopRetrieveAckAlarmThread = false;
            _retrieveAckAlarmThread.Start();
        }