public MainController(MainView mainView) { // Models MainModel = new MainModel(mainView) { // Load color settings MainColor = Settings.Default.MainColor, SecondaryColor = Settings.Default.SecondaryColor }; // Views MainView = mainView; // Controllers RocketLeagueController = new RocketLeagueController(this); // Background workers _processWorker = new BackgroundWorker(); _processWorker.DoWork += processWorker_DoWork; _processWorker.WorkerSupportsCancellation = true; // Grand view access to MainController MainView.MainController = this; // Start looking for RocketLeague.exe _processWorker.RunWorkerAsync(); }
public MainModel(MainView mainView) { MainView = mainView; }