Beispiel #1
0
 private static SettingDefinition CreateNavigationSetting(string nav, string property, string value)
 {
     return(new SettingDefinition(
                NavigationNames.GetName(nav, property),
                value,
                L($"{nav}{property}"),
                scopes: SettingScopes.Application | SettingScopes.Tenant | SettingScopes.User,
                isVisibleToClients: true));
 }
 private MenuItemDefinition CreateNavigationWithSettings(string name)
 {
     return(new MenuItemDefinition(
                name,
                L(name),
                url: Setting(NavigationNames.GetName(name, NavigationNames.Propertys.Url)),
                icon: Setting(NavigationNames.GetName(name, NavigationNames.Propertys.Icon)),
                isVisible: Setting <bool>(NavigationNames.GetName(name, NavigationNames.Propertys.IsVisible)),
                isEnabled: Setting <bool>(NavigationNames.GetName(name, NavigationNames.Propertys.IsEnabled)),
                requiredPermissionName: Setting(NavigationNames.GetName(name, NavigationNames.Propertys.RequiredPermissionName)),
                order: Setting <int>(NavigationNames.GetName(name, NavigationNames.Propertys.Order))
                ));
 }