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

            vm.PSearch = "";

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