Exemple #1
0
        private void LoadAnimationEntry(BxlanPaiEntry entry, TreeNode root)
        {
            var nodeEntry = new GroupAnimWrapper(entry.Name)
            {
                Tag = entry
            };

            if (root != null)
            {
                root.Nodes.Add(nodeEntry);
            }
            else
            {
                treeView1.Nodes.Add(nodeEntry);
            }

            for (int i = 0; i < entry.Tags.Count; i++)
            {
                var nodeTag = new GroupWrapper(entry.Tags[i].Type)
                {
                    Tag = entry.Tags[i]
                };
                nodeEntry.Nodes.Add(nodeTag);
                for (int j = 0; j < entry.Tags[i].Entries.Count; j++)
                {
                    LoadTagEntry(entry.Tags[i].Entries[j], nodeTag, j);
                }
            }
        }
Exemple #2
0
            private void AddGroup(object sender, EventArgs e)
            {
                AddAnimGroupDialog dlg = new AddAnimGroupDialog(bxlanPai, ParentLayout);

                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    var entry     = dlg.AddEntry();
                    var nodeEntry = new GroupAnimWrapper(entry.Name)
                    {
                        Tag = entry
                    };
                    Nodes.Add(nodeEntry);
                }
            }