IEnumerable<OfficeModule> CreateUmsChildren(IOfficeModule umsModule) { var userModule = new OfficeModule { Title = "Users", Description = "Manage all users", IconFileName = "/Poseidon.BackOffice.Core;component/DesignTime/Resources/User.png", ParentType = typeof(UmsOfficeModule), }; yield return userModule; var userRoleModule = new OfficeModule { Title = "User Roles", Description = "Manage all user roles", IconFileName = "/Poseidon.BackOffice.Core;component/DesignTime/Resources/UserRole.png", ParentType = typeof(UmsOfficeModule), }; yield return userRoleModule; var tokenModule = new OfficeModule { Title = "Tokens", Description = "Manage all tokens", IconFileName = "/Poseidon.BackOffice.Core;component/DesignTime/Resources/Token.png", ParentType = typeof(UmsOfficeModule), }; yield return tokenModule; }
public DesignTimeModulesViewModel() { var root = new OfficeModule(0, "Backoffice", "This is the root", ""); Modules = new List<IOfficeModule> { new OfficeModule(1, "User Management", "Manage user, user rights and user groups", @"pack://*****:*****@"pack://application:,,,/Poseidon.Domain.Pms.Resources;component/Pms.png", root), new OfficeModule(3, "Customer Relationship", "Know your customers", @"pack://*****:*****@"pack://application:,,,/Poseidon.Domain.Ics.Resources;component/Ics.png", root), }; }