Esempio n. 1
0
        private async void ViewerResized(object sender = null, EventArgs e = null)
        {
            if (sender != null)
            {
                viewerSizeXBox.Text = ViewerBox.Width.ToString();
                viewerSizeYBox.Text = ViewerBox.Height.ToString();
            }

            if (_replayController != null)
            {
                await _replayController.ResetViewport(ViewerBox.Width, ViewerBox.Height);

                if (_replayController.Lev != null)
                {
                    RedrawSceneIfNotPlaying();
                }
            }
        }