//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(); } }
//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(); } }