示例#1
0
 public IGesture GetNewestGestureSample(string gestureName)
 {
     return(String.IsNullOrEmpty(gestureName) ? null : Gestures.LastOrDefault(g => String.Equals(g.Name, gestureName, StringComparison.Ordinal)));
 }
示例#2
0
 public IGesture GetNewestGestureSample(string GestureName)
 {
     return(Gestures.LastOrDefault(g => g.Name.ToLower() == GestureName.Trim().ToLower()));
 }