Exemplo n.º 1
0
    public RulesControl()
    {
        RobustXamlLoader.Load(this);
        IoCManager.InjectDependencies(this);

        AddChild(new InfoSection(Loc.GetString("ui-rules-header"),
                                 _resourceManager.ContentFileReadAllText($"/Server Info/Rules.txt"), true));
    }
 private void AddSection(Info info, string title, string path, bool markup = false)
 {
     info.InfoContainer.AddChild(new InfoSection(title,
                                                 _resourceManager.ContentFileReadAllText($"/Server Info/{path}"), markup));
 }