コード例 #1
0
        private void EditSelectedAlbum()
        {
            if (this.SelectedAlbums == null || this.SelectedAlbums.Count == 0)
            {
                return;
            }

            EditAlbum view = this.container.Resolve <EditAlbum>();

            view.DataContext = this.container.Resolve <Func <AlbumViewModel, EditAlbumViewModel> >()(this.SelectedAlbums.First());

            this.dialogService.ShowCustomDialog(
                0xe104,
                14,
                ResourceUtils.GetString("Language_Edit_Album"),
                view,
                405,
                450,
                false,
                true,
                true,
                true,
                ResourceUtils.GetString("Language_Ok"),
                ResourceUtils.GetString("Language_Cancel"),
                ((EditAlbumViewModel)view.DataContext).SaveAlbumAsync);
        }
コード例 #2
0
        private void delete()
        {
            EditAlbum editAlbu = new EditAlbum();

            if (editAlbu.Delete(a1))
            {
                Dispatcher.Invoke(() => DG_TabPlayLists.ItemsSource = null);
                Dispatcher.Invoke(() => DG_TabPlayLists.ItemsSource = albums.Loading());
            }
        }
コード例 #3
0
ファイル: AlbumPage.xaml.cs プロジェクト: yongjan/musicmink
        internal async void HandleFilePickerLaunch(FileOpenPickerContinuationEventArgs filePickerOpenArgs)
        {
            EditAlbum editAlbumDialog;

            if (filePickerOpenArgs.Files.Count > 0)
            {
                DebugHelper.Assert(new CallerInfo(), filePickerOpenArgs.Files.Count == 1);

                editAlbumDialog = new EditAlbum(Album, filePickerOpenArgs.Files[0]);
            }
            else
            {
                editAlbumDialog = new EditAlbum(Album);
            }

            await editAlbumDialog.ShowAsync();
        }
コード例 #4
0
        public IActionResult Edit(EditAlbum model)
        {
            albums.EditAlbum(model.Id, model.Title);

            return(RedirectToAction(nameof(Album), "Albums", new { id = model.Id }));
        }
コード例 #5
0
ファイル: AlbumViewModel.cs プロジェクト: agaz24/musicmink
        private async void ExecuteEditAlbum(object parameter)
        {
            EditAlbum editAlbumDialog = new EditAlbum(this);

            await editAlbumDialog.ShowAsync();
        }