예제 #1
0
        private void continue_click(object sender, RoutedEventArgs e)
        {
            if (a5.IsChecked == true || a4.IsChecked == true || a3.IsChecked == true || a2.IsChecked == true || a1.IsChecked == true)
            {
                error.Visibility = Visibility.Hidden;
                if (count < 9)
                {
                    count++;
                    result.Content = "Result";
                    a1.IsChecked   = false;
                    a2.IsChecked   = false;
                    a3.IsChecked   = false;
                    a4.IsChecked   = false;
                    a5.IsChecked   = false;
                    a1.IsEnabled   = true;
                    a2.IsEnabled   = true;
                    a3.IsEnabled   = true;
                    a4.IsEnabled   = true;
                    a5.IsEnabled   = true;
                    tester();
                }
                else
                {
                    label.Visibility = Visibility.Visible;
                    Start.Visibility = Visibility.Visible;
                    r.writer();

                    image.Visibility    = Visibility.Hidden;
                    question.Visibility = Visibility.Hidden;
                    a1.Visibility       = Visibility.Hidden;
                    a2.Visibility       = Visibility.Hidden;
                    a3.Visibility       = Visibility.Hidden;
                    a4.Visibility       = Visibility.Hidden;
                    a5.Visibility       = Visibility.Hidden;
                    cont.Visibility     = Visibility.Hidden;
                    result.Visibility   = Visibility.Hidden;
                    result.Content      = "Result";
                    aftertest t = new aftertest();
                    t.Show();
                }
            }
            else
            {
                error.Visibility = Visibility.Visible;
            }
        }