コード例 #1
0
 private void testWrite_Click(object sender, RoutedEventArgs e)
 {
     if (ourPort == null)
     {
         MessageBox.Show("Port is not open!");
     }
     else
     {
         ourPort.SendData(testTextBox.Text);
     }
 }