public App(string dbPath, ISQLitePlatform sqlitePlatform) { //set database path first, then retrieve main page PersonRepo = new PersonRepository(sqlitePlatform, dbPath); this.MainPage = new MainPage(); }
public static Page GetMainPage(ISQLitePlatform sqlitePlatform, string dbPath) { //set database path first, then retrieve main page PersonRepo = new PersonRepository(sqlitePlatform, dbPath); return new MainPage(); }
public App(string dbPath) { PersonRepo = new PersonRepository(dbPath); this.MainPage = new MainPage(); }
public App() { InitializeComponent(); PersonRepo = new PersonRepository(dbPath); MainPage = new People.MainPage(); }