void EventAggHub <FirstButtonClicked> .ISubscribed.OnEvent() { _currentExamPage = _currentExamPage.LeftButton.OnClickFunc(); if (!CheckIfFinal()) { ChangeData(); } }
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); }
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); }
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); }
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(); } }
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 }
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(); }
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! :)"); }