コード例 #1
0
 public App(String filename)
 {
     InitializeComponent();
     UserRepositorio.Inicializador(filename);
     //MainPage = new  PagInicio();
     MainPage = new NavigationPage(new LoginUser());
 }
コード例 #2
0
        public static void Inicializador(String filename)
        {
            if (filename == null)
            {
                throw new ArgumentException();
            }

            if (instancia != null)
            {
                instancia.con.Close();
            }
            instancia = new  UserRepositorio(filename);
        }