Ejemplo n.º 1
0
        public MainPageViewModel(OrdersRepository repository) {
            this.repository = repository;
            Orders = repository.Orders;
			this.SwipeButtonCommand = new Command((o) => SwipeButtonClickExecute(o));
			this.refreshCommand = new Command(ExecuteRefreshCommand);
            this.market = new MarketSimulator();
        }
 void BindData() {
     BindingContext = this;
     this.repository = new DemoOrdersRepository();
     this.Orders = repository.Orders;
     PullToRefreshCommand = new Command(ExecutePullToRefreshCommand);
 }
Ejemplo n.º 3
0
 void BindData() {
     BindingContext = this;
     this.repository = new DemoOrdersRepository();
     this.Orders = repository.Orders;
     LoadMoreCommand = new LoadMoreDataCommand(ExecuteLoadMoreCommand);
 }