Beispiel #1
0
 private void OnColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
 {
     if (!_listView.Focused)
     {
         return;
     }
     ListViewSaver.save(option, _listView);
 }
Beispiel #2
0
 private void OnColumnClick(object sender, ColumnClickEventArgs e)
 {
     if (e.Column == SortColumn)
     {
         if (this.sortOrder == SortOrder.Ascending)
         {
             this.sortOrder = SortOrder.Descending;
         }
         else
         {
             this.sortOrder = SortOrder.Ascending;
         }
     }
     else
     {
         SortColumn     = e.Column;
         this.sortOrder = SortOrder.Ascending;
     }
     ListViewSaver.save(option, _listView);
     (sender as ListView).Sort();
     _listView.Refresh();
 }