예제 #1
0
        private void writerAssistant_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
        {
            writerAssistTimer.Restart();
            BackgroundWorker worker = (BackgroundWorker)sender;
            E6Pos            tempE6 = new OpenArms.E6Pos();

            tempE6.updateE6Pos(calculateDelta());
            ClientTunnel tempClient = getNextClient();

            tempClient.writeVariable("MYPOS", tempE6.currentValue);
            tempClient.IsActive   = false;
            WriterBackgroundTimer = writerAssistTimer.Elapsed.TotalMilliseconds;
        }