コード例 #1
0
 public DirectorySynchronizeOperation(DirectorySynchronizeResult syncRes, IDirectoryViewItem[] items, FileSystemBase leftSystem, FileSystemBase rightSystem)
     : base(items, leftSystem)
 {
     SyncResult = syncRes;
     LeftSystem = leftSystem;
     RightSystem = rightSystem;
     OperationName = "Synchronizacja katalogów";
 }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
        }