Skip to content

Instantly share code, notes, and snippets.

View lyonn19's full-sized avatar
๐Ÿ‘
working on

Leonardo Fernandez lyonn19

๐Ÿ‘
working on
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BottomBar.XamarinForms;
using Xamarin.Forms;
namespace BottomNavigationBarXF.Views
{
@lyonn19
lyonn19 / PersonDAO.cs
Created September 14, 2017 16:09
SQLite_XF/DAO
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using SQLite_XF.Model;
namespace SQLite_XF.DAO
{
public class PersonDao: BaseDatabase
{
@lyonn19
lyonn19 / BaseDatabase.cs
Created September 14, 2017 16:08
SQLite_XF/DAO
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SQLite;
using SQLite_XF.DependencyService;
namespace SQLite_XF.DAO
{
@lyonn19
lyonn19 / SqLiteIOs.cs
Created September 14, 2017 16:03
SQLite_XF/SQLite_XF.iOS
using System;
using System.IO;
using SQLite;
using SQLite_XF.DependencyService;
using SQLite_XF.iOS;
using Xamarin.Forms;
[assembly: Dependency(typeof(SqliteService))]
namespace SQLite_XF.iOS
{
@lyonn19
lyonn19 / SqLiteDroid.cs
Last active September 14, 2017 21:54
SQLite_XF/SQLite_XF.Android
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
@lyonn19
lyonn19 / PersonListPage.xaml
Created September 14, 2017 15:55
SQLite_XF/View
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:viewModel="clr-namespace:SQLite_XF.ViewModel;assembly=SQLite_XF"
x:Class="SQLite_XF.View.PersonListPage"
Title="Personas">
<!--<ContentPage.BindingContext>
<viewModel:PersonViewModel/>
</ContentPage.BindingContext>-->
<ContentPage.ToolbarItems>
@lyonn19
lyonn19 / PersonAddPage.xaml
Created September 14, 2017 15:54
SQLite_XF/View
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:viewModel="clr-namespace:SQLite_XF.ViewModel;assembly=SQLite_XF"
x:Class="SQLite_XF.View.PersonAddPage"
Title="Registro">
<!--<ContentPage.BindingContext>
<viewModel:PersonViewModel/>
</ContentPage.BindingContext>-->
<ContentPage.Content>
@lyonn19
lyonn19 / ISQLite.cs
Created September 14, 2017 15:52
SQLite_XF/DependencyService
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SQLite;
namespace SQLite_XF.DependencyService
{
public interface ISqLite
@lyonn19
lyonn19 / PersonViewModel.cs
Created September 14, 2017 15:50
SQLite_XF/ViewModel
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using SQLite_XF.DAO;
using SQLite_XF.Model;
using Xamarin.Forms;
namespace SQLite_XF.ViewModel
@lyonn19
lyonn19 / Persona.cs
Created September 14, 2017 14:52
SQLite_XF/Model/Person.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SQLite;
namespace SQLite_XF.Model
{