private void NavToEditSection(Section section) { addEditSectionViewModel.EditMode = true; addEditSectionViewModel.SetSection(section); addEditSectionViewModel.Initialize(); AddEditMode = true; AddEditSectionViewModel = addEditSectionViewModel; }
private void NavToSection() { SelectedSection = null; AddEditMode = false; Levels = new ObservableCollection <Level>(_levelsRepository.GetLevels()); if (Levels.Any()) { SelectedLevelId = SelectedLevelId; } AddEditSectionViewModel.Initialize(); AddEditSectionViewModel = addEditSectionViewModel; }