| 12345678910111213141516171819202122232425 |
- using System.Xml.Linq;
- namespace ModuleBase;
- public interface IModuleContainer
- {
- public string MainReginName { get; }
- void AddModule(string name);
- void AddNavigation(ContainerInfo containerInfo);
- void RequestNavigation(string mainModuleName, string subModuleName);
- void NavigateToDefault();
- }
- public class ContainerInfo(int index, string? name, string moduleName, bool isDefault, Dictionary<int, string> subModules, bool isHidden = false)
- {
- public int Index { get; } = index;
- public string? DisplayName { get; } = name;
- public string ModuleName { get; } = moduleName;
- public bool IsDefault { get; } = isDefault;
- public bool IsHidden { get; } = isHidden;
- public Dictionary<int, string> SubModules { get; } = subModules;
- }
|