Exemplo n.º 1
0
 public new void Load(Data.RemoteServer _data, string file, Tabs tabs)
 {
     ftp = true;
     Data = _data;
     ftpFile = file;
     FtpDownloader downloader = new FtpDownloader();
     string ftpIp = this.Data.adress.Replace("/", "").Split(':')[1];
     string ftpLocalFileName = Main.TempRemoteDirectory + ftpIp + Path.DirectorySeparatorChar + Path.GetFileName(file);
     downloader.Download(Data, ftpLocalFileName, file);
     Load(new FileInfo(ftpLocalFileName), tabs);
 }
Exemplo n.º 2
0
 public new void Load(ServersTreeNodes.RemoteFileNode node, Tabs tabs)
 {
     ftp = true;
     Data = node.data;
     ftpFile = node.GetFile();
     FtpDownloader downloader = new FtpDownloader();
     string ftpIp = node.data.adress.Replace("/", "").Split(':')[1];
     string ftpLocalFileName = Main.TempRemoteDirectory + ftpIp + Path.DirectorySeparatorChar + Path.GetFileName(node.GetFile());
     downloader.Download(node.data, ftpLocalFileName, node.GetFile());
     Load(new FileInfo(ftpLocalFileName), tabs);
 }