public MyBox(System.Windows.Forms.Panel box, string name) : base() { this.name = name; this.box = box; pushDetector = new PushDetector(); swipeDetector = new SwipeDetector(); steadyDetector = new SteadyDetector(); flowRouter = new FlowRouter(); broadcaster = new Broadcaster(); broadcaster.AddListener(pushDetector); broadcaster.AddListener(flowRouter); pushDetector.Push += new PushDetector.PushHandler(pushDetector_Push); steadyDetector.Steady += new SteadyDetector.SteadyHandler(steadyDetector_Steady); swipeDetector.GeneralSwipe += new SwipeDetector.GeneralSwipeHandler(swipeDetector_GeneralSwipe); PrimaryPointCreate += new PrimaryPointCreateHandler(MyBox_PrimaryPointCreate); PrimaryPointDestroy += new PrimaryPointDestroyHandler(MyBox_PrimaryPointDestroy); OnUpdate += new UpdateHandler(MyBox_OnUpdate); }
public MyBox(System.Windows.Forms.Panel box, string name) : base() { this.name = name; this.box = box; pushDetector = new PushDetector(); swipeDetector = new SwipeDetector(); steadyDetector = new SteadyDetector(); flowRouter = new FlowRouter(); broadcaster = new Broadcaster(); broadcaster.AddListener(pushDetector); broadcaster.AddListener(flowRouter); pushDetector.Push += new PushDetector.PushHandler(pushDetector_Push); steadyDetector.Steady += new SteadyDetector.SteadyHandler(steadyDetector_Steady); swipeDetector.GeneralSwipe += new SwipeDetector.GeneralSwipeHandler(swipeDetector_GeneralSwipe); PrimaryPointCreate += new PrimaryPointCreateHandler(MyBox_PrimaryPointCreate); PrimaryPointDestroy += new PrimaryPointDestroyHandler(MyBox_PrimaryPointDestroy); OnUpdate += new UpdateHandler(MyBox_OnUpdate); }