Ejemplo n.º 1
0
 private void wait(completeCallback callback)
 {
     /*Just waits until the Ready flag is set*/
     System.Windows.Forms.Timer tmr = new System.Windows.Forms.Timer();
     tmr.Interval = 100;
     tmr.Tick    += delegate(object sender, EventArgs e) {
         if (p_Ready)
         {
             tmr.Stop();
             callback();
         }
     };
     tmr.Start();
 }
Ejemplo n.º 2
0
 private void fadeOut(float vel, int speed, completeCallback callback)
 {
     System.Windows.Forms.Timer tmr = new System.Windows.Forms.Timer();
     tmr.Interval = speed;
     tmr.Start();
     tmr.Tick += delegate(object sender, EventArgs e) {
         Opacity -= vel;
         if (Opacity <= 0)
         {
             tmr.Stop();
             callback();
             return;
         }
     };
 }
Ejemplo n.º 3
0
 public HttpFileWriter(completeCallback cb)
 {
     Callback = cb;
 }
Ejemplo n.º 4
0
 private void wait(completeCallback callback)
 {
     /*Just waits until the Ready flag is set*/
     System.Windows.Forms.Timer tmr = new System.Windows.Forms.Timer();
     tmr.Interval = 100;
     tmr.Tick += delegate(object sender, EventArgs e) {
         if (p_Ready) {
             tmr.Stop();
             callback();
         }
     };
     tmr.Start();
 }
Ejemplo n.º 5
0
 private void fadeOut(float vel, int speed, completeCallback callback)
 {
     System.Windows.Forms.Timer tmr = new System.Windows.Forms.Timer();
     tmr.Interval = speed;
     tmr.Start();
     tmr.Tick += delegate(object sender, EventArgs e) {
         Opacity -= vel;
         if (Opacity <= 0) {
             tmr.Stop();
             callback();
             return;
         }
     };
 }