public void BuildTextureDictionaryList() { var list = new List <TextureDictionaryViewModel>(); for (int index = 0; index < model.TextureDictionaries.Count; index++) { var vm = new TextureDictionaryViewModel(model.TextureDictionaries[index]); list.Add(vm); } TextureDictionaries = list; // select first texture dictionary if (TextureDictionaries.Count > 0) { SelectedTextureDictionary = TextureDictionaries[0]; } else { SelectedTextureDictionary = null; } }
public void BuildTextureDictionaryList() { var list = new List<TextureDictionaryViewModel>(); for (int index = 0; index < model.TextureDictionaries.Count; index++) { var vm = new TextureDictionaryViewModel(model.TextureDictionaries[index]); list.Add(vm); } TextureDictionaries = list; // select first texture dictionary if (TextureDictionaries.Count > 0) SelectedTextureDictionary = TextureDictionaries[0]; else SelectedTextureDictionary = null; }