Ejemplo n.º 1
0
 // Adds a new callback to the event, along with a description of the callback.
 public void AddCallback(InvokedHandler Callback, string description = "")
 {
     if (description != "")
     {
         descriptions.Add(description);
     }
     Invoked += Callback;
 }
Ejemplo n.º 2
0
 public void Unsubscribe(InvokedHandler handler)
 {
     Invoked -= handler;
 }
Ejemplo n.º 3
0
 public void Subscribe(InvokedHandler handler)
 {
     Invoked += handler;
 }
 public FlyoutCommand(string id, InvokedHandler handler)
 {
     Id       = id;
     _handler = handler;
 }
Ejemplo n.º 5
0
 // Adds a new handler to the event.
 public void AddCallback(InvokedHandler callback)
 {
     Invoked += callback;
 }