Example #1
0
 private void InitTouchTool()
 {
     if (this.m_TouchNavigatorTool == null)
     {
         this.m_TouchNavigatorTool = new TouchScrolling.TouchTool(this);
         this.m_TouchNavigatorTool.MouseMoveEnded    += new EventHandler(this.TouchNavigatorTool_MouseMoveEnded);
         this.m_TouchNavigatorTool.MouseMoveDetected += new TouchScrolling.TouchTool.MouseMoveDetectedHandler(this.TouchNavigatorTool_MouseMoveDetected);
     }
 }
Example #2
0
 private void DeinitTouchTool()
 {
     if (this.m_TouchNavigatorTool != null)
     {
         this.m_TouchNavigatorTool.MouseMoveEnded    -= new EventHandler(this.TouchNavigatorTool_MouseMoveEnded);
         this.m_TouchNavigatorTool.MouseMoveDetected -= new TouchScrolling.TouchTool.MouseMoveDetectedHandler(this.TouchNavigatorTool_MouseMoveDetected);
         this.m_TouchNavigatorTool.ParentControl      = null;
         this.m_TouchNavigatorTool.Dispose();
         this.m_TouchNavigatorTool = null;
     }
 }
Example #3
0
 private void InitTouchTool()
 {
     if (this.m_TouchNavigatorTool == null)
     {
         this.m_TouchNavigatorTool = new TouchTool(this);
         this.m_TouchNavigatorTool.MouseMoveDetected += new TouchTool.MouseMoveDetectedHandler(this.TouchNavigatorTool_MouseMoveDetected);
     }
 }
Example #4
0
 private void DeinitTouchTool()
 {
     if (this.m_TouchNavigatorTool != null)
     {
         this.m_TouchNavigatorTool.MouseMoveDetected -= new TouchTool.MouseMoveDetectedHandler(this.TouchNavigatorTool_MouseMoveDetected);
         this.m_TouchNavigatorTool.ParentControl = null;
         this.m_TouchNavigatorTool.Dispose();
         this.m_TouchNavigatorTool = null;
     }
 }
Example #5
0
 private void TouchNavigatorTool_MouseMoveDetected(object sender, TouchTool.MouseMoveEventArgs e)
 {
     if (this.m_DockType == ToolbarDockType.Horizontal)
     {
         this.ScrollShift += e.MoveX;
     }
     else
     {
         this.ScrollShift += e.MoveY;
     }
     this.Refresh();
 }
Example #6
0
 private void TouchNavigatorTool_GestureDetected(object sender, TouchTool.GestureEventArgs e)
 {
     switch (e.Gesture)
     {
     }
 }