コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Gesture"/> class.
 /// </summary>
 /// <param name="stroke1">The first keystroke to add.</param>
 public Gesture(Keystroke stroke1)
     : this()
 {
     _keystrokes.Insert(0, stroke1);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Gesture"/> class.
 /// </summary>
 /// <param name="stroke1">The first keystroke to add.</param>
 /// <param name="stroke2">The second keystroke to add.</param>
 public Gesture(Keystroke stroke1, Keystroke stroke2)
     : this(stroke1)
 {
     _keystrokes.Insert(0, stroke2);
 }
コード例 #3
0
ファイル: Shortcuts.cs プロジェクト: Zebra/iFactr-Android
 /// <summary>
 /// Adds a keystroke and a link to the collection of shortcuts.
 /// </summary>
 /// <param name="key">The keys to press to initiate the navigation.</param>
 /// <param name="value">The link to navigate to when the keys are pressed.</param>
 public void Add(Keystroke key, Link value)
 {
     Add(new Gesture(key), value);
 }