Beispiel #1
0
        private void MyBase_ColumnClick(object sender, System.Windows.Forms.ColumnClickEventArgs e)
        {
            ListViewOrderedColumns.ColumnSortOrderInfo colSOI = lstVwOC.ManageColumnToSort(this.Columns[e.Column]);
            RefreshColumnIcon(colSOI);
            MyColumnClickEventArgs args = new MyColumnClickEventArgs(lstVwOC.GetOrder());

            this.OnMyColumnClick(args);
        }
Beispiel #2
0
 private void RefreshColumnIcon(ListViewOrderedColumns.ColumnSortOrderInfo colSOI)
 {
     if (colSOI.columnSortOrder == ListViewOrderedColumns.MySortOrder.Descendente)
     {
         colSOI.column.ImageIndex = firstOrderIconIndex + (2 * (colSOI.order - 1));
     }
     else
     {
         colSOI.column.ImageIndex = firstOrderIconIndex + (2 * (colSOI.order - 1)) + 1;
     }
 }
Beispiel #3
0
 public void AddColumnToSort(ColumnHeader col, ListViewOrderedColumns.MySortOrder sort, int order)
 {
     ListViewOrderedColumns.ColumnSortOrderInfo colSOI = lstVwOC.AddColumnToSortList(col, sort, order);
     RefreshColumnIcon(colSOI);
 }
Beispiel #4
0
 private void AddItemOrdenacao(ListViewOrderedColumns.ColumnSortOrderInfo col)
 {
     AddItemOrdenacao(col.column, col.columnSortOrder);
 }