Beispiel #1
0
		public App(string dbPath, ISQLitePlatform sqlitePlatform)
		{
			//set database path first, then retrieve main page
			PersonRepo = new PersonRepository(sqlitePlatform, dbPath);

			this.MainPage = new MainPage();
		}
Beispiel #2
0
        public static Page GetMainPage(ISQLitePlatform sqlitePlatform, string dbPath)
        {
            //set database path first, then retrieve main page
            PersonRepo = new PersonRepository(sqlitePlatform, dbPath);

            return new MainPage();
        }
Beispiel #3
0
        public App(string dbPath)
        {
            PersonRepo = new PersonRepository(dbPath);

            this.MainPage = new MainPage();
        }
Beispiel #4
0
 public App()
 {
     InitializeComponent();
     PersonRepo = new PersonRepository(dbPath);
     MainPage   = new People.MainPage();
 }