示例#1
0
 /// <summary>
 /// Determines whether this list has the specified mnemonic in its members.
 /// </summary>
 /// <param name="charCode">The mnemonic character.</param>
 /// <returns>
 ///     <c>true</c> if list has the mnemonic; otherwise, <c>false</c>.
 /// </returns>
 protected override bool ListHasMnemonic(char charCode)
 {
     foreach (var item in items)
     {
         if (IsMnemonic(charCode, item.Text))
         {
             SetSelected(items.IndexOf(item));
             return(true);
         }
     }
     return(false);
 }
示例#2
0
 /// <summary>
 /// Determines whether this list has the specified mnemonic in its members.
 /// </summary>
 /// <param name="charCode">The mnemonic character.</param>
 /// <returns>
 ///     <c>true</c> if list has the mnemonic; otherwise, <c>false</c>.
 /// </returns>
 protected override bool ListHasMnemonic(char charCode)
 {
     foreach (RadioButtonListItem item in items)
     {
         if (Control.IsMnemonic(charCode, item.Text))
         {
             SetSelected(items.IndexOf(item));
             return(true);
         }
     }
     return(false);
 }