mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
732 B
30 lines
732 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Volo.Abp.DependencyInjection;
|
|
|
|
namespace Volo.Abp.SettingManagement.Blazor;
|
|
|
|
public class SettingComponentCreationContext : IServiceProviderAccessor
|
|
{
|
|
public IServiceProvider ServiceProvider { get; }
|
|
|
|
public List<SettingComponentGroup> Groups { get; private set; }
|
|
|
|
public SettingComponentCreationContext(IServiceProvider serviceProvider)
|
|
{
|
|
ServiceProvider = serviceProvider;
|
|
|
|
Groups = new List<SettingComponentGroup>();
|
|
}
|
|
|
|
public void Normalize()
|
|
{
|
|
Order();
|
|
}
|
|
|
|
private void Order()
|
|
{
|
|
Groups = Groups.OrderBy(item => item.Order).ThenBy(item => item.DisplayName).ToList();
|
|
}
|
|
}
|
|
|