private void KHR_1HV_DataTable_Load(object sender, EventArgs e)
 {
     watchDogTimer = new TimeOut();
     for (int i = 0; i < StaticUtilities.numberOfMotions; i++)
     {
         string[] str = new string[StaticUtilities.numberOfDataTableItems];
         ListViewItem itm;
         for (int j = 0; j < StaticUtilities.numberOfDataTableItems; j++)
         {
             str[j] = Roboard.DataTable.motionDataTable[i, j];
         }
         itm = new ListViewItem(str);
         this.lvDataTable.Items.Add(itm);
     }
 }
예제 #2
0
        // Function
        //
        private bool handleNetworkMessage(string sendString)
        {
            watchDogTimer = new TimeOut();

            sReturnMessage = string.Empty;
            Roboard.NetworkClient.SendMessage(sendString);
            watchDogTimer.Start(1000);
            // wait till ok received
            while ((sReturnMessage == string.Empty) && (!watchDogTimer.Done)) ;
            saReturnMessage = sReturnMessage.Split(',');
            if (watchDogTimer.Done)
            {
                return false;
            }
            return true;
        }