コード例 #1
0
        //Testing
        private void BT_SendtoN1_Click(object sender, EventArgs e)
        {
            List <double[]> DataTime = new List <double[]>();

            DataTime = Testing.ProvideDataTime();

            RTB_DataSetViewer.Text = Testing.DecodeData(DataTime);

            try
            {
                NM.updateNodeData(DataTime, 1);
            }
            catch { }
        }
コード例 #2
0
        private void BT_SimNodeDataFulln5_Click(object sender, EventArgs e)
        {
            int             counter   = 0;
            List <double[]> DataTime1 = new List <double[]>(Testing.ProvideDataTime());
            List <double[]> DataTime2 = new List <double[]>(Testing.ProvideDataTime());
            List <double[]> DataTime3 = new List <double[]>(Testing.ProvideDataTime());
            List <double[]> DataTime4 = new List <double[]>(Testing.ProvideDataTime());
            List <double[]> DataTime5 = new List <double[]>(Testing.ProvideDataTime());

            foreach (KeyValuePair <int, NM.Node> node in NM.NodeDict)
            {
                try
                {
                    switch (counter)
                    {
                    case 0:
                        NM.updateNodeData(DataTime1, node.Key);
                        counter++;
                        break;

                    case 1:
                        NM.updateNodeData(DataTime2, node.Key);
                        counter++;
                        break;

                    case 2:
                        NM.updateNodeData(DataTime3, node.Key);
                        counter++;
                        break;

                    case 3:
                        NM.updateNodeData(DataTime4, node.Key);
                        counter++;
                        break;

                    case 4:
                        NM.updateNodeData(DataTime5, node.Key);
                        counter++;
                        break;

                    default:
                        break;
                    }
                }
                catch { }
            }
        }
コード例 #3
0
        //private void BT_SimDataTime_Click(object sender, EventArgs e)
        //{

        //}

        //Testing
        private void BT_SimDataTime_Click_1(object sender, EventArgs e)
        {
            RTB_DataSetViewer.Text = Testing.DecodeData(Testing.ProvideDataTime());
        }
コード例 #4
0
 private void BT_DecodeData_Click(object sender, EventArgs e)
 {
     Testing.ProvideRandDataSet(RTB_DecodedData);
 }