mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-15 06:10: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"
|
HotKey="Enter"
|
||||||
Classes="accent"
|
Classes="accent"
|
||||||
Content="{locale:Locale SettingsButtonOk}"
|
Content="{locale:Locale SettingsButtonOk}"
|
||||||
Click="OkButton" />
|
Command="{ReflectionBinding OkButton}" />
|
||||||
<Button
|
<Button
|
||||||
HotKey="Escape"
|
HotKey="Escape"
|
||||||
Content="{locale:Locale SettingsButtonCancel}"
|
Content="{locale:Locale SettingsButtonCancel}"
|
||||||
Click="CancelButton" />
|
Command="{ReflectionBinding CancelButton}" />
|
||||||
<Button
|
<Button
|
||||||
Content="{locale:Locale SettingsButtonApply}"
|
Content="{locale:Locale SettingsButtonApply}"
|
||||||
Click="ApplyButton" />
|
Command="{ReflectionBinding ApplyButton}" />
|
||||||
</ReversibleStackPanel>
|
</ReversibleStackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</window:StyleableWindow>
|
</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)
|
protected override void OnClosing(CancelEventArgs e)
|
||||||
{
|
{
|
||||||
HotkeysPage.Dispose();
|
HotkeysPage.Dispose();
|
||||||
|
|
Loading…
Reference in a new issue