private ScreenViewModel(GameService gameService, FontAndColorService fontAndColorService) : base("Views/ScreenView") { this.foregroundThreadAffinitedObject = new ForegroundThreadAffinitizedObject(); this.gameService = gameService; this.fontAndColorService = fontAndColorService; this.windowManager = new ZWindowManager(fontAndColorService); this.gameService.GameOpened += OnGameOpened; this.gameService.GameClosing += OnGameClosing; }
protected override void ViewCreated(UserControl view) { windowManager = new ZWindowManager(); windowContainer = this.View.FindName <Grid>("windowContainer"); }