public DiscoveryPage() { InitializeComponent(); viewModel = new FoodMenuViewModel(); viewModel.LoadData(); BindingContext = viewModel; }
//public void LoadData() //{ // GenerateData(); //} private void GenerateData() { viewModel.LoadData(); }
public DiscoveryPage() { InitializeComponent(); viewModel = new FoodMenuViewModel(); viewModel.LoadData(); BindingContext = viewModel; }
//public void LoadData() //{ // GenerateData(); //} private void GenerateData() { viewModel.LoadData(); }