Ejemplo n.º 1
0
 public void AsyncStart(Server.CancelDelegate canceller)
 {
     if (state == ButtonState.BUSY)
     {
         return;
     }
     this.canceller = canceller;
     state          = ButtonState.BUSY;
 }
Ejemplo n.º 2
0
 public void AsyncFinish(bool result)
 {
     state     = result ? ButtonState.SUCCESS : ButtonState.FAILURE;
     canceller = null;
 }