Beispiel #1
0
        // Enhance JohnT: need to verify that sort sequence is current.
        private bool RestoreSortSequence()
        {
            var pathname = GetClerkPersistPathname();

            if (!File.Exists(pathname))
            {
                return(false);
            }
            var watch = new Stopwatch();

            watch.Start();
            var result = Clerk.RestoreListFrom(pathname);

            watch.Stop();
            Debug.WriteLine("Restoring clerk " + pathname + " took " + watch.ElapsedMilliseconds + " ms.");
            return(result);
        }