Пример #1
0
 /// <summary>
 /// 处理裁剪信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void fileSystemWatcher2_Created(object sender, FileSystemEventArgs e)
 {
     try
     {
         websocket.Dwon(mWebsocket.path, mWebsocket.maskList);
         //复制文件到指定目录
         string sourcePath = this.fileSystemWatcher2.Path + @"\" + mWebsocket.businessId;
         string destPath   = @"D:\";
         HTTP.CopyFile(sourcePath, destPath);
         MessageBox.Show("裁床可执行NC文件已经保存到D盘根目录!");
     }
     catch (Exception ex)
     {
         IniHelper.WriteLog(ex);
         MessageBox.Show(ex.Message);
     }
 }