public DirectorySynchronizeOperation(DirectorySynchronizeResult syncRes, IDirectoryViewItem[] items, FileSystemBase leftSystem, FileSystemBase rightSystem) : base(items, leftSystem) { SyncResult = syncRes; LeftSystem = leftSystem; RightSystem = rightSystem; OperationName = "Synchronizacja katalogów"; }
private void bSynchronize_Click(object sender, RoutedEventArgs e) { if (comparisonResult == null) { return; } SyncResult = new DirectorySynchronizeResult(new List <DirectoryComparison>(), LeftDir, RightDir); foreach (DirectoryComparison comp in comparisonResult) { if (comp.Synchronize) { SyncResult.Comparison.Add(comp); } } DialogResult = true; }
private void bSynchronize_Click(object sender, RoutedEventArgs e) { if (comparisonResult == null) return; SyncResult = new DirectorySynchronizeResult(new List<DirectoryComparison>(), LeftDir, RightDir); foreach (DirectoryComparison comp in comparisonResult) if (comp.Synchronize) SyncResult.Comparison.Add(comp); DialogResult = true; }