示例#1
0
文件: Form1.cs 项目: suifengsigan/FTP
 private void btnClose_Click(object sender, EventArgs e)
 {
     if (EACTFTP != null)
     {
         EACTFTP.CloseFTP();
         EACTFTP = null;
     }
     RefreshUI();
 }
示例#2
0
文件: Form1.cs 项目: suifengsigan/FTP
 private void btnConnect_Click(object sender, EventArgs e)
 {
     try
     {
         EACTFTP = new TOOL.WinSCPFTP(txtIP.Text.Trim(), int.Parse(txtport.Text.ToString()), "", txtUse.Text.Trim(), txtPW.Text.Trim());
         RefreshUI();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }