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

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


            await model.Init();

            kuhinjaList.SelectedIndex = 0;

            await GPS();

            Adresa.Text = LocationInfo.Adresa;
        }