コード例 #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
ファイル: MainViewModel.cs プロジェクト: isti37/gta-toolkit
        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;
        }