Exemplo n.º 1
0
        public static DelayedCall CreateAsync(DelayedCall.Callback cb, int milliseconds)
        {
            DelayedCall delayedCall = new DelayedCall();

            DelayedCall.PrepareDCObject(delayedCall, milliseconds, true);
            delayedCall.callback = cb;
            return(delayedCall);
        }
Exemplo n.º 2
0
 public DelayedCall(DelayedCall.Callback cb, int milliseconds) : this()
 {
     DelayedCall.PrepareDCObject(this, milliseconds, false);
     this.callback = cb;
     if (milliseconds > 0)
     {
         this.Start();
     }
 }
Exemplo n.º 3
0
 public DelayedCall(DelayedCall <object> .Callback cb, int milliseconds, object data) : this()
 {
     DelayedCall.PrepareDCObject(this, milliseconds, false);
     this.oldCallback = cb;
     this.oldData     = data;
     if (milliseconds > 0)
     {
         this.Start();
     }
 }
Exemplo n.º 4
0
 public DelayedCall(DelayedCall <object> .Callback cb, object data) : this()
 {
     DelayedCall.PrepareDCObject(this, 0, false);
     this.oldCallback = cb;
     this.oldData     = data;
 }
Exemplo n.º 5
0
 public DelayedCall(DelayedCall.Callback cb) : this()
 {
     DelayedCall.PrepareDCObject(this, 0, false);
     this.callback = cb;
 }