Esempio n. 1
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);
            }

            if (FileFormat is ITextureContainer)
            {
                ObjectTree.LoadGenericTextureIcons((ITextureContainer)FileFormat);
            }
        }
Esempio n. 2
0
        public ObjectEditor()
        {
            InitializeComponent();

            ObjectTree      = new ObjectEditorTree(this);
            ObjectTree.Dock = DockStyle.Fill;
            stPanel1.Controls.Add(ObjectTree);
        }