Пример #1
0
 public void PosterViewActive()
 {
     posterViewModel = new PosterViewModel();
     posterViewModel.LoadGames();
     posterViewModel.LoadGenres();
     DataContext = posterViewModel;
 }
Пример #2
0
        public MainWindow()
        {
            LoadAllGames lag = new LoadAllGames();

            LoadSettings();
            MakeDirectories();
            MakeDefaultGenres();
            lag.LoadGenres();
            DeleteWorkingDirContents();
            InitializeComponent();
            posterViewModel = new PosterViewModel();
            posterViewModel.LoadGames();
            posterViewModel.LoadGenres();
            DataContext = posterViewModel;
        }
Пример #3
0
 public void LagBWRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     GameListMW  = lag.Games;
     GenreListMW = lag.Genres;
     posterViewModel.LoadGames();
     listViewModel.LoadGames();
     bannerViewModel.LoadGames();
     if (Settings.Default.viewtype.ToString() == "Poster")
     {
         PosterViewActive();
     }
     if (Settings.Default.viewtype.ToString() == "Banner")
     {
         BannerViewActive();
     }
     if (Settings.Default.viewtype.ToString() == "List")
     {
         ListViewActive();
     }
     DialogFrame.Visibility = Visibility.Hidden;
 }