private void ShortcutsCollection_GestureDetected(object sender, Resco.Controls.OutlookControls.GestureEventArgs e) { switch (e.Gesture) { case OsbTouchTool.GestureType.Left: if ((this.SelectedIndex - 1) < 0) { break; } this.SelectedIndex--; return; case OsbTouchTool.GestureType.Right: if ((this.SelectedIndex + 1) < this.Groups.Count) { this.SelectedIndex++; } break; default: return; } }
private void OnMouseGestureDetected(OsbTouchTool.GestureType gestureType) { if (GestureDetected != null) { Resco.Controls.OutlookControls.GestureEventArgs e = new Resco.Controls.OutlookControls.GestureEventArgs(gestureType); GestureDetected(this, e); } }