示例#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()
                       ));
        }