Exemplo n.º 1
0
 public Explorer(List <Element> src, View.Column columnMask = View.Column.kDefault)
 {
     headerState         = View.CreateHeaderState(columnMask);
     viewState           = new TreeViewState();
     serializableElement = new SerializableElementRoot();
     elements            = src;
 }
Exemplo n.º 2
0
        public void SetColumnHeaderEnable(View.Column column, bool bEnable)
        {
            var visibleColumns = multiColumnHeader.state.visibleColumns.ToList();

            for (int i0 = 0, mask = 1; mask < (int)Column.kAll; ++i0, mask <<= 1)
            {
                if (((int)column & mask) != 0)
                {
                    if (bEnable != false)
                    {
                        if (visibleColumns.Contains(i0) == false)
                        {
                            visibleColumns.Add(i0);
                        }
                    }
                    else
                    {
                        if (visibleColumns.Contains(i0) != false)
                        {
                            visibleColumns.Remove(i0);
                        }
                    }
                }
            }
            multiColumnHeader.state.visibleColumns = visibleColumns.ToArray();
        }
Exemplo n.º 3
0
 public void SetColumnHeaderEnable(View.Column column, bool bEnable)
 {
     view.SetColumnHeaderEnable(column, bEnable);
 }