コード例 #1
0
        protected override void IglooPrepare(IBaseViewModelParameters parameter)
        {
            FirstViewModelParameters firstViewModelParameters = (FirstViewModelParameters)parameter;

            Generosity = firstViewModelParameters.Generosity;
            SubTotal   = firstViewModelParameters.Subtotal;
        }
コード例 #2
0
        public Task NavToSecond()
        {
            FirstViewModelParameters firstViewModelParameters = new FirstViewModelParameters()
            {
                Subtotal   = 1,
                Generosity = 2
            };

            return(Task.FromResult <bool>(
                       _mvxNavigationService.Navigate <SecondViewModel>().GetAwaiter().GetResult()
                       ));
        }
コード例 #3
0
        public Task NavToFirst()
        {
            FirstViewModelParameters firstViewModelParameters = new FirstViewModelParameters()
            {
                Subtotal   = 20,
                Generosity = 40
            };

            return(Task.FromResult <bool>(
                       _mvxNavigationService.Navigate <FirstViewModel, FirstViewModelParameters>(firstViewModelParameters).GetAwaiter().GetResult()
                       ));
        }