예제 #1
0
        public StudyPage(MainPage mainPage, NeedsPage needsPage)
        {
            InitializeComponent();

            this.mainPage  = mainPage;
            this.needsPage = needsPage;

            lblEatPoints          = Content.FindByName <Label>("EatPoints");
            lblSleepPoints        = Content.FindByName <Label>("SleepPoints");
            lblHappyPoints        = Content.FindByName <Label>("HappyPoints");
            lblStudyPoints        = Content.FindByName <Label>("StudyPoints");
            lblProgrPoints        = Content.FindByName <Label>("ProgrPoints");
            lblLinalPoints        = Content.FindByName <Label>("LinalPoints");
            lblMathPoints         = Content.FindByName <Label>("MathPoints");
            lblAsmEconomicsPoints = Content.FindByName <Label>("Asm_economicsPoints");
            lblAsm_eco            = Content.FindByName <Label>("Asm_economics");

            pbFood               = Content.FindByName <ProgressBar>("PbFood");
            pbSleep              = Content.FindByName <ProgressBar>("PbSleep");
            pbHappiness          = Content.FindByName <ProgressBar>("PbHappiness");
            pbStudying           = Content.FindByName <ProgressBar>("PbStudying");
            pbProgrPoints        = Content.FindByName <ProgressBar>("PbProg");
            pbLinalPoints        = Content.FindByName <ProgressBar>("PbLinal");
            pbMathPoints         = Content.FindByName <ProgressBar>("PbMath");
            pbAsmEconomicsPoints = Content.FindByName <ProgressBar>("PbASM_ECO");
            btnAsm_eco           = Content.FindByName <Button>("BtnASM_ECO");

            Refresh();
        }
예제 #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;
        }