public GestureControl()
{
InitializeComponent();
SetStyle( ControlStyles.AllPaintingInWmPaint |
ControlStyles.UserPaint |
ControlStyles.ResizeRedraw |
ControlStyles.OptimizedDoubleBuffer, true );
// Subscribe to all the touch events
_gesture = new GestureListener( this );
_gesture.Pan += OnPan;
_gesture.PressAndTap += OnPressAndTap;
_gesture.Rotate += OnRotate;
_gesture.TwoFingerTap += OnTwoFingerTap;
_gesture.Zoom += OnZoom;
m_image = Properties.Resources.icon;
}