mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-14 21:40:18 +00:00
Use ReflectionBinding
instead of redundant funcs
This commit is contained in:
parent
b8a18930f2
commit
da590b0fe3
2 changed files with 3 additions and 18 deletions
|
@ -107,14 +107,14 @@
|
|||
HotKey="Enter"
|
||||
Classes="accent"
|
||||
Content="{locale:Locale SettingsButtonOk}"
|
||||
Click="OkButton" />
|
||||
Command="{ReflectionBinding OkButton}" />
|
||||
<Button
|
||||
HotKey="Escape"
|
||||
Content="{locale:Locale SettingsButtonCancel}"
|
||||
Click="CancelButton" />
|
||||
Command="{ReflectionBinding CancelButton}" />
|
||||
<Button
|
||||
Content="{locale:Locale SettingsButtonApply}"
|
||||
Click="ApplyButton" />
|
||||
Command="{ReflectionBinding ApplyButton}" />
|
||||
</ReversibleStackPanel>
|
||||
</Grid>
|
||||
</window:StyleableWindow>
|
|
@ -96,21 +96,6 @@ namespace Ryujinx.Ava.UI.Windows
|
|||
}
|
||||
}
|
||||
|
||||
private void OkButton(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ViewModel.OkButton();
|
||||
}
|
||||
|
||||
private void CancelButton(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ViewModel.CancelButton();
|
||||
}
|
||||
|
||||
private void ApplyButton(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ViewModel.ApplyButton();
|
||||
}
|
||||
|
||||
protected override void OnClosing(CancelEventArgs e)
|
||||
{
|
||||
HotkeysPage.Dispose();
|
||||
|
|
Loading…
Reference in a new issue