Пример #1
0
        private void Window_KeyDown(object sender, KeyEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine("hello");
            if (e.Key == Key.R)
            {
                TitleWindow window = new TitleWindow();
                window.Width  = this.ActualWidth;
                window.Height = this.ActualHeight;
                if (this.WindowState == WindowState.Maximized)
                {
                    window.WindowState = WindowState.Maximized;
                }
                window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                //window.setScore(this.gestureDetector.GestureResultView.Overall_Score);

                window.Show();
                this.Close();
            }
        }
Пример #2
0
        private void Window_KeyDown(object sender, KeyEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine("hello");
            if (e.Key == Key.R)
            {
                TitleWindow window = new TitleWindow();
                window.Width = this.ActualWidth;
                window.Height = this.ActualHeight;
                if (this.WindowState == WindowState.Maximized)
                {
                    window.WindowState = WindowState.Maximized;
                }
                window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                //window.setScore(this.gestureDetector.GestureResultView.Overall_Score);

                window.Show();
                this.Close();
            }
        }