public void RestoreListsSettings() { var globOptions = GlobalOptions.Instance; for (var rt = GDMRecordType.rtIndividual; rt <= GDMRecordType.rtLocation; rt++) { IListView rView = fTabParts[(int)rt].ListView; if (rView != null) { rView.SetSortColumn(globOptions.ListOptions[rt].SortColumn, false); if (rt == GDMRecordType.rtIndividual) { globOptions.IndividualListColumns.CopyTo(rView.ListMan.ListColumns); } } } }