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(); } }
protected override void OnSleep() { LoginRepository = new LoginRepository(this.dbPath); LoginRepository.UserExistsState = false; }