예제 #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.");
 }