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); }
private void delete() { EditAlbum editAlbu = new EditAlbum(); if (editAlbu.Delete(a1)) { Dispatcher.Invoke(() => DG_TabPlayLists.ItemsSource = null); Dispatcher.Invoke(() => DG_TabPlayLists.ItemsSource = albums.Loading()); } }
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(); }
public IActionResult Edit(EditAlbum model) { albums.EditAlbum(model.Id, model.Title); return(RedirectToAction(nameof(Album), "Albums", new { id = model.Id })); }
private async void ExecuteEditAlbum(object parameter) { EditAlbum editAlbumDialog = new EditAlbum(this); await editAlbumDialog.ShowAsync(); }