private void updateList(List <RenderBase.OTexture> textures)
 {
     TextureList.flush();
     TextureList.addColumn(new OList.columnHeader(128, "#"));
     TextureList.addColumn(new OList.columnHeader(128, "Name"));
     foreach (RenderBase.OTexture texture in textures)
     {
         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();
 }
 public void launch(object data)
 {
     container = (OContainer)data;
     FileList.addColumn(new OList.columnHeader(384, "Name"));
     FileList.addColumn(new OList.columnHeader(128, "Size"));
     foreach (OContainer.fileEntry file in container.content)
     {
         OList.listItemGroup item = new OList.listItemGroup();
         item.columns.Add(new OList.listItem(file.name));
         uint length = file.loadFromDisk ? file.fileLength : (uint)file.data.Length;
         item.columns.Add(new OList.listItem(getLength(length)));
         FileList.addItem(item);
     }
     FileList.Refresh();
 }
 public void launch(object data)
 {
     container = (OContainer)data;
     FileList.addColumn(new OList.columnHeader(384, "Name"));
     FileList.addColumn(new OList.columnHeader(128, "Size"));
     foreach (OContainer.fileEntry file in container.content)
     {
         OList.listItemGroup item = new OList.listItemGroup();
         item.columns.Add(new OList.listItem(file.name));
         uint length = file.loadFromDisk ? file.fileLength : (uint)file.data.Length;
         item.columns.Add(new OList.listItem(getLength(length)));
         FileList.addItem(item);
     }
     FileList.Refresh();
 }
        private void BtnImport_Click(object sender, System.EventArgs e)
        {
            object importedData = FileIO.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();
            }
        }
        private void BtnImport_Click(object sender, System.EventArgs e)
        {
            object importedData = FileIO.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();
            }
        }
 private void updateList(List<RenderBase.OTexture> textures)
 {
     TextureList.flush();
     TextureList.addColumn(new OList.columnHeader(128, "#"));
     TextureList.addColumn(new OList.columnHeader(128, "Name"));
     foreach (RenderBase.OTexture texture in textures)
     {
         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();
 }