private void LoadOfflineCustomerList() { VMCustomerList vm = BindingContext as VMCustomerList; List <CustomerListModel> listCustomer = SQLiteDatabase.Instance.GetDataSyncCustomerList(); if (listCustomer != null) { vm.PCustomerList = new System.Collections.ObjectModel.ObservableCollection <CustomerListModel> (listCustomer); } }
public CustomerList() { InitializeComponent(); VMCustomerList vm = BindingContext as VMCustomerList; vm.PSearch = ""; OCustomerList.ItemTapped += (object sender, ItemTappedEventArgs e) => { vm.SaveCustomer(); }; }