示例#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");
 }