示例#1
0
 /// <summary>
 /// Initializes a new instance of the <strong>ChordModifier</strong> using data
 /// provided by another instance.
 /// </summary>
 public ChordModifier(ChordModifier chordModifier)
 {
     this.altModifier     = chordModifier.altModifier;
     this.controlModifier = chordModifier.controlModifier;
     this.shiftModifier   = chordModifier.shiftModifier;
 }
示例#2
0
 public static ChordModifier GetModifiers(Keys pressedKey)
 {
     return(ChordModifier.GetModifiers(new ChordModifier(), pressedKey));
 }
示例#3
0
        /// <summary>
        /// Creates new ChordModifier instance based on a Keys input value
        /// </summary>
        /// <param name="pressedKey">Keys input value</param>
        /// <returns>ChordModifier instance</returns>
        public static ChordModifier GetModifiers(Keys pressedKey)
        {
            ChordModifier returnModifier = new ChordModifier();

            return(GetModifiers(returnModifier, pressedKey));
        }