Exemplo n.º 1
0
        //Menu toolStrip
        //Sampling time setting
        private void intervalSampToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string strRet;

            using (SamplingForm formSetting = new SamplingForm())
            {
                formSetting.ShowDialog();
                strRet = formSetting.MyString;
                if (strRet != "NAN")
                {
                    samplingTime = int.Parse(strRet);
                }
                update_status("Set sampling time is: " + samplingTime.ToString(), true);
                upDateTimer();
            }
        }
Exemplo n.º 2
0
 //Menu toolStrip
 //Sampling time setting
 private void intervalSampToolStripMenuItem_Click(object sender, EventArgs e)
 {
     string strRet;
     using (SamplingForm formSetting = new SamplingForm())
     {
         formSetting.ShowDialog();
         strRet = formSetting.MyString;
         if (strRet != "NAN")
         {
             samplingTime = int.Parse(strRet);
         }
         update_status("Set sampling time is: " + samplingTime.ToString(), true);
         upDateTimer();
     }
 }