Example #1
0
        protected override void GenerateMenu()
        {
            var views = typeof(CompanyLookupListView).Assembly.GetTypes()
                        .Where(x => string.Equals(x.Namespace, typeof(CompanyLookupListView).Namespace) &&
                               x.Name.Contains("LookupListView")).OrderBy(x => x.DesignationSingle()).ToList();

            foreach (var view in views)
            {
                //добавление видов в соответствии с правами доступа
                if (view.GetAllowEditRoles().Contains(GlobalAppProperties.User.RoleCurrent))
                {
                    Items.AddToNavigate(view);
                }
            }
        }