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