Exemple #1
0
 public void Test1()
 {
     isEnded = new AutoResetEvent(false);
     FolderDiff fld = new FolderDiff("e:\\temp\\b1","e:\\temp\\b2");
     fld.DoCompare(onStatus, onComplete  );
     isEnded.WaitOne();
     string fn = fld.ItemsAll[0].FullName;
 }
Exemple #2
0
        public void Test2()
        {
            FolderDiff fld = new FolderDiff("e:\\temp\\b1","e:\\temp\\b2");
            System.Diagnostics.Stopwatch st=  System.Diagnostics.Stopwatch.StartNew();

            int cnt = fld.GetFolderCount("e:\\temp\\b1");
            st.Stop();
            Console.WriteLine(st.ElapsedMilliseconds);
        }
Exemple #3
0
        private void btnCompare_Click(object sender, RoutedEventArgs e)
        {
            if (btnCompare.Content.ToString() == "Compare")
            {
                fld = new FolderDiff(txtSrc.Text, txtDest.Text);
                btnCompare.Content = "Cancel";
                listView1.Items.Clear();
                fld.DoCompare(OnStatusUpdate, OnComplete);
            }
            else
            {
                if (fld != null)
                {
                    fld.Stop();

                }
                btnCompare.Content = "Compare";

            }
        }