Exemple #1
0
        public static async Task <bool> ShowAsync(TrainingDay trainingDay, TEditMode editMode, BaseViewModel parent = null)
        {
            var viewModel = new CreateTrainingDayViewModel();

            viewModel._trainingDay = trainingDay;
            viewModel._editMode    = editMode;
            return(await ShowModalViewModelAsync(viewModel, parent));
        }
Exemple #2
0
        public static async Task <bool> ShowAsync(TrainingWeek trainingWeek, TEditMode editMode, BaseViewModel parent = null)
        {
            var viewModel = new EditTrainingWeekViewModel();

            viewModel.TrainingWeek = trainingWeek;
            viewModel.EditMode     = editMode;
            return(await ShowModalViewModelAsync(viewModel, parent));
        }