private void LoadColumnInfo() { WatchListView.Columns.Clear(); WatchListView.AddColumn(WatchList.ADDRESS, Global.Config.RamWatchShowAddressColumn, GetColumnWidth(WatchList.ADDRESS)); WatchListView.AddColumn(WatchList.VALUE, true, GetColumnWidth(WatchList.VALUE)); WatchListView.AddColumn(WatchList.PREV, Global.Config.RamWatchShowPrevColumn, GetColumnWidth(WatchList.PREV)); WatchListView.AddColumn(WatchList.CHANGES, Global.Config.RamWatchShowChangeColumn, GetColumnWidth(WatchList.CHANGES)); WatchListView.AddColumn(WatchList.DIFF, Global.Config.RamWatchShowDiffColumn, GetColumnWidth(WatchList.DIFF)); WatchListView.AddColumn(WatchList.DOMAIN, Global.Config.RamWatchShowDomainColumn, GetColumnWidth(WatchList.DOMAIN)); WatchListView.AddColumn(WatchList.NOTES, true, GetColumnWidth(WatchList.NOTES)); ColumnPositions(); }
private void LoadColumnInfo() { WatchListView.Columns.Clear(); var columns = Settings.Columns .Where(c => c.Visible) .OrderBy(c => c.Index); foreach (var column in columns) { WatchListView.AddColumn(column); } }