Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created May 11, 2018 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icebeam7/b9dfe3dd35d6618752fe5462c29691f8 to your computer and use it in GitHub Desktop.
Save icebeam7/b9dfe3dd35d6618752fe5462c29691f8 to your computer and use it in GitHub Desktop.
SistemaEscolar: App.xaml.cs
using Xamarin.Forms;
using SistemaEscolar.Datos;
using SistemaEscolar.Helpers;
namespace SistemaEscolar
{
public partial class App : Application
{
public App ()
{
InitializeComponent();
MainPage = new NavigationPage(new Paginas.PaginaListaEscuelas());
}
static BaseDatos bd;
public static BaseDatos BD
{
get
{
if (bd == null)
{
bd = new BaseDatos(Constantes.NombreBD);
}
return bd;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment