public void BuildTextureList() { if (SelectedTextureDictionary != null) { var list = new List <TextureViewModel>(); for (int index = 0; index < SelectedTextureDictionary.GetModel().Textures.Count; index++) { var texture = SelectedTextureDictionary.GetModel().Textures[index]; var textureVM = new TextureViewModel(texture); list.Add(textureVM); } Textures = list; if (Textures.Count > 0) { SelectedTexture = Textures[0]; } } else { Textures = null; SelectedTexture = null; } }
public void BuildTextureList() { if (SelectedTextureDictionary != null) { var list = new List<TextureViewModel>(); for (int index = 0; index < SelectedTextureDictionary.GetModel().Textures.Count; index++) { var texture = SelectedTextureDictionary.GetModel().Textures[index]; var textureVM = new TextureViewModel(texture); list.Add(textureVM); } Textures = list; if (Textures.Count > 0) SelectedTexture = Textures[0]; } else { Textures = null; SelectedTexture = null; } }