예제 #1
0
        // File Upload button
        private void btn_fileup_Click(object sender, EventArgs e)
        {
            bool           bret    = true;
            SyncFtpPassive s_ftp_p = new SyncFtpPassive();  // 独自 Ftp処理クラス生成

            // 1ファイルUpload要求
            bret = s_ftp_p.FtpOneFileUp(txtBox_name.Text, txtBox_pass.Text, txtBox_up_uri.Text, txtBox_up_local.Text);
            if (bret == false)
            {
                MessageBox.Show(s_ftp_p.GetLastErrStr(), "err", 0);
            }
            else
            {
                MessageBox.Show("FtpUpOK.", "msg", 0);
            }
        }
예제 #2
0
        // File Upload button
        private void btn_fileup_Click(object sender, EventArgs e)
        {
            bool bret = true;
            SyncFtpPassive s_ftp_p = new SyncFtpPassive();  // 独自 Ftp処理クラス生成

            // 1ファイルUpload要求
            bret = s_ftp_p.FtpOneFileUp(txtBox_name.Text, txtBox_pass.Text, txtBox_up_uri.Text, txtBox_up_local.Text);
            if (bret == false)
            {
                MessageBox.Show(s_ftp_p.GetLastErrStr(), "err", 0);
            }
            else
            {
                MessageBox.Show("FtpUpOK.", "msg", 0);
            }
        }