mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-11 07:30:18 +00:00
SaveAndClose and Close buttons
This commit is contained in:
parent
58e24e409d
commit
39d8fde391
2 changed files with 8 additions and 3 deletions
|
@ -120,14 +120,14 @@
|
|||
Name="SaveButton"
|
||||
MinWidth="90"
|
||||
Margin="5"
|
||||
Command="{ReflectionBinding SaveAndClose}">
|
||||
Click="SaveAndClose">
|
||||
<TextBlock Text="{locale:Locale SettingsButtonSave}" />
|
||||
</Button>
|
||||
<Button
|
||||
Name="CancelButton"
|
||||
MinWidth="90"
|
||||
Margin="5"
|
||||
Command="{ReflectionBinding Close}">
|
||||
Click="Close">
|
||||
<TextBlock Text="{locale:Locale InputDialogCancel}" />
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
|
|
@ -54,12 +54,17 @@ namespace Ryujinx.Ava.UI.Windows
|
|||
await ContentDialogHelper.ShowAsync(contentDialog);
|
||||
}
|
||||
|
||||
public void SaveAndClose()
|
||||
private void SaveAndClose(object sender, RoutedEventArgs routedEventArgs)
|
||||
{
|
||||
ViewModel.Save();
|
||||
((ContentDialog)Parent).Hide();
|
||||
}
|
||||
|
||||
private void Close(object sender, RoutedEventArgs e)
|
||||
{
|
||||
((ContentDialog)Parent).Hide();
|
||||
}
|
||||
|
||||
private void RemoveDLC(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ViewModel.RemoveSelected();
|
||||
|
|
Loading…
Reference in a new issue