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); } }
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; } }
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; } }
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(); }
private void TouchNavigatorTool_GestureDetected(object sender, TouchTool.GestureEventArgs e) { switch (e.Gesture) { } }