Exemplo n.º 1
0
 void ExecuteMacro(string macroFile)
 {
     if (File.Exists(macroFile))
     {
         BluetoothHidWriter.RecorderList data = new BluetoothHidWriter.RecorderList();
         using (FileStream fs = File.OpenRead(macroFile))
         {
             using (BinaryReader bw = new BinaryReader(fs))
             {
                 data.Deserialize(bw);
             }
         }
         Cursor.Current = Cursors.WaitCursor;
         _hidWriter.ExecuteRecorder(data, 10);
         Cursor.Current = Cursors.Default;
     }
 }