protected async override void OnAppearing() { base.OnAppearing(); //if (viewModel.Items.Count == 0) // viewModel.LoadItemsCommand.Execute(null); await hpvm.Init(); }
public void ShoudNavigateToListFromHomePage() { var viewModel = new HomePageViewModel(); var stub = Substitute.For <IHomeView>(); viewModel.Init(stub); viewModel.GoToListCommand.Execute(null); stub.Received(1).GoToList(); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); viewModel = SimpleIoc.Default.GetInstance <HomePageViewModel>(); viewModel.Init(this); SetContentView(Resource.Layout.Main); loadCoffeesBtn = FindViewById <Button>(Resource.Id.myButton); loadCoffeesBtn.Click += onClickButton; }
protected async override void OnAppearing() { base.OnAppearing(); await model.Init(); kuhinjaList.SelectedIndex = 0; await GPS(); Adresa.Text = LocationInfo.Adresa; }