Example #1
0
        protected async override void OnAppearing()
        {
            base.OnAppearing();

            //if (viewModel.Items.Count == 0)
            //    viewModel.LoadItemsCommand.Execute(null);
            await hpvm.Init();
        }
Example #2
0
        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;
        }
Example #4
0
        protected async override void OnAppearing()
        {
            base.OnAppearing();


            await model.Init();

            kuhinjaList.SelectedIndex = 0;

            await GPS();

            Adresa.Text = LocationInfo.Adresa;
        }