public LocalFileDirectory(FTPConnection ftp, Form1 f1) : base(ftp, f1) { start = true; ListDirectory(); this.f1 = f1; currentfolderpath += treebox.Nodes[0].Text; CurrentFolder = treebox.Nodes[0]; }
public ServerFileDirectory(FTPConnection ftp, Form1 f1) : base(ftp, f1) { treebox.AfterExpand += new TreeViewEventHandler(treebox_AfterExpand); treebox.KeyDown += new KeyEventHandler(treebox_KeyDown); treebox.NodeMouseClick += new TreeNodeMouseClickEventHandler(treebox_NodeMouseClick); Paths_ = this.ftp.ListServerDirectory(); root = new TreeNode("Server"); root.Name = "Server"; ListDirectory(root); F1 = f1; }
public FileDirectory(FTPConnection ftp, Form1 f1) { this.ftp = ftp; treebox = new TreeView(); //treebox.BeforeExpand +=new TreeViewCancelEventHandler(treebox_BeforeExpand); treebox.NodeMouseDoubleClick += new TreeNodeMouseClickEventHandler(treebox_NodeMouseDoubleClick); myimagelist.Images.Add(bmp); myimagelist.Images.Add(bmp1); treebox.ImageList = myimagelist; }
public void CreateConnection(string [] connectiondata) { ftp = new FTPConnection(connectiondata); sfd = new ServerFileDirectory(ftp, this); local.CreateConnection = ftp; serverdirectory = sfd.returnTreeView; serverdirectory.Size = new Size(350, 200); serverdirectory.Location = new Point(350, 150); this.Controls.Add(serverdirectory); serverduplicate.Hide(); }
public void NewConnection(FTPConnection ftp_) { ftp = ftp_; }