public ListaSeccionesViewModel() { this.helper = new HelperAutoescuelaSQLite(); List <Secciones> lista = helper.GetSecciones(); this.Secciones = new ObservableCollection <Secciones>(lista); }
public SeccionesViewModel() { this.helper = new HelperAutoescuelaSQLite(); if (this.SeccionesModel == null) { this.SeccionesModel = new Secciones(); } }
public PrincipalView() { InitializeComponent(); this.helper = new HelperAutoescuelaSQLite(); this.botoninsertar.Clicked += Botoninsertar_Clicked; this.botonleer.Clicked += Botonleer_Clicked; this.botoncrear.Clicked += Botoncrear_Clicked; this.botonmodificar.Clicked += Botonmodificar_Clicked; this.botoneliminar.Clicked += Botoneliminar_Clicked; }