예제 #1
0
 public override void init(int op, String src, String dest, long max)
 {
     bar = new ConsoleProgressBar();
     this.max=max;
     elapsed=0;
     timer=new System.Timers.Timer(1000);
     timer.Start();
     timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed);
 }
예제 #2
0
 public override void end()
 {
     timer.Stop();
     timer.Dispose();
     string note = ("Done in "+elapsed+" seconds!");
     bar.Update((int)this.c, (int)max, note);
     bar=null;
 }