Example #1
0
        public HotKeyForm(ActionInfo[] actionsInfos)
        {
            InitializeComponent();

            foreach (var info in actionsInfos) {
                if (!treeActions.Nodes.ContainsKey(info.ActionCategory)) {
                    treeActions.Nodes.Add(new TreeNode() {
                        Text = info.ActionCategory,
                        Name = info.ActionCategory
                    });
                }

                var node = treeActions.Nodes[info.ActionCategory];
                node.Nodes.Add(new TreeNode() {
                    Text = info.ActionName,
                    Name = info.ActionName,
                    Tag = info.Guid
                });
            }
        }
 public void SetActionsInfos(ActionInfo[] actionsInfos)
 {
     _actionsInfos = actionsInfos;
 }
 public ActionInfoAttribute(string guid, string category, string name)
 {
     Information = new ActionInfo(new Guid(guid), category, name);
 }