Ejemplo n.º 1
0
        public ObjectEditor()
        {
            InitializeComponent();

            ObjectTree      = new ObjectEditorTree(this);
            ObjectTree.Dock = DockStyle.Fill;
            stPanel1.Controls.Add(ObjectTree);
        }
Ejemplo n.º 2
0
        public ObjectEditor(IFileFormat FileFormat)
        {
            InitializeComponent();

            if (FileFormat is IArchiveFile)
            {
                /* ObjectList = new ObjectEditorList();
                 * ObjectList.Dock = DockStyle.Fill;
                 * stPanel1.Controls.Add(ObjectList);
                 * ObjectList.FillList((IArchiveFile)FileFormat);*/

                ObjectTree      = new ObjectEditorTree(this);
                ObjectTree.Dock = DockStyle.Fill;
                stPanel1.Controls.Add(ObjectTree);
                AddIArchiveFile(FileFormat);
            }
            else
            {
                ObjectTree      = new ObjectEditorTree(this);
                ObjectTree.Dock = DockStyle.Fill;
                stPanel1.Controls.Add(ObjectTree);
                AddNode((TreeNode)FileFormat);
            }
        }