Example #1
0
        private GridColumn[] GenerateColumns()
        {
            List <GridColumn> cols = new List <GridColumn>();

            if (!isDictionary)
            {
                foreach (var prop in Props)
                {
                    var width = (100 / Props.Count()).ToString();
                    cols.Add(new GridColumn {
                        Property = prop.Name, DisplayName = prop.Name, width = width, Sortable = Sorting
                    });
                }
            }
            else
            {
                foreach (var key in Keys)
                {
                    var width = (100 / Keys.Count()).ToString();
                    cols.Add(new GridColumn {
                        Property = key, DisplayName = key, width = width, Sortable = Sorting
                    });
                }
            }
            return(cols.ToArray());
        }
Example #2
0
        public StaticMesh(PCCPackage Pcc, int index, Matrix transform)
        {
            pcc     = Pcc;
            MyIndex = index;
            byte[] buff = pcc.GetObjectData(index);
            Props        = PropertyReader.getPropList(pcc, buff);
            ParentMatrix = transform;
            int off = Props[Props.Count() - 1].offend;

            DeserializeDump(buff, off);
        }