Example #1
0
        private void BtnImport_Click(object sender, EventArgs e)
        {
            object importedData = FileExport.import(FileIO.fileType.model);

            if (importedData != null)
            {
                renderer.models.model.AddRange((List <RenderBase.OModel>)importedData);
                foreach (RenderBase.OModel model in (List <RenderBase.OModel>)importedData)
                {
                    ModelList.addItem(model.name);
                }
                ModelList.Refresh();
            }
        }
Example #2
0
        private void BtnImport_Click(object sender, System.EventArgs e)
        {
            object importedData = FileExport.import(FileIO.fileType.texture);

            if (importedData != null)
            {
                if (renderer != null)
                {
                    renderer.addTextureRange((List <RenderBase.OTexture>)importedData);
                }

                foreach (RenderBase.OTexture texture in (List <RenderBase.OTexture>)importedData)
                {
                    OList.listItemGroup item = new OList.listItemGroup();
                    item.columns.Add(new OList.listItem(null, texture.texture));
                    item.columns.Add(new OList.listItem(texture.name));
                    TextureList.addItem(item);
                }

                TextureList.Refresh();
            }
        }