private void _treeView_ColumnClicked(object sender, TreeColumnEventArgs e)
        {
            TreeColumn clicked = e.Column;
            if (clicked.SortOrder == SortOrder.Ascending)
                clicked.SortOrder = SortOrder.Descending;
            else
                clicked.SortOrder = SortOrder.Ascending;

            (_treeView.Model as SortedTreeModel).Comparer = new FolderItemSorter(clicked.Header, clicked.SortOrder);
        }
 //////////////////////////////////////////////////////////////////////////
 private void OnColumnResized(object sender, TreeColumnEventArgs e)
 {
     FixLastColumnWidth();
 }
示例#3
0
        private void treeProcesses_ColumnClicked(object sender, TreeColumnEventArgs e)
        {
            if (e.Column.SortOrder == SortOrder.None)  
            {
                e.Column.SortOrder = SortOrder.Descending;
            }
            else if (e.Column.SortOrder == SortOrder.Descending) 
            {
                e.Column.SortOrder = SortOrder.Ascending;  
            }
            else
            {
                e.Column.SortOrder = SortOrder.None;
            }

            _treeModel.CallStructureChanged(new TreePathEventArgs(new TreePath()));

            treeProcesses.Root.ExpandAll();
            this.RefreshItems();
        }
示例#4
0
 private void _treeView_ColumnReordered(object sender, TreeColumnEventArgs e)
 {
 }
示例#5
0
 private void ColumnClickedHandler(object sender, TreeColumnEventArgs e)
 {
     var aColumn = e.Column;
     InvertSortOrderOf(aColumn);
     Sort(aColumn);
 }
 private void _treeView_ColumnWidthChanged(object sender, TreeColumnEventArgs e)
 {
 }
示例#7
0
        private void treeView1_ColumnClicked(object sender, TreeColumnEventArgs e)
        {
            if (e.Column.SortOrder != SortOrder.Ascending)
            {
                e.Column.SortOrder = SortOrder.Ascending;
            } else
            {
                e.Column.SortOrder = SortOrder.Descending;
            }

            SortList();
        }