Пример #1
0
 public BluetoothStreamHandler(BluetoothClient bc, BluetoothCommForm fm)
 {
     bcFm = fm;
     try
     {
         BluetoothStream = bc.GetStream();
         BluetoothStream.BeginRead(buffer, 0, buffer.Length, AsyncReceiveCallback, this);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
     }
 }
 public BluetoothStreamHandler(BluetoothClient bc, BluetoothCommForm fm)
 {
     bcFm = fm;
     try
     {
         BluetoothStream = bc.GetStream();
         BluetoothStream.BeginRead(buffer, 0, buffer.Length, AsyncReceiveCallback, this);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
     }
 }