Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
        public CustomerList()
        {
            InitializeComponent();
            VMCustomerList vm = BindingContext as VMCustomerList;

            vm.PSearch = "";

            OCustomerList.ItemTapped += (object sender, ItemTappedEventArgs e) => {
                vm.SaveCustomer();
            };
        }