Example #1
0
 /// <summary>
 /// Upload file.
 /// </summary>
 /// <param name="file">Path of file to upload.</param>
 private void uploadFile(string file)
 {
     mSerialPort.SendString("load\n");
     try
     {
         mUploadFileWorker = new Thread(new ParameterizedThreadStart(UploadFileWorker));
         mUploadFileWorker.Start(file);
         mLastUploadedFile = file;
     }
     catch
     {
     }
 }