Пример #1
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;
            }
Пример #2
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);
 }
Пример #3
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);
 }
Пример #4
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;
 }