Пример #1
0
 public void disp_Speed(TcpseriveCom tc)
 {
     if (this.InvokeRequired)
     {
         this.BeginInvoke(new Action(() =>
         {
             combPower.Text = tc.Power;
             speedBar.Value = tc.Speed;
             AccelBar.Value = tc.Accel;
             Speedbox.Text  = tc.Speed.ToString();
             Accelbox.Text  = tc.Accel.ToString();
         }));
     }
     else
     {
         combPower.Text = tc.Power;
         speedBar.Value = tc.Speed;
         AccelBar.Value = tc.Accel;
         Speedbox.Text  = tc.Speed.ToString();
         Accelbox.Text  = tc.Accel.ToString();
     }
 }
Пример #2
0
        public void TcpseriveComMgr_Add(string name)
        {
            TcpseriveCom tcpserive = new TcpseriveCom(name);

            TcpserList.Add(tcpserive);
        }