public App(String filename) { InitializeComponent(); UserRepositorio.Inicializador(filename); //MainPage = new PagInicio(); MainPage = new NavigationPage(new LoginUser()); }
public static void Inicializador(String filename) { if (filename == null) { throw new ArgumentException(); } if (instancia != null) { instancia.con.Close(); } instancia = new UserRepositorio(filename); }