public static async Task <bool> ShowAsync(BaseViewModel parent = null)
        {
            var viewModel = new ConfidentialityRulesViewModel();

            return(await ShowModalViewModelAsync(viewModel, parent, false));
        }
        public static async Task <bool> ShowViewAsync(BaseViewModel parent = null)
        {
            var viewModel = new DataSyncViewModel();

            return(await ShowModalViewModelAsync(viewModel, parent, false));
        }
예제 #3
0
        public static async Task <bool> ShowAsync(BaseViewModel parent = null)
        {
            var viewModel = new MainViewModel();

            return(await ShowModalViewModelAsync(viewModel, parent, true));
        }
        public static async Task <TrainingDayViewModelResut> ShowAsync(List <TrainingDay> trainingDayList, BaseViewModel parent = null)
        {
            TrainingDayViewModelResut trainingDayViewModelResut = new TrainingDayViewModelResut();

            if (trainingDayList != null && trainingDayList.Count > 0)
            {
                var viewModel = new TrainingDayViewModel();
                viewModel._trainingDays = trainingDayList;
                await ShowModalViewModelAsync(viewModel, parent);

                //Here always return true because it's an interactive page, user doesn't validate page
                trainingDayViewModelResut.Result = true;
                trainingDayViewModelResut.TrainingDays.AddRange(viewModel._trainingDays);
            }

            return(trainingDayViewModelResut);
        }
예제 #5
0
        public static async Task <EditTrainingExerciseViewModelResult> ShowAsync(TrainingExercise trainingExercise, BaseViewModel parent = null)
        {
            var viewModel = new EditTrainingExerciseViewModel();

            viewModel._trainingExercise = trainingExercise;
            var result = await ShowModalViewModelAsync(viewModel, parent);

            var editTrainingExerciseViewModelResult = new EditTrainingExerciseViewModelResult();

            editTrainingExerciseViewModelResult.Result = result;
            return(editTrainingExerciseViewModelResult);
        }