示例#1
0
        //Serial port setting
        private void serialToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string strRet;

            using (SerialSetting formSerialSetting = new SerialSetting())
            {
                formSerialSetting.ShowDialog();
                strRet = formSerialSetting.MyString;
                MessageBox.Show(strRet);
                if (strRet != "NAN")
                {
                    // samplingTime = int.Parse(strRet);
                }

                // upDateTimer();
            }
        }
示例#2
0
        //Serial port setting
        private void serialToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string strRet;
            using(SerialSetting formSerialSetting = new SerialSetting())
            {
                formSerialSetting.ShowDialog();
                strRet = formSerialSetting.MyString;
                MessageBox.Show(strRet);
                if (strRet != "NAN")
                {
                   // samplingTime = int.Parse(strRet);
                }

               // upDateTimer();
            }
        }