예제 #1
0
        private void ButtonForward(object sender, RoutedEventArgs e)
        {
            MetodyPomocnicze nowa = new MetodyPomocnicze();

            obrazekTypA.Source = new ImageSourceConverter().ConvertFromString(nowa.PlanszaDalejA(n, ZbiorDanych.PlanszePoczatkowe).PlanszaTypAAdress) as ImageSource;
            n++;
            if (n > 5)
            {
                MainMenu mainMenu = new MainMenu();
                this.NavigationService.Navigate(mainMenu);
            }
        }
예제 #2
0
        public QuizzesA()
        {
            InitializeComponent();
            n = 0;
            MetodyPomocnicze nowa = new MetodyPomocnicze();

            planszatestowa         = nowa.nowyQuizPlansza(n, ZbiorDanych.QuizzyPlanszeA);
            quizzysTypA.Source     = new ImageSourceConverter().ConvertFromString(planszatestowa.QuizAAdress) as ImageSource;
            buttonFilm.Visibility  = Visibility.Hidden;
            quizzanswer.Content    = planszatestowa.QuizzAnswer;
            quizzanswer.Visibility = Visibility.Hidden;
        }
예제 #3
0
        private void Button_Forward(object sender, RoutedEventArgs e)
        {
            n++;
            MetodyPomocnicze nowa = new MetodyPomocnicze();

            planszatestowa         = nowa.nowyQuizPlansza(n, ZbiorDanych.QuizzyPlanszeA);
            quizzysTypA.Source     = new ImageSourceConverter().ConvertFromString(planszatestowa.QuizAAdress) as ImageSource;
            quizzanswer.Content    = planszatestowa.QuizzAnswer;
            buttonFilm.Visibility  = Visibility.Hidden;
            Button1.Visibility     = Visibility.Visible;
            Button2.Visibility     = Visibility.Visible;
            Button3.Visibility     = Visibility.Visible;
            Button4.Visibility     = Visibility.Visible;
            quizzanswer.Visibility = Visibility.Hidden;
        }