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; }
public OrderViewModel(INavigation navigation) { _orderDatabase = new OrderDatabase(); SaveButtonCommand = new Command(() => SaveButton()); _navigation = navigation; }