public ClilocSelectionViewModel() { foreach (KeyValuePair <int, string> kvp in Cliloc.GetItems()) { AllClilocs.Add(new ClilocEntry { Key = kvp.Key, Value = kvp.Value }); } UpdateEntries(_filterText); }
public ClilocFilterConfigureViewModel() { foreach ( KeyValuePair<int, string> kvp in Cliloc.GetItems() ) { AllClilocs.Add( new ClilocEntry { Key = kvp.Key, Value = kvp.Value } ); } foreach ( KeyValuePair<int, string> filterFilter in ClilocFilter.Filters ) { Items.Add( new FilterClilocEntry { Cliloc = filterFilter.Key, Replacement = filterFilter.Value } ); } UpdateEntries( _filterText ); }