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