Exemplo n.º 1
0
        public void EnsureChecksColumnVisible()
        {
            if (_tree.InvokeRequired)
            {
                _tree.Invoke(new MethodInvoker(EnsureChecksColumnVisible));
                return;
            }

            var checksCol = _tree.AllColumns.FirstOrDefault(c => string.Equals(c.Text, ChecksColumnName));

            if (checksCol != null && !checksCol.IsVisible)
            {
                checksCol.IsVisible = true;
                _tree.RebuildColumns();
            }
        }
Exemplo n.º 2
0
 public static void InvokeRebuildAll(this TreeListView control, bool preserveState)
 {
     control.Invoke(() => control.RebuildAll(preserveState));
 }
Exemplo n.º 3
0
 public static void InvokeExpand(this TreeListView control, object model)
 {
     control.Invoke(() => control.Expand(model));
 }