Esempio n. 1
0
 public BreadcrumbNode(BreadcrumbAttribute attr)
 {
     Title = attr.Title;
     string[] tmp = attr.Action.Split('.');
     Controller = tmp[0];
     Action     = tmp[1];
     CacheTitle = attr.CacheTitle;
 }
 public BreadcrumbNode(BreadcrumbAttribute attr)
 {
     _originTitle = attr.Title;
     Title        = attr.Title;
     string[] tmp = attr.Action.Split('.');
     Controller = tmp[0];
     Action     = tmp[1];
     CacheTitle = attr.CacheTitle;
     OverwriteTitleOnExactMatch = attr.OverwriteOnExactMatch;
 }
 public BreadcrumbNode(BreadcrumbAttribute attr)
 {
     _originTitle = attr.Title;
     Title        = attr.Title;
     string[] tmp = attr.Action.Split('.');
     Controller = tmp[0];
     Action     = tmp[1];
     CacheTitle = attr.CacheTitle;
     OverwriteTitleOnExactMatch = attr.OverwriteOnExactMatch;
     IconClasses = attr.IconClasses;
     RouteValues = attr.AreaName != null ? new { area = attr.AreaName } : null;
 }