public DeaneryPage(MainPage mainPage, ExamsPage examsPage, StudyPage studyPage)
        {
            InitializeComponent();

            this.mainPage = mainPage;

            lblGroup    = Content.FindByName <Label>("Group");
            lblCourse   = Content.FindByName <Label>("Course");
            lblSemester = Content.FindByName <Label>("Semestr");
            tbCheatCode = Content.FindByName <Entry>("CheatCode");
            btnGetHelp  = Content.FindByName <Button>("BtnGetHelp");
            BtnCorp     = Content.FindByName <Button>("BtnCorpus");

            RefreshCourse();
        }
Exemplo n.º 2
0
        public MainPage(int courses)
        {
            InitializeComponent();
            Course.CoursesCount = courses;

            NavigationPage.SetHasNavigationBar(this, false);
            SavingSystem.ReadStatisticsFile();

            needsPage        = new NeedsPage(this);
            studyPage        = new StudyPage(this, needsPage);
            deaneryPage      = new DeaneryPage(this, examsPage, studyPage);
            examsPage        = new ExamsPage(this);
            AchievementsPage = new Achievements();

            Children.Add(needsPage);
            Children.Add(studyPage);
            Children.Add(deaneryPage);
            Children.Add(examsPage);
            Children.Add(AchievementsPage);

            deaneryPage.CheckGroupAndRefresh();
            deaneryPage.BtnCorp.IsEnabled = !Simulator.Course.Corpus;
        }