public GLDataControl(GLGui gui) : base(gui) { Render += (s, d) => UpdateData(); horizontal = Add(new GLFlowLayout(gui) { FlowDirection = GLFlowDirection.LeftToRight, AutoSize = true }); left = horizontal.Add(new GLFlowLayout(gui) { FlowDirection = GLFlowDirection.TopDown, AutoSize = true }); var skin = left.Skin; skin.Space = 0; left.Skin = skin; right = horizontal.Add(new GLFlowLayout(gui) { FlowDirection = GLFlowDirection.TopDown, AutoSize = true }); right.Skin = skin; labelSkin = gui.Skin.LabelEnabled; linkLabelSkin = gui.Skin.LinkLabelEnabled; // defaults Hidden.Add(typeof(IEnumerable), new string[] { "_items", "_size", "_version", "_syncRoot", "m_buckets", "m_slots", "m_count", "m_lastIndex", "m_freeList", "m_comparer", "m_version", "m_siInfo", "m_collection", "m_boundedCapacity", "m_freeNodes", "m_occupiedNodes", "m_isDisposed", "m_ConsumersCancellationTokenSource", "m_ProducersCancellationTokenSource", "m_currentAdders", "buckets", "entries", "count", "version", "freeList", "freeCount", "comparer", "keys", "values", "IsFixedSize", "IsReadOnly", "IsSynchronized", "SyncRoot" }); Hidden.Add(typeof(Array), new string[] { "LongLength", "Rank", "Count" }); Hidden.Add(typeof(KeyValuePair <,>), new string[] { "key", "value" }); Hidden.Add(typeof(Dictionary <,>), new string[] { "Keys", "Values" }); }
private void UpdatePBTFileList() { MakeCurrent(); fileList.Clear(); var pbtFiles = Directory.GetFiles(pbtSearchPath, "*.pbt", SearchOption.AllDirectories); foreach (var file in pbtFiles) { int l = pbtSearchPath.Length + 1; var name = file.Replace('\\', '/').TrimStart('/'); name = name.Substring(l, name.Length - l - 4); var fileLink = fileList.Add(new GLLinkLabel(glGui) { Text = name, AutoSize = true }); fileLink.Click += (s, e) => ShowPBT(name); } }