예제 #1
0
 static void IndexBuilder_NodeIndexed(object sender, NodeIndexedEvenArgs e)
 {
     if (_count == 0)
     {
         Console.WriteLine("ok.");
         Console.WriteLine("Progress:");
         Console.WriteLine(_progressHead);
         _count++;
     }
     else if (_count < _versionCount - 1)
     {
         var p = ++_count / _factor;
         p = Math.Floor(p);
         var progress = Convert.ToInt32(p);
         if (progress == _progress)
         {
             return;
         }
         while (_progress < progress)
         {
             _progress++;
             Console.Write('|');
         }
     }
     else
     {
         Console.WriteLine('|');
         Console.WriteLine();
         Console.WriteLine("Finalizing");
     }
 }
예제 #2
0
        private void Populator_NodeIndexed(object sender, NodeIndexedEvenArgs e)
        {
            _count++;

            if (_count % _factor == 0)
            {
                _context.Console.Write("|");
            }
        }
예제 #3
0
        //================================================================================================================= Logger

        private static void Populator_NodeIndexed(object sender, NodeIndexedEvenArgs e)
        {
            LogWriteLine(e.Path);
        }
예제 #4
0
 private void Populator_NodeIndexed(object sender, NodeIndexedEvenArgs e)
 {
     _count++;
 }