Exemplo n.º 1
0
        public MainWindow()
        {
            MakeDirectories();
            MakeDefaultGenres();
            lagbw = new BackgroundWorker
            {
                WorkerReportsProgress = true
            };
            lagbw.ProgressChanged    += LagBWProgressChanged;
            lagbw.DoWork             += LagBWDoWork;
            lagbw.RunWorkerCompleted += LagBWRunWorkerCompleted;
            Trace.Listeners.Clear();
            CheckLaunchersExist();
            FixFilePaths();
            InitTraceListen();
            this.Height = (SystemParameters.PrimaryScreenHeight * 0.75);
            this.Width  = (SystemParameters.PrimaryScreenWidth * 0.75);
            LoadAllGames lag = new LoadAllGames();
            LoadSearch   ls  = new LoadSearch();

            lag.LoadGenres();
            InitializeComponent();
            ManageLauncherIconVisibility();
            LoadAllViews();
            DataContext    = null;
            isDownloadOpen = false;
            LoadSettings();
            Trace.WriteLine(DateTime.Now + ": New Session started");
        }
Exemplo n.º 2
0
        public MainWindow()
        {
            LoadAllGames lag = new LoadAllGames();

            LoadSettings();
            MakeDirectories();
            MakeDefaultGenres();
            lag.LoadGenres();
            DeleteWorkingDirContents();
            InitializeComponent();
            posterViewModel = new PosterViewModel();
            posterViewModel.LoadGames();
            posterViewModel.LoadGenres();
            DataContext = posterViewModel;
        }