Beispiel #1
0
        private IEnumerable<IEnumerable<MenuItem>> GetSources()
        {
            foreach (var provider in _providers)
            {
                IEnumerable<MenuItem> items;
                NavigationBuilder builder = new NavigationBuilder();
                provider.GetNavigation(builder);
                items = builder.Build();

                yield return items;
            }
        }
Beispiel #2
0
 public void GetNavigation(NavigationBuilder builder)
 {
     builder.Add("订单管理", "10", x => x.Action("Index", "Order"));
 }
Beispiel #3
0
 public void GetNavigation(NavigationBuilder builder)
 {
     builder.Add("合同管理", "20", x => x.Action("Index", "Contract"));
 }