/// <summary>
 /// Determines whether the specified o item is current.
 /// </summary>
 /// <param name="oItem">The o item.</param>
 /// <returns>
 ///     <c>true</c> if the specified o item is current; otherwise, <c>false</c>.
 /// </returns>
 public virtual bool IsCurrent(SuckerMenuItem oItem)
 {
     return(System.Web.HttpContext.Current.Request.Url.ToString().ToLower().IndexOf(oItem.Link.ToLower()) >= 0);
 }
Beispiel #2
0
 /// <summary>
 /// Determines whether the specified o item is current.
 /// </summary>
 /// <param name="oItem">The o item.</param>
 /// <returns>
 /// 	<c>true</c> if the specified o item is current; otherwise, <c>false</c>.
 /// </returns>
 public virtual bool IsCurrent(SuckerMenuItem oItem)
 {
     return System.Web.HttpContext.Current.Request.Url.ToString().ToLower().IndexOf(oItem.Link.ToLower()) >= 0;
 }