Example #1
0
        public void GetProperties(int n)
        {
            List <PropertyReader.Property> p;

            switch (pcc.Exports[n].ClassName)
            {
            default:
                byte[] buff = pcc.Exports[n].Data;
                p = PropertyReader.getPropList(pcc, buff);
                break;
            }
            pg = new PropGrid();
            pg1.SelectedObject = pg;
            pg.Add(new CustomProperty("Name", "_Meta", pcc.Exports[n].ObjectName, typeof(string), true, true));
            pg.Add(new CustomProperty("Class", "_Meta", pcc.Exports[n].ClassName, typeof(string), true, true));
            pg.Add(new CustomProperty("Data Offset", "_Meta", pcc.Exports[n].DataOffset, typeof(int), true, true));
            pg.Add(new CustomProperty("Data Size", "_Meta", pcc.Exports[n].DataSize, typeof(int), true, true));
            for (int l = 0; l < p.Count; l++)
            {
                pg.Add(PropertyReader.PropertyToGrid(p[l], pcc));
            }
            pg1.Refresh();
        }