Esempio n. 1
0
 public Event(object target, string type, bool cancelable = true, PropagationCallback propagation = null, object currentTarget = null)
 {
     this.target        = target;
     this.currentTarget = currentTarget ?? target;
     this.type          = type;
     this.cancelable    = cancelable;
     this.propagation   = propagation;
 }
Esempio n. 2
0
 public static void Dispatch(object target, string type, bool cancelable = true, PropagationCallback propagation = null)
 {
     Dispatch(new Event(target, type, cancelable, propagation));
 }