Ejemplo n.º 1
0
        public ConnectionEntryForm(ClouderSyncPackage _package, string projectRoot = null)
        {
            package        = _package;
            resultMessages = new StringBuilder();
            connectEntry   = new ConnectEntryData();

            if (projectRoot != null)
            {
                projectDirectory = projectRoot;
            }
            InitializeComponent();
            connectEntry.ReadEntry();
            if (projectDirectory != null && projectDirectory != string.Empty)
            {
                connectEntry.ce.localsrcpath = projectDirectory;
            }
            BindControls();
        }
Ejemplo n.º 2
0
        protected void ExecuteInternal()
        {
            SetIsRunning(true);
            if (_cancelTokenSrc != null)
            {
                _cancelToken = _cancelTokenSrc.Token;
            }
            if (_cancelToken.IsCancellationRequested)
            {
                _cancelToken.ThrowIfCancellationRequested();
            }
            SFTPSyncClient client = null;

            ci.ReadEntry();

            Array arrInfo = arrItems;

            ProcessTransfer(arrInfo, ref client, ref ci);
            ClouderSyncPackage.WriteToOutputWindow("Transfer complete" + "\n");
            SetIsRunning(false);
        }