Exemplo n.º 1
0
Arquivo: IO.cs Projeto: sunpander/VSDT
 /// <summary>
 /// Զ�̻�ȡ�ļ�
 /// </summary>
 /// <param name="fileName"></param>
 public static void DownloadFile(BaseCommunication sender, string fileName, string savepath)
 {
     FileCode fileMng = new FileCode(fileName);
     fileMng.Head = CodeHead.GET_FILE;
     fileMng.SavePath = savepath;
     if (sender != null)
         sender.SendCode(fileMng);
 }
Exemplo n.º 2
0
Arquivo: IO.cs Projeto: sunpander/VSDT
 /// <summary>
 /// �����ļ�
 /// </summary>
 /// <param name="code"></param>
 public static void UploadFile(BaseCommunication sender, FileCode code)
 {
     code.Head = CodeHead.SEND_FILE;
     code.readFile();
     if (sender != null)
         sender.SendCode(code);
 }
Exemplo n.º 3
0
Arquivo: IO.cs Projeto: sunpander/VSDT
 /// <summary>
 /// �����ļ�
 /// </summary>
 /// <param name="fileMng"></param>
 public static void SaveFile(BaseCommunication sender, FileCode fileMng)
 {
     fileMng.SaveFile();
     if (sender != null)
     {
         BaseCode code = new BaseCode();
         code.Head = CodeHead.FILE_TRAN_END;
         sender.SendCode(code);
     }
 }