Ejemplo n.º 1
0
        private void sBwFetchlist()
        {
            if (Engine.ConfigUploaders.FTPAccountList2 != null)
            {
                mAcc = Engine.ConfigUploaders.FTPAccountList2[Engine.ConfigUploaders.FTPSelectedImage];
            }

            bwRemoteViewer.ReportProgress((int)RemoteViewerTask.ProgressType.UPDATE_STATUS_BAR_TEXT,
                string.Format("Fetching files from {0}", mAcc.Name));

            if (mAcc != null && !string.IsNullOrEmpty(mAcc.Host))
            {
                FTPOptions fopt = new FTPOptions();
                fopt.Account = mAcc;
                fopt.ProxySettings = Adapter.CheckProxySettings().GetWebProxy;
                mFTP = new FTPAdapter(fopt);
                List<string> files = FetchList();
                if (files.Count > 0)
                {
                    sBwViewFile(files[0]);
                }
            }
        }
Ejemplo n.º 2
0
 public FTPAdapter(FTPOptions options)
 {
     Options = options;
 }
Ejemplo n.º 3
0
 public FTPAdapter(FTPOptions options)
 {
     this.Options = options;
 }
Ejemplo n.º 4
0
 public FTPAdapter(FTPOptions options)
 {
     Options = options;
 }
Ejemplo n.º 5
0
 public FTPAdapter(FTPOptions options)
 {
     this.Options = options;
 }