Microsoft.VisualStudio.R.Package.DataInspect.VariableView.RootTreeGrid_Sorting C# (CSharp) Method

RootTreeGrid_Sorting() private method

private RootTreeGrid_Sorting ( object sender, System.Windows.Controls.DataGridSortingEventArgs e ) : void
sender object
e System.Windows.Controls.DataGridSortingEventArgs
return void
        private void RootTreeGrid_Sorting(object sender, DataGridSortingEventArgs e) {
            // SortDirection
            if (SortDirection == ListSortDirection.Ascending) {
                SortDirection = ListSortDirection.Descending;
            } else {
                SortDirection = ListSortDirection.Ascending;
            }

            _rootNode.Sort();
            e.Handled = true;
        }