Exemplo n.º 1
0
 void EventAggHub <FirstButtonClicked> .ISubscribed.OnEvent()
 {
     _currentExamPage = _currentExamPage.LeftButton.OnClickFunc();
     if (!CheckIfFinal())
     {
         ChangeData();
     }
 }
Exemplo n.º 2
0
        public static ExamPage AskForHelpDenisAnton(double coefHelp = 1.4, double coefNoHelp = 1)
        {
            ExamPage page = ExamPages.ASK_FOR_HELP();

            page.LeftPage            = ExamPages.ASK_HELP_ANTON_DENIS();
            page.RightPage           = ExamPages.HELP_FRIEND(coefHelp, coefNoHelp);
            page.RightPage.LeftPage  = ExamPages.ONE_MINUTE_LEFT();
            page.RightPage.RightPage = ExamPages.ONE_MINUTE_LEFT(1, 0.66);
            return(page);
        }
Exemplo n.º 3
0
        public static ExamPage DoNotKnowAnswersContinueBomb()
        {
            ExamPage currPage;
            ExamPage page = ExamPages.DONT_KNOW_ANSWERS_CONTINUE();

            currPage           = page.RightPage = ExamPages.REPORT_ABOUT_BOMB();
            currPage           = currPage.LeftPage = ExamPages.POLICE_FOUND_NO_BOMB();
            currPage.RightPage = ExamPages.BLAME_ANTON_DENIS();
            return(page);
        }
Exemplo n.º 4
0
        public static ExamPage MathChemistryAskHelp()
        {
            ExamPage leftPage, rightPage;
            ExamPage page = ExamPages.CHOOSE_CHEMISTRY_MATH();

            leftPage            = page.LeftPage = ExamPages.H2O_IS();
            rightPage           = page.RightPage = ExamPages.MINUS_1_MINUS_1();
            leftPage.LeftPage   = AskForHelpDenisAnton(0.45, 1.1);
            leftPage.RightPage  = AskForHelpDenisAnton(1.5, 0.8);
            rightPage.RightPage = AskForHelpDenisAnton(0.5, 1.2);
            rightPage.LeftPage  = AskForHelpDenisAnton(1.85, 0.82);
            return(page);
        }
Exemplo n.º 5
0
        protected override void OnSleep()
        {
            // Handle when your app sleeps

            navigationPage = Current.MainPage as NavigationPage;

            ExamPage page = ((NavigationPage)Current.MainPage).CurrentPage as ExamPage;

            if (page != null)
            {
                ExamViewModel examViewModel = page.BindingContext as ExamViewModel;
                examViewModel.Timer.Stop();
            }
        }
Exemplo n.º 6
0
        protected override void OnResume()
        {
            MainPage = navigationPage;

            navigationPage = Current.MainPage as NavigationPage;

            ExamPage page = ((NavigationPage)Current.MainPage).CurrentPage as ExamPage;

            if (page != null)
            {
                ExamViewModel examViewModel = page.BindingContext as ExamViewModel;
                examViewModel.Timer.Start();
            }

            // Handle when your app resumes
        }
Exemplo n.º 7
0
            public override void Open(Dictionary <string, object> callData)
            {
                _type = (TestType)callData["Test"];
                switch (_type)
                {
                case TestType.EIT:
                    _currentExam = _examService.GetEIT();
                    break;

                case TestType.Session:
                    _currentExam = _examService.GetSession();
                    break;
                }
                _currentExamPage = _currentExam.Start();
                _playerInfoHolder.IsClassroom = false;
                ChangeData();
            }
Exemplo n.º 8
0
        public MainWindow(App app)
        {
            VoiceEnabled = false;

            this.app = app;

            SplashPage     = new SplashPage(this);
            ChallangePage  = new ChallangePage(this);
            ChallangesPage = new ChallangesPage(this);
            ExamsPage      = new ExamsPage(this);
            ExamPage       = new ExamPage(this);
            StudentPage    = new StudentPage(this);
            StudentsPage   = new StudentsPage(this);
            TrialPage      = new TrialPage(this);

            InitializeComponent();

            feedbackList.SelectionChanged += feedbackList_SelectionChanged;
            AddFeedback("This is the a feedback list. Click on a message to remove it.");
            AddFeedback("Welcome to Tenta Killer! :)");
        }