private void InitTouchTool() { if (this.m_TouchNavigatorTool == null) { this.m_TouchNavigatorTool = new TouchTool(this); this.m_TouchNavigatorTool.MouseMoveDetected += new TouchTool.MouseMoveDetectedHandler(this.TouchNavigatorTool_MouseMoveDetected); } }
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; } }