private void button_getscore_Click(object sender, RoutedEventArgs e)
        {
            ScoreWindow window = new ScoreWindow();
            window.Width = this.ActualWidth;
            window.Height = this.ActualHeight;
            if (this.WindowState == WindowState.Maximized)
            {
                window.WindowState = WindowState.Maximized;
            }
            window.WindowStartupLocation = WindowStartupLocation.CenterScreen;

            window.setScore(this.score);
            window.setWorstGesture(this.worst_gesture);
            window.Show();
            this.Close();
        }
示例#2
0
        private void button_getscore_Click(object sender, RoutedEventArgs e)
        {
            ScoreWindow window = new ScoreWindow();

            window.Width  = this.ActualWidth;
            window.Height = this.ActualHeight;
            if (this.WindowState == WindowState.Maximized)
            {
                window.WindowState = WindowState.Maximized;
            }
            window.WindowStartupLocation = WindowStartupLocation.CenterScreen;

            window.setScore(this.score);
            window.setWorstGesture(this.worst_gesture);
            window.Show();
            this.Close();
        }