コード例 #1
0
 private void setColumnIndices(Dictionary <string, int> indices)
 {
     try
     {
         WinFormsHelpers.ReorderListViewColumns(this, indices);
     }
     catch (ArgumentException ex)
     {
         ExceptionHandlers.Handle("[MainForm] Cannot restore list view column display indices", ex);
         ConfigurationHelper.SetColumnIndices(Program.Settings,
                                              WinFormsHelpers.GetListViewDisplayIndices(this), getIdentity());
     }
 }
コード例 #2
0
 private void loadColumnIndices(ListView listView, Dictionary <string, int> storedIndices,
                                Action <Dictionary <string, int> > storeDefaults)
 {
     try
     {
         WinFormsHelpers.ReorderListViewColumns(listView, storedIndices);
     }
     catch (ArgumentException ex)
     {
         ExceptionHandlers.Handle("[MainForm] Cannot restore list view column display indices", ex);
         storeDefaults(WinFormsHelpers.GetListViewDisplayIndices(listView));
     }
 }