Пример #1
0
 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);
 }
Пример #2
0
 void m_ftp_ResponseReceived(FTP source, FTPResponse Response)
 {
     OnResponse(Response.Text);
 }
Пример #3
0
 void m_ftp_Connected(FTP source)
 {
     // when this happens we're ready to send command
     OnResponse("Connected.");
 }