private void Connecter_Click(object sender, EventArgs e) { OnResponse("Connecting"); m_ftp = new FTP(server.Text); m_ftp.ResponseReceived += new FTPResponseHandler(m_ftp_ResponseReceived); m_ftp.Connected += new FTPConnectedHandler(m_ftp_Connected); m_ftp.BeginConnect(user.Text, password.Text); }
void m_ftp_ResponseReceived(FTP source, FTPResponse Response) { OnResponse(Response.Text); }
void m_ftp_Connected(FTP source) { // when this happens we're ready to send command OnResponse("Connected."); }