Beispiel #1
0
        protected override void OnStart()
        {
            PlannerRepository = new PlannerRepository(this.dbPath);
            LoginRepository   = new LoginRepository(this.dbPath);

            // loads fake student data
            FakeData.CreateFakeStudent.CreateStudentData();

            // if user exists go to login, else go to registration
            if (LoginRepository.UserExistsState)
            {
                MainPage = new Login();
            }
            else
            {
                MainPage = new Registration();
            }
        }
Beispiel #2
0
 protected override void OnSleep()
 {
     LoginRepository = new LoginRepository(this.dbPath);
     LoginRepository.UserExistsState = false;
 }