예제 #1
0
        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;
            }
        }
예제 #2
0
        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;
            }
        }