예제 #1
0
        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;
        }
예제 #2
0
 protected override void ViewCreated(UserControl view)
 {
     windowManager   = new ZWindowManager();
     windowContainer = this.View.FindName <Grid>("windowContainer");
 }