Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I would like to be able to pass groups with nodes and attributes already in. #43

Open
Rickrat opened this issue Apr 18, 2021 · 1 comment

Comments

@Rickrat
Copy link

Rickrat commented Apr 18, 2021

This is an awesome piece of software! I've been waiting for someone to make it easier to edit projects.

I have some small requests: Make it a little bit more object oriented. I would love to load a project and get a list of sections with nodes and attributes populated, and when I create a fresh project, I create the sections, fill in the nodes/attributes and pass the section on to your to be able to update the xml.

A couple classes like this might do:

    using System.Collections.Generic;

    public partial class GroupWithNodes
    {
        public GroupWithNodes()
        {
            Nodes = new List<GroupNode>();
            Attributes = new List<GroupNode>();
        }

        public string Group { get; set; }

        public List<GroupNode> Nodes { get; set; }

        public List<GroupNode> Attributes { get; set; }
    }

    public partial class GroupNode
    {
        public GroupNode()
        {
            Attributes = new List<GroupNode>();
        }

        public string Name { get; set; }
        public string Value { get; set; }

        public List<GroupNode> Attributes { get; set; }
    }

Thanks,

Rick

@Rickrat
Copy link
Author

Rickrat commented Apr 18, 2021

Also, you can use the Label attribute with groups, it would be handy to get a group by label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant