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)); }
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)); }