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; }
public static void Dispatch(object target, string type, bool cancelable = true, PropagationCallback propagation = null) { Dispatch(new Event(target, type, cancelable, propagation)); }