Beispiel #1
0
 public void PreviewProps()
 {
     int n = GetSelected();
     if (n == -1 || !(CurrentView == 2 || CurrentView == 3))
         return;
     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();
     propGrid.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));
     propGrid.Refresh();
     propGrid.ExpandAllGridItems();
 }
Beispiel #2
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();
 }