FileSyncScopeFilter scope = new FileSyncScopeFilter();
FileSyncProvider providerA = new FileSyncProvider(Guid.NewGuid(), folderA); FileSyncProvider providerB = new FileSyncProvider(Guid.NewGuid(), folderB);
providerA.DetectChanges(); providerB.DetectChanges();
SyncOrchestrator agent = new SyncOrchestrator(); agent.LocalProvider = providerA; agent.RemoteProvider = providerB; agent.Direction = SyncDirectionOrder.Upload; agent.Synchronize(); label2.Text = DateTime.Now.ToString("dd/MM/yyyy HH:mm"); label2.ForeColor = Color.Red;