private void btnClose_Click(object sender, EventArgs e) { if (EACTFTP != null) { EACTFTP.CloseFTP(); EACTFTP = null; } RefreshUI(); }
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); } }