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; }
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"; } }