Ejemplo n.º 1
0
        public OrderListViewModel(INavigation navigation)
        {
            _orderDatabase = new OrderDatabase();

            tempList = _orderDatabase.GetUsers();

            List = new ObservableCollection <Order>(tempList);

            AddButtonCommand = new Command(() => AddButton());

            DeleteCommand = new Command(() => DeleteButton());

            _navigation = navigation;
        }
Ejemplo n.º 2
0
 public OrderViewModel(INavigation navigation)
 {
     _orderDatabase    = new OrderDatabase();
     SaveButtonCommand = new Command(() => SaveButton());
     _navigation       = navigation;
 }