Exemple #1
0
        private void LoadFtpControl()
        {
            _ftpServer             = "ftp://waws-prod-sg1-001.ftp.azurewebsites.windows.net";
            _userName              = @"MBDevAsiaAPI2\RSMahesh";
            _password              = "******";
            _localSourceDirectory  = @"D:\GitRepo\MediaValetAPI\MediaValet.Api.IISHost\bin";
            _remoteTargetDirectory = "site/wwwroot/Test/";

            _ApiTransferControl = new FTPControl.FTP(
                _ftpServer,
                _userName,
                _password,
                _remoteTargetDirectory,
                _localSourceDirectory);

            _ApiTransferControl.Dock = DockStyle.Fill;
            tabControl1.TabPages[0].Controls.Add(_ApiTransferControl);


            _ftpServer             = "ftp://waws-prod-sg1-001.ftp.azurewebsites.windows.net";
            _userName              = @"MBDevAsiaAPI2\RSMahesh";
            _password              = "******";
            _localSourceDirectory  = @"D:\GitRepo\MediaValetAPI\MediaValet.WebJobs.EntityChangeListener\bin\Debug";
            _remoteTargetDirectory = "site/wwwroot/Test1/";

            _WebJobTransferControl = new FTPControl.FTP(
                _ftpServer,
                _userName,
                _password,
                _remoteTargetDirectory,
                _localSourceDirectory);

            _WebJobTransferControl.Dock = DockStyle.Fill;
            tabControl1.TabPages[1].Controls.Add(_WebJobTransferControl);
        }
Exemple #2
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            _ftpServer             = "ftp://waws-prod-sg1-001.ftp.azurewebsites.windows.net";
            _userName              = @"MBDevAsiaAPI2\RSMahesh";
            _password              = "******";
            _localSourceDirectory  = @"D:\GitRepo\MediaValetAPI\MediaValet.Api.IISHost\bin";
            _remoteTargetDirectory = "site/wwwroot/Test/";

            var ed = new FTPControl.FTP(
                _ftpServer,
                _userName,
                _password,
                _remoteTargetDirectory,
                _localSourceDirectory);

            ed.Dock = DockStyle.Fill;
            panelFTP.Controls.Add(ed);
        }