コード例 #1
0
        private void SortColumn(object sender, DataGridViewCellMouseEventArgs e)
        {
            var columnName = _view.GridView.Columns[e.ColumnIndex].Name;

            // type "Image" doesn't implement "IComparable", so we need to sort by the outcome instead
            if (columnName == RubberduckUI.Result)
            {
                columnName = RubberduckUI.Outcome;
            }
            _view.AllTests = new BindingList <TestExplorerItem>(_gridViewSort.Sort(_view.AllTests.AsEnumerable(), columnName).ToList());
        }
コード例 #2
0
        private void SortColumn(object sender, DataGridViewCellMouseEventArgs e)
        {
            var columnName = TodoMarkersGridView.Columns[e.ColumnIndex].Name;

            TodoMarkers = new BindingList <ToDoMarker>(_gridViewSort.Sort(TodoMarkers.AsEnumerable(), columnName).ToList());
        }
コード例 #3
0
        private void SortColumn(object sender, DataGridViewCellMouseEventArgs e)
        {
            var columnName = _view.GridView.Columns[e.ColumnIndex].Name;

            _view.TodoItems = _gridViewSort.Sort(_view.TodoItems, columnName);
        }
コード例 #4
0
        private void SortColumn(object sender, DataGridViewCellMouseEventArgs e)
        {
            var columnName = codeInspectionsGrid.Columns[e.ColumnIndex].Name;

            AllInspections = new BindingList <CodeInspectionSetting>(_gridViewSort.Sort(AllInspections.AsEnumerable(), columnName).ToList());
        }
コード例 #5
0
        private void SortColumn(object sender, DataGridViewCellMouseEventArgs e)
        {
            var columnName = Control.GridView.Columns[e.ColumnIndex].Name;

            if (columnName == "Icon")
            {
                columnName = "Severity";
            }

            Control.InspectionResults = new BindingList <CodeInspectionResultGridViewItem>(_gridViewSort.Sort(Control.InspectionResults.AsEnumerable(), columnName).ToList());
        }