Beispiel #1
0
 public override void Init(SfrpOperation op, string src, string dest, long max)
 {
     bar = new ConsoleProgressBar();
     m_max = max;
     m_elapsed = 0;
     m_timer = new System.Timers.Timer(1000);
     m_timer.Start();
     m_timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed);
 }
Beispiel #2
0
 public override void End()
 {
     m_timer.Stop();
     m_timer.Dispose();
     bar.Update(m_value, m_max, "Done in " + m_elapsed + " seconds!");
     bar = null;
 }