コード例 #1
0
 private void buttonStart_Click(object sender, EventArgs e)
 {
     if (!_communicate_start)
     {
         buttonStart.Text    = "Stop";
         ssmcomout1.PortName = comboBox_COMPortSelect.Text;
         ssmcomout1.communicate_realtime_start();
         _communicate_start = true;
     }
     else
     {
         buttonStart.Text = "Start";
         ssmcomout1.communicate_realtime_stop();
         _communicate_start = false;
     }
 }
コード例 #2
0
 private void buttonStart_Click(object sender, EventArgs e)
 {
     if (!_communicate_start)
     {
         buttonStart.Text    = "Stop";
         ssmcomout1.PortName = (int)numericUpDown_Portname.Value;
         ssmcomout1.communicate_realtime_start();
         _communicate_start = true;
     }
     else
     {
         buttonStart.Text = "Start";
         ssmcomout1.communicate_realtime_stop();
         _communicate_start = false;
     }
 }