コード例 #1
0
        public MainWindowViewModel()
        {
            AnimeXmlData xmlData = new AnimeXmlData();
            allAnimes = xmlData.Animes;
            AnimeListforView = new ObservableCollection<AnimeData>(allAnimes);

            SelectChWindow selWin = new SelectChWindow();
            selWin.ShowDialog();
        }
コード例 #2
0
        public MainWindowViewModel()
        {
            AnimeXmlData xmlData = new AnimeXmlData();
            allAnimes = xmlData.Animes;
            AnimeListforView = new ObservableCollection<AnimeData>(allAnimes);
            MyChNameList = new List<string>();
            animeFilter = new AnimeFilter(allAnimes);

            if (!File.Exists(Path.CONFIG_PATH))
            {
                SelectChWindow selWin = new SelectChWindow();
                selWin.ShowDialog();
            }
            LoadMyChName();
            AnimeListforView = animeFilter.FilterByCh(MyChNameList);
        }
コード例 #3
0
        public MainWindowViewModel()
        {
            AnimeXmlData xmlData = new AnimeXmlData();

            allAnimes        = xmlData.Animes;
            AnimeListforView = new ObservableCollection <AnimeData>(allAnimes);
            MyChNameList     = new List <string>();
            animeFilter      = new AnimeFilter(allAnimes);

            if (!File.Exists(Path.CONFIG_PATH))
            {
                SelectChWindow selWin = new SelectChWindow();
                selWin.ShowDialog();
            }
            LoadMyChName();
            AnimeListforView = animeFilter.FilterByCh(MyChNameList);
        }