Example #1
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 #2
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;
     }
 }