コード例 #1
0
        private async void SetEditMode(bool isEditMode)
        {
            EditButtonText = isEditMode ? EditModeStateText : ReadOnlyModeStateText;
            PlayLists.ForEach(vm => vm.IsPlaylistEditMode = isEditMode);
            PersonalLibraryViewModel.IsPlaylistEditMode   = isEditMode;
            if (isEditMode == false)
            {
                EditButtonDisabled = false;
                var newData = PlaylistViewModelBuilder.ConvertToModelData(this);
                await _playlistsDataService.SaveChanges(newData);
                await Initialize();

                EditButtonDisabled = true;
            }
        }