private void BTConnect_Click(object sender, System.EventArgs e) { ftpc.Username = EFUsername.Text; ftpc.Password = EFPassword.Text; ftpc.Hostname = CBFTPServer.Text; ftpc.Connect(); }
private void BTConnect_Click(object sender, System.EventArgs e) { this.Cursor = Cursors.WaitCursor; ftpc.Username = EFUsername.Text; ftpc.Password = EFPassword.Text; ftpc.Hostname = CBFTPServer.Text; if (ftpc.Connect()) { BtnClose.Enabled = true; BTConnect.Enabled = false; } }