Beispiel #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.statusBar1 = new System.Windows.Forms.StatusBar();
     this.toolBar1 = new System.Windows.Forms.ToolBar();
     this.TextLog = new System.Windows.Forms.RichTextBox();
     this.splitter1 = new System.Windows.Forms.Splitter();
     this.LocalView = new System.Windows.Forms.ListView();
     this.chName = new System.Windows.Forms.ColumnHeader();
     this.chSize = new System.Windows.Forms.ColumnHeader();
     this.chType = new System.Windows.Forms.ColumnHeader();
     this.chModified = new System.Windows.Forms.ColumnHeader();
     this.ImgListViewLarge = new System.Windows.Forms.ImageList(this.components);
     this.ImgListViewSmall = new System.Windows.Forms.ImageList(this.components);
     this.SplitView = new System.Windows.Forms.Splitter();
     this.ServerView = new System.Windows.Forms.ListView();
     this.schName = new System.Windows.Forms.ColumnHeader();
     this.schSize = new System.Windows.Forms.ColumnHeader();
     this.schType = new System.Windows.Forms.ColumnHeader();
     this.schModified = new System.Windows.Forms.ColumnHeader();
     this.contextMenuServer = new System.Windows.Forms.ContextMenu();
     this.MnuServerNewFolder = new System.Windows.Forms.MenuItem();
     this.menuItem7 = new System.Windows.Forms.MenuItem();
     this.MenuDownload = new System.Windows.Forms.MenuItem();
     this.MnuServerRename = new System.Windows.Forms.MenuItem();
     this.MenuDelete = new System.Windows.Forms.MenuItem();
     this.menuItem8 = new System.Windows.Forms.MenuItem();
     this.MnuServerProperties = new System.Windows.Forms.MenuItem();
     this.ImgListServerSmall = new System.Windows.Forms.ImageList(this.components);
     this.mainMenu1 = new System.Windows.Forms.MainMenu();
     this.menuItem1 = new System.Windows.Forms.MenuItem();
     this.menuItem2 = new System.Windows.Forms.MenuItem();
     this.menuItem3 = new System.Windows.Forms.MenuItem();
     this.menuItem4 = new System.Windows.Forms.MenuItem();
     this.menuItem5 = new System.Windows.Forms.MenuItem();
     this.CBFTPServer = new System.Windows.Forms.ComboBox();
     this.label1 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.EFUsername = new System.Windows.Forms.TextBox();
     this.Text1 = new System.Windows.Forms.Label();
     this.EFPassword = new System.Windows.Forms.TextBox();
     this.BTConnect = new System.Windows.Forms.Button();
     this.BtnClose = new System.Windows.Forms.Button();
     this.ftpc = new FTPCom.FTPC();
     this.SuspendLayout();
     //
     // statusBar1
     //
     this.statusBar1.Location = new System.Drawing.Point(0, 479);
     this.statusBar1.Name = "statusBar1";
     this.statusBar1.Size = new System.Drawing.Size(768, 22);
     this.statusBar1.TabIndex = 0;
     this.statusBar1.Text = "statusBar1";
     //
     // toolBar1
     //
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.Name = "toolBar1";
     this.toolBar1.ShowToolTips = true;
     this.toolBar1.Size = new System.Drawing.Size(768, 39);
     this.toolBar1.TabIndex = 1;
     //
     // TextLog
     //
     this.TextLog.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.TextLog.Location = new System.Drawing.Point(0, 415);
     this.TextLog.Name = "TextLog";
     this.TextLog.ReadOnly = true;
     this.TextLog.Size = new System.Drawing.Size(768, 64);
     this.TextLog.TabIndex = 2;
     this.TextLog.Text = "";
     //
     // splitter1
     //
     this.splitter1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.splitter1.Location = new System.Drawing.Point(0, 412);
     this.splitter1.Name = "splitter1";
     this.splitter1.Size = new System.Drawing.Size(768, 3);
     this.splitter1.TabIndex = 3;
     this.splitter1.TabStop = false;
     //
     // LocalView
     //
     this.LocalView.AllowDrop = true;
     this.LocalView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
                                                                                 this.chName,
                                                                                 this.chSize,
                                                                                 this.chType,
                                                                                 this.chModified});
     this.LocalView.Dock = System.Windows.Forms.DockStyle.Left;
     this.LocalView.LabelEdit = true;
     this.LocalView.LargeImageList = this.ImgListViewLarge;
     this.LocalView.Location = new System.Drawing.Point(0, 39);
     this.LocalView.Name = "LocalView";
     this.LocalView.Size = new System.Drawing.Size(121, 373);
     this.LocalView.SmallImageList = this.ImgListViewSmall;
     this.LocalView.TabIndex = 4;
     this.LocalView.View = System.Windows.Forms.View.Details;
     this.LocalView.ItemActivate += new System.EventHandler(this.LocalView_ItemActivate);
     this.LocalView.DragDrop += new System.Windows.Forms.DragEventHandler(this.LocalView_DragDrop);
     this.LocalView.DragEnter += new System.Windows.Forms.DragEventHandler(this.LocalView_DragEnter);
     this.LocalView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.LocalView_ColumnClick);
     this.LocalView.MouseMove += new System.Windows.Forms.MouseEventHandler(this.LocalView_MouseMove);
     //
     // chName
     //
     this.chName.Text = "Name";
     this.chName.Width = 120;
     //
     // chSize
     //
     this.chSize.Text = "Size";
     //
     // chType
     //
     this.chType.Text = "Type";
     //
     // chModified
     //
     this.chModified.Text = "Modified";
     this.chModified.Width = 120;
     //
     // ImgListViewLarge
     //
     this.ImgListViewLarge.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.ImgListViewLarge.ImageSize = new System.Drawing.Size(16, 16);
     this.ImgListViewLarge.TransparentColor = System.Drawing.Color.Transparent;
     //
     // ImgListViewSmall
     //
     this.ImgListViewSmall.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.ImgListViewSmall.ImageSize = new System.Drawing.Size(16, 16);
     this.ImgListViewSmall.TransparentColor = System.Drawing.Color.Transparent;
     //
     // SplitView
     //
     this.SplitView.Location = new System.Drawing.Point(121, 39);
     this.SplitView.Name = "SplitView";
     this.SplitView.Size = new System.Drawing.Size(3, 373);
     this.SplitView.TabIndex = 5;
     this.SplitView.TabStop = false;
     //
     // ServerView
     //
     this.ServerView.AllowDrop = true;
     this.ServerView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
                                                                                  this.schName,
                                                                                  this.schSize,
                                                                                  this.schType,
                                                                                  this.schModified});
     this.ServerView.ContextMenu = this.contextMenuServer;
     this.ServerView.Dock = System.Windows.Forms.DockStyle.Fill;
     this.ServerView.LabelEdit = true;
     this.ServerView.Location = new System.Drawing.Point(124, 39);
     this.ServerView.Name = "ServerView";
     this.ServerView.Size = new System.Drawing.Size(644, 373);
     this.ServerView.SmallImageList = this.ImgListServerSmall;
     this.ServerView.TabIndex = 6;
     this.ServerView.View = System.Windows.Forms.View.Details;
     this.ServerView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ServerView_MouseDown);
     this.ServerView.ItemActivate += new System.EventHandler(this.ServerView_ItemActivate);
     this.ServerView.DragDrop += new System.Windows.Forms.DragEventHandler(this.ServerView_DragDrop);
     this.ServerView.AfterLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this.ServerView_AfterLabelEdit);
     this.ServerView.DragEnter += new System.Windows.Forms.DragEventHandler(this.ServerView_DragEnter);
     this.ServerView.MouseMove += new System.Windows.Forms.MouseEventHandler(this.ServerView_MouseMove);
     this.ServerView.BeforeLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this.ServerView_BeforeLabelEdit);
     //
     // schName
     //
     this.schName.Text = "Name";
     this.schName.Width = 120;
     //
     // schSize
     //
     this.schSize.Text = "Size";
     //
     // schType
     //
     this.schType.Text = "Type";
     //
     // schModified
     //
     this.schModified.Text = "Modified";
     //
     // contextMenuServer
     //
     this.contextMenuServer.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                       this.MnuServerNewFolder,
                                                                                       this.menuItem7,
                                                                                       this.MenuDownload,
                                                                                       this.MnuServerRename,
                                                                                       this.MenuDelete,
                                                                                       this.menuItem8,
                                                                                       this.MnuServerProperties});
     //
     // MnuServerNewFolder
     //
     this.MnuServerNewFolder.Index = 0;
     this.MnuServerNewFolder.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
     this.MnuServerNewFolder.Text = "New Folder";
     this.MnuServerNewFolder.Click += new System.EventHandler(this.MnuServerNewFolder_Click);
     //
     // menuItem7
     //
     this.menuItem7.Index = 1;
     this.menuItem7.Text = "-";
     //
     // MenuDownload
     //
     this.MenuDownload.Index = 2;
     this.MenuDownload.Shortcut = System.Windows.Forms.Shortcut.CtrlD;
     this.MenuDownload.Text = "Download";
     this.MenuDownload.Click += new System.EventHandler(this.MenuDownload_Click);
     //
     // MnuServerRename
     //
     this.MnuServerRename.Index = 3;
     this.MnuServerRename.Shortcut = System.Windows.Forms.Shortcut.CtrlR;
     this.MnuServerRename.Text = "Rename";
     this.MnuServerRename.Click += new System.EventHandler(this.MnuServerRename_Click);
     //
     // MenuDelete
     //
     this.MenuDelete.Index = 4;
     this.MenuDelete.Shortcut = System.Windows.Forms.Shortcut.Del;
     this.MenuDelete.Text = "Delete";
     this.MenuDelete.Click += new System.EventHandler(this.MenuDelete_Click);
     //
     // menuItem8
     //
     this.menuItem8.Index = 5;
     this.menuItem8.Text = "-";
     //
     // MnuServerProperties
     //
     this.MnuServerProperties.Index = 6;
     this.MnuServerProperties.Shortcut = System.Windows.Forms.Shortcut.CtrlP;
     this.MnuServerProperties.Text = "Properties";
     //
     // ImgListServerSmall
     //
     this.ImgListServerSmall.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.ImgListServerSmall.ImageSize = new System.Drawing.Size(16, 16);
     this.ImgListServerSmall.TransparentColor = System.Drawing.Color.Transparent;
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                               this.menuItem1});
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                               this.menuItem2,
                                                                               this.menuItem3,
                                                                               this.menuItem4,
                                                                               this.menuItem5});
     this.menuItem1.Text = "File";
     //
     // menuItem2
     //
     this.menuItem2.Index = 0;
     this.menuItem2.Text = "New";
     //
     // menuItem3
     //
     this.menuItem3.Index = 1;
     this.menuItem3.Text = "Open...";
     //
     // menuItem4
     //
     this.menuItem4.Index = 2;
     this.menuItem4.Text = "-";
     //
     // menuItem5
     //
     this.menuItem5.Index = 3;
     this.menuItem5.Text = "Quit";
     //
     // CBFTPServer
     //
     this.CBFTPServer.Items.AddRange(new object[] {
                                                      "localhost"});
     this.CBFTPServer.Location = new System.Drawing.Point(80, 8);
     this.CBFTPServer.Name = "CBFTPServer";
     this.CBFTPServer.Size = new System.Drawing.Size(136, 21);
     this.CBFTPServer.TabIndex = 7;
     this.CBFTPServer.Text = "localhost";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 8);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(72, 16);
     this.label1.TabIndex = 8;
     this.label1.Text = "FTP Server :";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(240, 8);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(64, 16);
     this.label2.TabIndex = 9;
     this.label2.Text = "Username :"******"EFUsername";
     this.EFUsername.Size = new System.Drawing.Size(80, 20);
     this.EFUsername.TabIndex = 10;
     this.EFUsername.Text = "anonymous";
     //
     // Text1
     //
     this.Text1.Location = new System.Drawing.Point(392, 8);
     this.Text1.Name = "Text1";
     this.Text1.Size = new System.Drawing.Size(88, 16);
     this.Text1.TabIndex = 11;
     this.Text1.Text = "Password :"******"EFPassword";
     this.EFPassword.Size = new System.Drawing.Size(104, 20);
     this.EFPassword.TabIndex = 12;
     this.EFPassword.Text = "*****@*****.**";
     //
     // BTConnect
     //
     this.BTConnect.Location = new System.Drawing.Point(592, 8);
     this.BTConnect.Name = "BTConnect";
     this.BTConnect.Size = new System.Drawing.Size(64, 24);
     this.BTConnect.TabIndex = 13;
     this.BTConnect.Text = "Connect";
     this.BTConnect.Click += new System.EventHandler(this.BTConnect_Click);
     //
     // BtnClose
     //
     this.BtnClose.Location = new System.Drawing.Point(672, 8);
     this.BtnClose.Name = "BtnClose";
     this.BtnClose.Size = new System.Drawing.Size(56, 24);
     this.BtnClose.TabIndex = 14;
     this.BtnClose.Text = "Close";
     this.BtnClose.Click += new System.EventHandler(this.BtnClose_Click);
     //
     // ftpc
     //
     this.ftpc.Hostname = "";
     this.ftpc.LocalFolder = "c:\\temp";
     this.ftpc.Password = "";
     this.ftpc.Port = 21;
     this.ftpc.RemoteFolder = "";
     this.ftpc.Type = "A";
     this.ftpc.Username = "";
     this.ftpc.Connected += new FTPCom.FTPEventHandler(this.ftpc_Connected);
     this.ftpc.FTPCommand += new FTPCom.FTPEventHandler(this.ftpc_FTPCommand);
     this.ftpc.Error += new FTPCom.FTPEventHandler(this.ftpc_Error);
     this.ftpc.FileDownloadCompleted += new FTPCom.FTPEventHandler(this.ftpc_FileDownloadCompleted);
     this.ftpc.DirCompleted += new FTPCom.FTPEventHandler(this.ftpc_DirCompleted);
     this.ftpc.Logged += new FTPCom.FTPEventHandler(this.ftpc_Logged);
     this.ftpc.Message += new FTPCom.FTPEventHandler(this.ftpc_Message);
     this.ftpc.FileUploadCompleted += new FTPCom.FTPEventHandler(this.ftpc_FileUploadCompleted);
     this.ftpc.ConnectionTerminated += new FTPCom.FTPEventHandler(this.ftpc_ConnectionTerminated);
     //
     // SharpFTP
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(768, 501);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                   this.BtnClose,
                                                                   this.BTConnect,
                                                                   this.EFPassword,
                                                                   this.Text1,
                                                                   this.EFUsername,
                                                                   this.label2,
                                                                   this.label1,
                                                                   this.CBFTPServer,
                                                                   this.ServerView,
                                                                   this.SplitView,
                                                                   this.LocalView,
                                                                   this.splitter1,
                                                                   this.TextLog,
                                                                   this.toolBar1,
                                                                   this.statusBar1});
     this.Menu = this.mainMenu1;
     this.Name = "SharpFTP";
     this.Text = "Form1";
     this.ResumeLayout(false);
 }
Beispiel #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components          = new System.ComponentModel.Container();
     this.statusBar1          = new System.Windows.Forms.StatusBar();
     this.toolBar1            = new System.Windows.Forms.ToolBar();
     this.TextLog             = new System.Windows.Forms.RichTextBox();
     this.splitter1           = new System.Windows.Forms.Splitter();
     this.LocalView           = new System.Windows.Forms.ListView();
     this.chName              = new System.Windows.Forms.ColumnHeader();
     this.chSize              = new System.Windows.Forms.ColumnHeader();
     this.chType              = new System.Windows.Forms.ColumnHeader();
     this.chModified          = new System.Windows.Forms.ColumnHeader();
     this.ImgListViewLarge    = new System.Windows.Forms.ImageList(this.components);
     this.ImgListViewSmall    = new System.Windows.Forms.ImageList(this.components);
     this.SplitView           = new System.Windows.Forms.Splitter();
     this.ServerView          = new System.Windows.Forms.ListView();
     this.schName             = new System.Windows.Forms.ColumnHeader();
     this.schSize             = new System.Windows.Forms.ColumnHeader();
     this.schType             = new System.Windows.Forms.ColumnHeader();
     this.schModified         = new System.Windows.Forms.ColumnHeader();
     this.contextMenuServer   = new System.Windows.Forms.ContextMenu();
     this.MnuServerNewFolder  = new System.Windows.Forms.MenuItem();
     this.menuItem7           = new System.Windows.Forms.MenuItem();
     this.MenuDownload        = new System.Windows.Forms.MenuItem();
     this.MnuServerRename     = new System.Windows.Forms.MenuItem();
     this.MenuDelete          = new System.Windows.Forms.MenuItem();
     this.menuItem8           = new System.Windows.Forms.MenuItem();
     this.MnuServerProperties = new System.Windows.Forms.MenuItem();
     this.ImgListServerSmall  = new System.Windows.Forms.ImageList(this.components);
     this.mainMenu1           = new System.Windows.Forms.MainMenu(this.components);
     this.menuItem1           = new System.Windows.Forms.MenuItem();
     this.menuItem2           = new System.Windows.Forms.MenuItem();
     this.menuItem3           = new System.Windows.Forms.MenuItem();
     this.menuItem4           = new System.Windows.Forms.MenuItem();
     this.menuItem5           = new System.Windows.Forms.MenuItem();
     this.CBFTPServer         = new System.Windows.Forms.ComboBox();
     this.label1              = new System.Windows.Forms.Label();
     this.label2              = new System.Windows.Forms.Label();
     this.EFUsername          = new System.Windows.Forms.TextBox();
     this.Text1      = new System.Windows.Forms.Label();
     this.EFPassword = new System.Windows.Forms.TextBox();
     this.BTConnect  = new System.Windows.Forms.Button();
     this.BtnClose   = new System.Windows.Forms.Button();
     this.ftpc       = new FTPCom.FTPC();
     this.SuspendLayout();
     //
     // statusBar1
     //
     this.statusBar1.Location = new System.Drawing.Point(0, 479);
     this.statusBar1.Name     = "statusBar1";
     this.statusBar1.Size     = new System.Drawing.Size(768, 22);
     this.statusBar1.TabIndex = 0;
     this.statusBar1.Text     = "statusBar1";
     //
     // toolBar1
     //
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.Location       = new System.Drawing.Point(0, 0);
     this.toolBar1.Name           = "toolBar1";
     this.toolBar1.ShowToolTips   = true;
     this.toolBar1.Size           = new System.Drawing.Size(768, 42);
     this.toolBar1.TabIndex       = 1;
     //
     // TextLog
     //
     this.TextLog.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.TextLog.Location = new System.Drawing.Point(0, 415);
     this.TextLog.Name     = "TextLog";
     this.TextLog.ReadOnly = true;
     this.TextLog.Size     = new System.Drawing.Size(768, 64);
     this.TextLog.TabIndex = 2;
     this.TextLog.Text     = "";
     //
     // splitter1
     //
     this.splitter1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.splitter1.Location = new System.Drawing.Point(0, 412);
     this.splitter1.Name     = "splitter1";
     this.splitter1.Size     = new System.Drawing.Size(768, 3);
     this.splitter1.TabIndex = 3;
     this.splitter1.TabStop  = false;
     //
     // LocalView
     //
     this.LocalView.AllowDrop = true;
     this.LocalView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.chName,
         this.chSize,
         this.chType,
         this.chModified
     });
     this.LocalView.Dock           = System.Windows.Forms.DockStyle.Left;
     this.LocalView.LabelEdit      = true;
     this.LocalView.LargeImageList = this.ImgListViewLarge;
     this.LocalView.Location       = new System.Drawing.Point(0, 42);
     this.LocalView.Name           = "LocalView";
     this.LocalView.Size           = new System.Drawing.Size(121, 370);
     this.LocalView.SmallImageList = this.ImgListViewSmall;
     this.LocalView.TabIndex       = 4;
     this.LocalView.UseCompatibleStateImageBehavior = false;
     this.LocalView.View          = System.Windows.Forms.View.Details;
     this.LocalView.ItemActivate += new System.EventHandler(this.LocalView_ItemActivate);
     this.LocalView.DragDrop     += new System.Windows.Forms.DragEventHandler(this.LocalView_DragDrop);
     this.LocalView.ColumnClick  += new System.Windows.Forms.ColumnClickEventHandler(this.LocalView_ColumnClick);
     this.LocalView.MouseMove    += new System.Windows.Forms.MouseEventHandler(this.LocalView_MouseMove);
     this.LocalView.DragEnter    += new System.Windows.Forms.DragEventHandler(this.LocalView_DragEnter);
     //
     // chName
     //
     this.chName.Text  = "Name";
     this.chName.Width = 120;
     //
     // chSize
     //
     this.chSize.Text = "Size";
     //
     // chType
     //
     this.chType.Text = "Type";
     //
     // chModified
     //
     this.chModified.Text  = "Modified";
     this.chModified.Width = 120;
     //
     // ImgListViewLarge
     //
     this.ImgListViewLarge.ColorDepth       = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.ImgListViewLarge.ImageSize        = new System.Drawing.Size(16, 16);
     this.ImgListViewLarge.TransparentColor = System.Drawing.Color.Transparent;
     //
     // ImgListViewSmall
     //
     this.ImgListViewSmall.ColorDepth       = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.ImgListViewSmall.ImageSize        = new System.Drawing.Size(16, 16);
     this.ImgListViewSmall.TransparentColor = System.Drawing.Color.Transparent;
     //
     // SplitView
     //
     this.SplitView.Location = new System.Drawing.Point(121, 42);
     this.SplitView.Name     = "SplitView";
     this.SplitView.Size     = new System.Drawing.Size(3, 370);
     this.SplitView.TabIndex = 5;
     this.SplitView.TabStop  = false;
     //
     // ServerView
     //
     this.ServerView.AllowDrop = true;
     this.ServerView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.schName,
         this.schSize,
         this.schType,
         this.schModified
     });
     this.ServerView.ContextMenu    = this.contextMenuServer;
     this.ServerView.Dock           = System.Windows.Forms.DockStyle.Fill;
     this.ServerView.LabelEdit      = true;
     this.ServerView.Location       = new System.Drawing.Point(124, 42);
     this.ServerView.Name           = "ServerView";
     this.ServerView.Size           = new System.Drawing.Size(644, 370);
     this.ServerView.SmallImageList = this.ImgListServerSmall;
     this.ServerView.TabIndex       = 6;
     this.ServerView.UseCompatibleStateImageBehavior = false;
     this.ServerView.View             = System.Windows.Forms.View.Details;
     this.ServerView.ItemActivate    += new System.EventHandler(this.ServerView_ItemActivate);
     this.ServerView.AfterLabelEdit  += new System.Windows.Forms.LabelEditEventHandler(this.ServerView_AfterLabelEdit);
     this.ServerView.DragDrop        += new System.Windows.Forms.DragEventHandler(this.ServerView_DragDrop);
     this.ServerView.MouseMove       += new System.Windows.Forms.MouseEventHandler(this.ServerView_MouseMove);
     this.ServerView.MouseDown       += new System.Windows.Forms.MouseEventHandler(this.ServerView_MouseDown);
     this.ServerView.DragEnter       += new System.Windows.Forms.DragEventHandler(this.ServerView_DragEnter);
     this.ServerView.BeforeLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this.ServerView_BeforeLabelEdit);
     //
     // schName
     //
     this.schName.Text  = "Name";
     this.schName.Width = 120;
     //
     // schSize
     //
     this.schSize.Text = "Size";
     //
     // schType
     //
     this.schType.Text = "Type";
     //
     // schModified
     //
     this.schModified.Text = "Modified";
     //
     // contextMenuServer
     //
     this.contextMenuServer.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.MnuServerNewFolder,
         this.menuItem7,
         this.MenuDownload,
         this.MnuServerRename,
         this.MenuDelete,
         this.menuItem8,
         this.MnuServerProperties
     });
     //
     // MnuServerNewFolder
     //
     this.MnuServerNewFolder.Index    = 0;
     this.MnuServerNewFolder.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
     this.MnuServerNewFolder.Text     = "New Folder";
     this.MnuServerNewFolder.Click   += new System.EventHandler(this.MnuServerNewFolder_Click);
     //
     // menuItem7
     //
     this.menuItem7.Index = 1;
     this.menuItem7.Text  = "-";
     //
     // MenuDownload
     //
     this.MenuDownload.Index    = 2;
     this.MenuDownload.Shortcut = System.Windows.Forms.Shortcut.CtrlD;
     this.MenuDownload.Text     = "Download";
     this.MenuDownload.Click   += new System.EventHandler(this.MenuDownload_Click);
     //
     // MnuServerRename
     //
     this.MnuServerRename.Index    = 3;
     this.MnuServerRename.Shortcut = System.Windows.Forms.Shortcut.CtrlR;
     this.MnuServerRename.Text     = "Rename";
     this.MnuServerRename.Click   += new System.EventHandler(this.MnuServerRename_Click);
     //
     // MenuDelete
     //
     this.MenuDelete.Index    = 4;
     this.MenuDelete.Shortcut = System.Windows.Forms.Shortcut.Del;
     this.MenuDelete.Text     = "Delete";
     this.MenuDelete.Click   += new System.EventHandler(this.MenuDelete_Click);
     //
     // menuItem8
     //
     this.menuItem8.Index = 5;
     this.menuItem8.Text  = "-";
     //
     // MnuServerProperties
     //
     this.MnuServerProperties.Index    = 6;
     this.MnuServerProperties.Shortcut = System.Windows.Forms.Shortcut.CtrlP;
     this.MnuServerProperties.Text     = "Properties";
     //
     // ImgListServerSmall
     //
     this.ImgListServerSmall.ColorDepth       = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.ImgListServerSmall.ImageSize        = new System.Drawing.Size(16, 16);
     this.ImgListServerSmall.TransparentColor = System.Drawing.Color.Transparent;
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1
     });
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem2,
         this.menuItem3,
         this.menuItem4,
         this.menuItem5
     });
     this.menuItem1.Text = "File";
     //
     // menuItem2
     //
     this.menuItem2.Index = 0;
     this.menuItem2.Text  = "New";
     //
     // menuItem3
     //
     this.menuItem3.Index = 1;
     this.menuItem3.Text  = "Open...";
     //
     // menuItem4
     //
     this.menuItem4.Index = 2;
     this.menuItem4.Text  = "-";
     //
     // menuItem5
     //
     this.menuItem5.Index = 3;
     this.menuItem5.Text  = "Quit";
     //
     // CBFTPServer
     //
     this.CBFTPServer.Items.AddRange(new object[] {
         "172.22.12.22"
     });
     this.CBFTPServer.Location = new System.Drawing.Point(80, 8);
     this.CBFTPServer.Name     = "CBFTPServer";
     this.CBFTPServer.Size     = new System.Drawing.Size(136, 21);
     this.CBFTPServer.TabIndex = 7;
     this.CBFTPServer.Text     = "172.22.13.150";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 8);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(72, 16);
     this.label1.TabIndex = 8;
     this.label1.Text     = "FTP Server :";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(240, 8);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(64, 16);
     this.label2.TabIndex = 9;
     this.label2.Text     = "Username :"******"EFUsername";
     this.EFUsername.Size     = new System.Drawing.Size(80, 20);
     this.EFUsername.TabIndex = 10;
     this.EFUsername.Text     = "desarrollo";
     //
     // Text1
     //
     this.Text1.Location = new System.Drawing.Point(392, 8);
     this.Text1.Name     = "Text1";
     this.Text1.Size     = new System.Drawing.Size(88, 16);
     this.Text1.TabIndex = 11;
     this.Text1.Text     = "Password :"******"EFPassword";
     this.EFPassword.Size     = new System.Drawing.Size(104, 20);
     this.EFPassword.TabIndex = 12;
     this.EFPassword.Text     = "D3s4rr0ll0";
     //
     // BTConnect
     //
     this.BTConnect.Location = new System.Drawing.Point(592, 8);
     this.BTConnect.Name     = "BTConnect";
     this.BTConnect.Size     = new System.Drawing.Size(64, 24);
     this.BTConnect.TabIndex = 13;
     this.BTConnect.Text     = "Connect";
     this.BTConnect.Click   += new System.EventHandler(this.BTConnect_Click);
     //
     // BtnClose
     //
     this.BtnClose.Location = new System.Drawing.Point(672, 8);
     this.BtnClose.Name     = "BtnClose";
     this.BtnClose.Size     = new System.Drawing.Size(56, 24);
     this.BtnClose.TabIndex = 14;
     this.BtnClose.Text     = "Close";
     this.BtnClose.Click   += new System.EventHandler(this.BtnClose_Click);
     //
     // ftpc
     //
     this.ftpc.Hostname               = "";
     this.ftpc.LocalFolder            = "c:\\temp";
     this.ftpc.Password               = "";
     this.ftpc.Port                   = 21;
     this.ftpc.RemoteFolder           = "";
     this.ftpc.Type                   = "A";
     this.ftpc.Username               = "";
     this.ftpc.Logged                += new FTPCom.FTPEventHandler(this.ftpc_Logged);
     this.ftpc.Error                 += new FTPCom.FTPEventHandler(this.ftpc_Error);
     this.ftpc.Message               += new FTPCom.FTPEventHandler(this.ftpc_Message);
     this.ftpc.Connected             += new FTPCom.FTPEventHandler(this.ftpc_Connected);
     this.ftpc.FTPCommand            += new FTPCom.FTPEventHandler(this.ftpc_FTPCommand);
     this.ftpc.DirCompleted          += new FTPCom.FTPEventHandler(this.ftpc_DirCompleted);
     this.ftpc.FileUploadCompleted   += new FTPCom.FTPEventHandler(this.ftpc_FileUploadCompleted);
     this.ftpc.FileDownloadCompleted += new FTPCom.FTPEventHandler(this.ftpc_FileDownloadCompleted);
     this.ftpc.ConnectionTerminated  += new FTPCom.FTPEventHandler(this.ftpc_ConnectionTerminated);
     //
     // SharpFTP
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(768, 501);
     this.Controls.Add(this.BtnClose);
     this.Controls.Add(this.BTConnect);
     this.Controls.Add(this.EFPassword);
     this.Controls.Add(this.Text1);
     this.Controls.Add(this.EFUsername);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.CBFTPServer);
     this.Controls.Add(this.ServerView);
     this.Controls.Add(this.SplitView);
     this.Controls.Add(this.LocalView);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.TextLog);
     this.Controls.Add(this.toolBar1);
     this.Controls.Add(this.statusBar1);
     this.Menu = this.mainMenu1;
     this.Name = "SharpFTP";
     this.Text = "Form1";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Beispiel #3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.toolBar1 = new System.Windows.Forms.ToolBar();
     this.TextLog = new System.Windows.Forms.RichTextBox();
     this.splitter1 = new System.Windows.Forms.Splitter();
     this.LocalView = new System.Windows.Forms.ListView();
     this.chName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.chSize = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.chType = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.ImgListViewLarge = new System.Windows.Forms.ImageList(this.components);
     this.ImgListViewSmall = new System.Windows.Forms.ImageList(this.components);
     this.SplitView = new System.Windows.Forms.Splitter();
     this.ServerView = new System.Windows.Forms.ListView();
     this.schName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.schSize = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.schType = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.contextMenuServer = new System.Windows.Forms.ContextMenu();
     this.MnuServerNewFolder = new System.Windows.Forms.MenuItem();
     this.menuItem7 = new System.Windows.Forms.MenuItem();
     this.MenuDownload = new System.Windows.Forms.MenuItem();
     this.MnuServerRename = new System.Windows.Forms.MenuItem();
     this.MenuDelete = new System.Windows.Forms.MenuItem();
     this.menuItem8 = new System.Windows.Forms.MenuItem();
     this.MnuServerProperties = new System.Windows.Forms.MenuItem();
     this.ImgListServerSmall = new System.Windows.Forms.ImageList(this.components);
     this.CBFTPServer = new System.Windows.Forms.ComboBox();
     this.label1 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.EFUsername = new System.Windows.Forms.TextBox();
     this.Text1 = new System.Windows.Forms.Label();
     this.EFPassword = new System.Windows.Forms.TextBox();
     this.BTConnect = new System.Windows.Forms.Button();
     this.BtnClose = new System.Windows.Forms.Button();
     this.ftpc = new FTPCom.FTPC();
     this.SuspendLayout();
     //
     // toolBar1
     //
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.Location = new System.Drawing.Point(0, 0);
     this.toolBar1.Name = "toolBar1";
     this.toolBar1.ShowToolTips = true;
     this.toolBar1.Size = new System.Drawing.Size(768, 42);
     this.toolBar1.TabIndex = 1;
     //
     // TextLog
     //
     this.TextLog.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.TextLog.Location = new System.Drawing.Point(0, 351);
     this.TextLog.Name = "TextLog";
     this.TextLog.ReadOnly = true;
     this.TextLog.Size = new System.Drawing.Size(768, 150);
     this.TextLog.TabIndex = 2;
     this.TextLog.Text = "";
     //
     // splitter1
     //
     this.splitter1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.splitter1.Location = new System.Drawing.Point(0, 348);
     this.splitter1.Name = "splitter1";
     this.splitter1.Size = new System.Drawing.Size(768, 3);
     this.splitter1.TabIndex = 3;
     this.splitter1.TabStop = false;
     //
     // LocalView
     //
     this.LocalView.AllowDrop = true;
     this.LocalView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.chName,
     this.chSize,
     this.chType});
     this.LocalView.Dock = System.Windows.Forms.DockStyle.Left;
     this.LocalView.LabelEdit = true;
     this.LocalView.LargeImageList = this.ImgListViewLarge;
     this.LocalView.Location = new System.Drawing.Point(0, 42);
     this.LocalView.Name = "LocalView";
     this.LocalView.Size = new System.Drawing.Size(373, 306);
     this.LocalView.SmallImageList = this.ImgListViewSmall;
     this.LocalView.TabIndex = 4;
     this.LocalView.UseCompatibleStateImageBehavior = false;
     this.LocalView.View = System.Windows.Forms.View.Details;
     this.LocalView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.LocalView_ColumnClick);
     this.LocalView.ItemActivate += new System.EventHandler(this.LocalView_ItemActivate);
     this.LocalView.DragDrop += new System.Windows.Forms.DragEventHandler(this.LocalView_DragDrop);
     this.LocalView.DragEnter += new System.Windows.Forms.DragEventHandler(this.LocalView_DragEnter);
     this.LocalView.MouseMove += new System.Windows.Forms.MouseEventHandler(this.LocalView_MouseMove);
     //
     // chName
     //
     this.chName.Text = "Имя";
     this.chName.Width = 120;
     //
     // chSize
     //
     this.chSize.Text = "Размер";
     //
     // chType
     //
     this.chType.Text = "Тип";
     //
     // ImgListViewLarge
     //
     this.ImgListViewLarge.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.ImgListViewLarge.ImageSize = new System.Drawing.Size(16, 16);
     this.ImgListViewLarge.TransparentColor = System.Drawing.Color.Transparent;
     //
     // ImgListViewSmall
     //
     this.ImgListViewSmall.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.ImgListViewSmall.ImageSize = new System.Drawing.Size(16, 16);
     this.ImgListViewSmall.TransparentColor = System.Drawing.Color.Transparent;
     //
     // SplitView
     //
     this.SplitView.Location = new System.Drawing.Point(373, 42);
     this.SplitView.Name = "SplitView";
     this.SplitView.Size = new System.Drawing.Size(3, 306);
     this.SplitView.TabIndex = 5;
     this.SplitView.TabStop = false;
     //
     // ServerView
     //
     this.ServerView.AllowDrop = true;
     this.ServerView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.schName,
     this.schSize,
     this.schType});
     this.ServerView.ContextMenu = this.contextMenuServer;
     this.ServerView.Dock = System.Windows.Forms.DockStyle.Fill;
     this.ServerView.LabelEdit = true;
     this.ServerView.Location = new System.Drawing.Point(376, 42);
     this.ServerView.Name = "ServerView";
     this.ServerView.Size = new System.Drawing.Size(392, 306);
     this.ServerView.SmallImageList = this.ImgListServerSmall;
     this.ServerView.TabIndex = 6;
     this.ServerView.UseCompatibleStateImageBehavior = false;
     this.ServerView.View = System.Windows.Forms.View.Details;
     this.ServerView.AfterLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this.ServerView_AfterLabelEdit);
     this.ServerView.BeforeLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this.ServerView_BeforeLabelEdit);
     this.ServerView.ItemActivate += new System.EventHandler(this.ServerView_ItemActivate);
     this.ServerView.DragDrop += new System.Windows.Forms.DragEventHandler(this.ServerView_DragDrop);
     this.ServerView.DragEnter += new System.Windows.Forms.DragEventHandler(this.ServerView_DragEnter);
     this.ServerView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ServerView_MouseDown);
     this.ServerView.MouseMove += new System.Windows.Forms.MouseEventHandler(this.ServerView_MouseMove);
     //
     // schName
     //
     this.schName.Text = "Имя";
     this.schName.Width = 120;
     //
     // schSize
     //
     this.schSize.Text = "Размер";
     //
     // schType
     //
     this.schType.Text = "Тип";
     //
     // contextMenuServer
     //
     this.contextMenuServer.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
     this.MnuServerNewFolder,
     this.menuItem7,
     this.MenuDownload,
     this.MnuServerRename,
     this.MenuDelete,
     this.menuItem8,
     this.MnuServerProperties});
     //
     // MnuServerNewFolder
     //
     this.MnuServerNewFolder.Index = 0;
     this.MnuServerNewFolder.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
     this.MnuServerNewFolder.Text = "New Folder";
     this.MnuServerNewFolder.Click += new System.EventHandler(this.MnuServerNewFolder_Click);
     //
     // menuItem7
     //
     this.menuItem7.Index = 1;
     this.menuItem7.Text = "-";
     //
     // MenuDownload
     //
     this.MenuDownload.Index = 2;
     this.MenuDownload.Shortcut = System.Windows.Forms.Shortcut.CtrlD;
     this.MenuDownload.Text = "Download";
     this.MenuDownload.Click += new System.EventHandler(this.MenuDownload_Click);
     //
     // MnuServerRename
     //
     this.MnuServerRename.Index = 3;
     this.MnuServerRename.Shortcut = System.Windows.Forms.Shortcut.CtrlR;
     this.MnuServerRename.Text = "Rename";
     this.MnuServerRename.Click += new System.EventHandler(this.MnuServerRename_Click);
     //
     // MenuDelete
     //
     this.MenuDelete.Index = 4;
     this.MenuDelete.Shortcut = System.Windows.Forms.Shortcut.Del;
     this.MenuDelete.Text = "Delete";
     this.MenuDelete.Click += new System.EventHandler(this.MenuDelete_Click);
     //
     // menuItem8
     //
     this.menuItem8.Index = 5;
     this.menuItem8.Text = "-";
     //
     // MnuServerProperties
     //
     this.MnuServerProperties.Index = 6;
     this.MnuServerProperties.Shortcut = System.Windows.Forms.Shortcut.CtrlP;
     this.MnuServerProperties.Text = "Properties";
     //
     // ImgListServerSmall
     //
     this.ImgListServerSmall.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.ImgListServerSmall.ImageSize = new System.Drawing.Size(16, 16);
     this.ImgListServerSmall.TransparentColor = System.Drawing.Color.Transparent;
     //
     // CBFTPServer
     //
     this.CBFTPServer.Items.AddRange(new object[] {
     "localhost"});
     this.CBFTPServer.Location = new System.Drawing.Point(56, 8);
     this.CBFTPServer.Name = "CBFTPServer";
     this.CBFTPServer.Size = new System.Drawing.Size(136, 21);
     this.CBFTPServer.TabIndex = 7;
     this.CBFTPServer.Text = "192.168.1.187";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(2, 11);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(48, 16);
     this.label1.TabIndex = 8;
     this.label1.Text = "Сервер:";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(198, 11);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(64, 16);
     this.label2.TabIndex = 9;
     this.label2.Text = "Логин:";
     //
     // EFUsername
     //
     this.EFUsername.Location = new System.Drawing.Point(242, 9);
     this.EFUsername.Name = "EFUsername";
     this.EFUsername.Size = new System.Drawing.Size(80, 20);
     this.EFUsername.TabIndex = 10;
     this.EFUsername.Text = "softinstall";
     //
     // Text1
     //
     this.Text1.Location = new System.Drawing.Point(354, 11);
     this.Text1.Name = "Text1";
     this.Text1.Size = new System.Drawing.Size(56, 16);
     this.Text1.TabIndex = 11;
     this.Text1.Text = "Пароль:";
     //
     // EFPassword
     //
     this.EFPassword.Location = new System.Drawing.Point(406, 8);
     this.EFPassword.Name = "EFPassword";
     this.EFPassword.Size = new System.Drawing.Size(104, 20);
     this.EFPassword.TabIndex = 12;
     this.EFPassword.Text = "rexrf";
     //
     // BTConnect
     //
     this.BTConnect.Location = new System.Drawing.Point(526, 6);
     this.BTConnect.Name = "BTConnect";
     this.BTConnect.Size = new System.Drawing.Size(93, 24);
     this.BTConnect.TabIndex = 13;
     this.BTConnect.Text = "Подключиться";
     this.BTConnect.Click += new System.EventHandler(this.BTConnect_Click);
     //
     // BtnClose
     //
     this.BtnClose.Enabled = false;
     this.BtnClose.Location = new System.Drawing.Point(625, 6);
     this.BtnClose.Name = "BtnClose";
     this.BtnClose.Size = new System.Drawing.Size(92, 24);
     this.BtnClose.TabIndex = 14;
     this.BtnClose.Text = "Отключиться";
     this.BtnClose.Click += new System.EventHandler(this.BtnClose_Click);
     //
     // ftpc
     //
     this.ftpc.Hostname = "";
     this.ftpc.LocalFolder = "c:\\temp";
     this.ftpc.Password = "";
     this.ftpc.Port = 21;
     this.ftpc.RemoteFolder = "";
     this.ftpc.Type = "A";
     this.ftpc.Username = "";
     this.ftpc.Connected += new FTPCom.FTPEventHandler(this.ftpc_Connected);
     this.ftpc.Logged += new FTPCom.FTPEventHandler(this.ftpc_Logged);
     this.ftpc.FileDownloadCompleted += new FTPCom.FTPEventHandler(this.ftpc_FileDownloadCompleted);
     this.ftpc.FileUploadCompleted += new FTPCom.FTPEventHandler(this.ftpc_FileUploadCompleted);
     this.ftpc.DirCompleted += new FTPCom.FTPEventHandler(this.ftpc_DirCompleted);
     this.ftpc.Error += new FTPCom.FTPEventHandler(this.ftpc_Error);
     this.ftpc.Message += new FTPCom.FTPEventHandler(this.ftpc_Message);
     this.ftpc.FTPCommand += new FTPCom.FTPEventHandler(this.ftpc_FTPCommand);
     this.ftpc.ConnectionTerminated += new FTPCom.FTPEventHandler(this.ftpc_ConnectionTerminated);
     //
     // SharpFTP
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(768, 501);
     this.Controls.Add(this.BtnClose);
     this.Controls.Add(this.BTConnect);
     this.Controls.Add(this.EFPassword);
     this.Controls.Add(this.Text1);
     this.Controls.Add(this.EFUsername);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.CBFTPServer);
     this.Controls.Add(this.ServerView);
     this.Controls.Add(this.SplitView);
     this.Controls.Add(this.LocalView);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.TextLog);
     this.Controls.Add(this.toolBar1);
     this.Name = "SharpFTP";
     this.Text = "Form1";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Beispiel #4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components          = new System.ComponentModel.Container();
     this.toolBar1            = new System.Windows.Forms.ToolBar();
     this.TextLog             = new System.Windows.Forms.RichTextBox();
     this.splitter1           = new System.Windows.Forms.Splitter();
     this.LocalView           = new System.Windows.Forms.ListView();
     this.chName              = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.chSize              = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.chType              = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.ImgListViewLarge    = new System.Windows.Forms.ImageList(this.components);
     this.ImgListViewSmall    = new System.Windows.Forms.ImageList(this.components);
     this.SplitView           = new System.Windows.Forms.Splitter();
     this.ServerView          = new System.Windows.Forms.ListView();
     this.schName             = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.schSize             = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.schType             = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.contextMenuServer   = new System.Windows.Forms.ContextMenu();
     this.MnuServerNewFolder  = new System.Windows.Forms.MenuItem();
     this.menuItem7           = new System.Windows.Forms.MenuItem();
     this.MenuDownload        = new System.Windows.Forms.MenuItem();
     this.MnuServerRename     = new System.Windows.Forms.MenuItem();
     this.MenuDelete          = new System.Windows.Forms.MenuItem();
     this.menuItem8           = new System.Windows.Forms.MenuItem();
     this.MnuServerProperties = new System.Windows.Forms.MenuItem();
     this.ImgListServerSmall  = new System.Windows.Forms.ImageList(this.components);
     this.CBFTPServer         = new System.Windows.Forms.ComboBox();
     this.label1              = new System.Windows.Forms.Label();
     this.label2              = new System.Windows.Forms.Label();
     this.EFUsername          = new System.Windows.Forms.TextBox();
     this.Text1      = new System.Windows.Forms.Label();
     this.EFPassword = new System.Windows.Forms.TextBox();
     this.BTConnect  = new System.Windows.Forms.Button();
     this.BtnClose   = new System.Windows.Forms.Button();
     this.ftpc       = new FTPCom.FTPC();
     this.SuspendLayout();
     //
     // toolBar1
     //
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.Location       = new System.Drawing.Point(0, 0);
     this.toolBar1.Name           = "toolBar1";
     this.toolBar1.ShowToolTips   = true;
     this.toolBar1.Size           = new System.Drawing.Size(768, 42);
     this.toolBar1.TabIndex       = 1;
     //
     // TextLog
     //
     this.TextLog.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.TextLog.Location = new System.Drawing.Point(0, 351);
     this.TextLog.Name     = "TextLog";
     this.TextLog.ReadOnly = true;
     this.TextLog.Size     = new System.Drawing.Size(768, 150);
     this.TextLog.TabIndex = 2;
     this.TextLog.Text     = "";
     //
     // splitter1
     //
     this.splitter1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.splitter1.Location = new System.Drawing.Point(0, 348);
     this.splitter1.Name     = "splitter1";
     this.splitter1.Size     = new System.Drawing.Size(768, 3);
     this.splitter1.TabIndex = 3;
     this.splitter1.TabStop  = false;
     //
     // LocalView
     //
     this.LocalView.AllowDrop = true;
     this.LocalView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.chName,
         this.chSize,
         this.chType
     });
     this.LocalView.Dock           = System.Windows.Forms.DockStyle.Left;
     this.LocalView.LabelEdit      = true;
     this.LocalView.LargeImageList = this.ImgListViewLarge;
     this.LocalView.Location       = new System.Drawing.Point(0, 42);
     this.LocalView.Name           = "LocalView";
     this.LocalView.Size           = new System.Drawing.Size(373, 306);
     this.LocalView.SmallImageList = this.ImgListViewSmall;
     this.LocalView.TabIndex       = 4;
     this.LocalView.UseCompatibleStateImageBehavior = false;
     this.LocalView.View          = System.Windows.Forms.View.Details;
     this.LocalView.ColumnClick  += new System.Windows.Forms.ColumnClickEventHandler(this.LocalView_ColumnClick);
     this.LocalView.ItemActivate += new System.EventHandler(this.LocalView_ItemActivate);
     this.LocalView.DragDrop     += new System.Windows.Forms.DragEventHandler(this.LocalView_DragDrop);
     this.LocalView.DragEnter    += new System.Windows.Forms.DragEventHandler(this.LocalView_DragEnter);
     this.LocalView.MouseMove    += new System.Windows.Forms.MouseEventHandler(this.LocalView_MouseMove);
     //
     // chName
     //
     this.chName.Text  = "Имя";
     this.chName.Width = 120;
     //
     // chSize
     //
     this.chSize.Text = "Размер";
     //
     // chType
     //
     this.chType.Text = "Тип";
     //
     // ImgListViewLarge
     //
     this.ImgListViewLarge.ColorDepth       = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.ImgListViewLarge.ImageSize        = new System.Drawing.Size(16, 16);
     this.ImgListViewLarge.TransparentColor = System.Drawing.Color.Transparent;
     //
     // ImgListViewSmall
     //
     this.ImgListViewSmall.ColorDepth       = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.ImgListViewSmall.ImageSize        = new System.Drawing.Size(16, 16);
     this.ImgListViewSmall.TransparentColor = System.Drawing.Color.Transparent;
     //
     // SplitView
     //
     this.SplitView.Location = new System.Drawing.Point(373, 42);
     this.SplitView.Name     = "SplitView";
     this.SplitView.Size     = new System.Drawing.Size(3, 306);
     this.SplitView.TabIndex = 5;
     this.SplitView.TabStop  = false;
     //
     // ServerView
     //
     this.ServerView.AllowDrop = true;
     this.ServerView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.schName,
         this.schSize,
         this.schType
     });
     this.ServerView.ContextMenu    = this.contextMenuServer;
     this.ServerView.Dock           = System.Windows.Forms.DockStyle.Fill;
     this.ServerView.LabelEdit      = true;
     this.ServerView.Location       = new System.Drawing.Point(376, 42);
     this.ServerView.Name           = "ServerView";
     this.ServerView.Size           = new System.Drawing.Size(392, 306);
     this.ServerView.SmallImageList = this.ImgListServerSmall;
     this.ServerView.TabIndex       = 6;
     this.ServerView.UseCompatibleStateImageBehavior = false;
     this.ServerView.View             = System.Windows.Forms.View.Details;
     this.ServerView.AfterLabelEdit  += new System.Windows.Forms.LabelEditEventHandler(this.ServerView_AfterLabelEdit);
     this.ServerView.BeforeLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this.ServerView_BeforeLabelEdit);
     this.ServerView.ItemActivate    += new System.EventHandler(this.ServerView_ItemActivate);
     this.ServerView.DragDrop        += new System.Windows.Forms.DragEventHandler(this.ServerView_DragDrop);
     this.ServerView.DragEnter       += new System.Windows.Forms.DragEventHandler(this.ServerView_DragEnter);
     this.ServerView.MouseDown       += new System.Windows.Forms.MouseEventHandler(this.ServerView_MouseDown);
     this.ServerView.MouseMove       += new System.Windows.Forms.MouseEventHandler(this.ServerView_MouseMove);
     //
     // schName
     //
     this.schName.Text  = "Имя";
     this.schName.Width = 120;
     //
     // schSize
     //
     this.schSize.Text = "Размер";
     //
     // schType
     //
     this.schType.Text = "Тип";
     //
     // contextMenuServer
     //
     this.contextMenuServer.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.MnuServerNewFolder,
         this.menuItem7,
         this.MenuDownload,
         this.MnuServerRename,
         this.MenuDelete,
         this.menuItem8,
         this.MnuServerProperties
     });
     //
     // MnuServerNewFolder
     //
     this.MnuServerNewFolder.Index    = 0;
     this.MnuServerNewFolder.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
     this.MnuServerNewFolder.Text     = "New Folder";
     this.MnuServerNewFolder.Click   += new System.EventHandler(this.MnuServerNewFolder_Click);
     //
     // menuItem7
     //
     this.menuItem7.Index = 1;
     this.menuItem7.Text  = "-";
     //
     // MenuDownload
     //
     this.MenuDownload.Index    = 2;
     this.MenuDownload.Shortcut = System.Windows.Forms.Shortcut.CtrlD;
     this.MenuDownload.Text     = "Download";
     this.MenuDownload.Click   += new System.EventHandler(this.MenuDownload_Click);
     //
     // MnuServerRename
     //
     this.MnuServerRename.Index    = 3;
     this.MnuServerRename.Shortcut = System.Windows.Forms.Shortcut.CtrlR;
     this.MnuServerRename.Text     = "Rename";
     this.MnuServerRename.Click   += new System.EventHandler(this.MnuServerRename_Click);
     //
     // MenuDelete
     //
     this.MenuDelete.Index    = 4;
     this.MenuDelete.Shortcut = System.Windows.Forms.Shortcut.Del;
     this.MenuDelete.Text     = "Delete";
     this.MenuDelete.Click   += new System.EventHandler(this.MenuDelete_Click);
     //
     // menuItem8
     //
     this.menuItem8.Index = 5;
     this.menuItem8.Text  = "-";
     //
     // MnuServerProperties
     //
     this.MnuServerProperties.Index    = 6;
     this.MnuServerProperties.Shortcut = System.Windows.Forms.Shortcut.CtrlP;
     this.MnuServerProperties.Text     = "Properties";
     //
     // ImgListServerSmall
     //
     this.ImgListServerSmall.ColorDepth       = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.ImgListServerSmall.ImageSize        = new System.Drawing.Size(16, 16);
     this.ImgListServerSmall.TransparentColor = System.Drawing.Color.Transparent;
     //
     // CBFTPServer
     //
     this.CBFTPServer.Items.AddRange(new object[] {
         "localhost"
     });
     this.CBFTPServer.Location = new System.Drawing.Point(56, 8);
     this.CBFTPServer.Name     = "CBFTPServer";
     this.CBFTPServer.Size     = new System.Drawing.Size(136, 21);
     this.CBFTPServer.TabIndex = 7;
     this.CBFTPServer.Text     = "192.168.1.187";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(2, 11);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(48, 16);
     this.label1.TabIndex = 8;
     this.label1.Text     = "Сервер:";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(198, 11);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(64, 16);
     this.label2.TabIndex = 9;
     this.label2.Text     = "Логин:";
     //
     // EFUsername
     //
     this.EFUsername.Location = new System.Drawing.Point(242, 9);
     this.EFUsername.Name     = "EFUsername";
     this.EFUsername.Size     = new System.Drawing.Size(80, 20);
     this.EFUsername.TabIndex = 10;
     this.EFUsername.Text     = "softinstall";
     //
     // Text1
     //
     this.Text1.Location = new System.Drawing.Point(354, 11);
     this.Text1.Name     = "Text1";
     this.Text1.Size     = new System.Drawing.Size(56, 16);
     this.Text1.TabIndex = 11;
     this.Text1.Text     = "Пароль:";
     //
     // EFPassword
     //
     this.EFPassword.Location = new System.Drawing.Point(406, 8);
     this.EFPassword.Name     = "EFPassword";
     this.EFPassword.Size     = new System.Drawing.Size(104, 20);
     this.EFPassword.TabIndex = 12;
     this.EFPassword.Text     = "rexrf";
     //
     // BTConnect
     //
     this.BTConnect.Location = new System.Drawing.Point(526, 6);
     this.BTConnect.Name     = "BTConnect";
     this.BTConnect.Size     = new System.Drawing.Size(93, 24);
     this.BTConnect.TabIndex = 13;
     this.BTConnect.Text     = "Подключиться";
     this.BTConnect.Click   += new System.EventHandler(this.BTConnect_Click);
     //
     // BtnClose
     //
     this.BtnClose.Enabled  = false;
     this.BtnClose.Location = new System.Drawing.Point(625, 6);
     this.BtnClose.Name     = "BtnClose";
     this.BtnClose.Size     = new System.Drawing.Size(92, 24);
     this.BtnClose.TabIndex = 14;
     this.BtnClose.Text     = "Отключиться";
     this.BtnClose.Click   += new System.EventHandler(this.BtnClose_Click);
     //
     // ftpc
     //
     this.ftpc.Hostname               = "";
     this.ftpc.LocalFolder            = "c:\\temp";
     this.ftpc.Password               = "";
     this.ftpc.Port                   = 21;
     this.ftpc.RemoteFolder           = "";
     this.ftpc.Type                   = "A";
     this.ftpc.Username               = "";
     this.ftpc.Connected             += new FTPCom.FTPEventHandler(this.ftpc_Connected);
     this.ftpc.Logged                += new FTPCom.FTPEventHandler(this.ftpc_Logged);
     this.ftpc.FileDownloadCompleted += new FTPCom.FTPEventHandler(this.ftpc_FileDownloadCompleted);
     this.ftpc.FileUploadCompleted   += new FTPCom.FTPEventHandler(this.ftpc_FileUploadCompleted);
     this.ftpc.DirCompleted          += new FTPCom.FTPEventHandler(this.ftpc_DirCompleted);
     this.ftpc.Error                 += new FTPCom.FTPEventHandler(this.ftpc_Error);
     this.ftpc.Message               += new FTPCom.FTPEventHandler(this.ftpc_Message);
     this.ftpc.FTPCommand            += new FTPCom.FTPEventHandler(this.ftpc_FTPCommand);
     this.ftpc.ConnectionTerminated  += new FTPCom.FTPEventHandler(this.ftpc_ConnectionTerminated);
     //
     // SharpFTP
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(768, 501);
     this.Controls.Add(this.BtnClose);
     this.Controls.Add(this.BTConnect);
     this.Controls.Add(this.EFPassword);
     this.Controls.Add(this.Text1);
     this.Controls.Add(this.EFUsername);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.CBFTPServer);
     this.Controls.Add(this.ServerView);
     this.Controls.Add(this.SplitView);
     this.Controls.Add(this.LocalView);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.TextLog);
     this.Controls.Add(this.toolBar1);
     this.Name = "SharpFTP";
     this.Text = "Form1";
     this.ResumeLayout(false);
     this.PerformLayout();
 }