Exemplo n.º 1
0
        private void StoryService_StoryOpened(object sender, StoryOpenedEventArgs e)
        {
            mainWindow = windowManager.Open(ZWindowType.TextBuffer);
            windowContainer.Children.Add(mainWindow);
            upperWindow = windowManager.Open(ZWindowType.TextGrid, mainWindow, ZWindowPosition.Above, ZWindowSizeType.Fixed, 0);

            windowManager.Activate(mainWindow);
        }
Exemplo n.º 2
0
        private void DebuggerService_MachineCreated(object sender, MachineCreatedEventArgs e)
        {
            mainWindow = windowManager.Open(ZWindowType.TextBuffer);
            windowContainer.Children.Add(mainWindow);
            upperWindow = windowManager.Open(ZWindowType.TextGrid, mainWindow, ZWindowPosition.Above, ZWindowSizeType.Fixed, 0);

            windowManager.Activate(mainWindow);

            debuggerService.Machine.RegisterScreen(this);
            debuggerService.Machine.RegisterSoundEngine(this);
        }
Exemplo n.º 3
0
        private void DebuggerService_MachineCreated(object sender, MachineCreatedEventArgs e)
        {
            mainWindow = windowManager.Open(ZWindowType.TextBuffer);
            windowContainer.Children.Add(mainWindow);
            upperWindow = windowManager.Open(ZWindowType.TextGrid, mainWindow, ZWindowPosition.Above, ZWindowSizeType.Fixed, 0);

            windowManager.Activate(mainWindow);

            debuggerService.Machine.RegisterScreen(this);
            debuggerService.Machine.RegisterSoundEngine(this);

            // Listen to SizeChanged events for updating the screen size.
            // Otherwise, the size of the output window at load time determines the registered size
            mainWindow.SizeChanged += OutputViewModel_SizeChanged;
        }