|
|
|
@ -112,7 +112,7 @@ public class MultiSelectBase<T> : FragmentNavigationBase |
|
|
|
{ { "EntityType", count.ToString() }, { "EntityName", entityName } }; |
|
|
|
{ { "EntityType", count.ToString() }, { "EntityName", entityName } }; |
|
|
|
var options = new DialogOptions { CloseButton = true, MaxWidth = MaxWidth.ExtraSmall }; |
|
|
|
var options = new DialogOptions { CloseButton = true, MaxWidth = MaxWidth.ExtraSmall }; |
|
|
|
|
|
|
|
|
|
|
|
IDialogReference dialog = Dialog.Show<AddToCollectionDialog>("Add To Collection", parameters, options); |
|
|
|
IDialogReference dialog = await Dialog.ShowAsync<AddToCollectionDialog>("Add To Collection", parameters, options); |
|
|
|
DialogResult result = await dialog.Result; |
|
|
|
DialogResult result = await dialog.Result; |
|
|
|
if (!result.Cancelled && result.Data is MediaCollectionViewModel collection) |
|
|
|
if (!result.Cancelled && result.Data is MediaCollectionViewModel collection) |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -150,7 +150,7 @@ public class MultiSelectBase<T> : FragmentNavigationBase |
|
|
|
{ { "EntityType", SelectedItems.Count.ToString() }, { "EntityName", "selected items" } }; |
|
|
|
{ { "EntityType", SelectedItems.Count.ToString() }, { "EntityName", "selected items" } }; |
|
|
|
var options = new DialogOptions { CloseButton = true, MaxWidth = MaxWidth.ExtraSmall }; |
|
|
|
var options = new DialogOptions { CloseButton = true, MaxWidth = MaxWidth.ExtraSmall }; |
|
|
|
|
|
|
|
|
|
|
|
IDialogReference dialog = Dialog.Show<RemoveFromCollectionDialog>( |
|
|
|
IDialogReference dialog = await Dialog.ShowAsync<RemoveFromCollectionDialog>( |
|
|
|
"Remove From Collection", |
|
|
|
"Remove From Collection", |
|
|
|
parameters, |
|
|
|
parameters, |
|
|
|
options); |
|
|
|
options); |
|
|
|
|