feat: quick fix and rename.

This commit is contained in:
rabbitism
2024-01-28 20:13:44 +08:00
parent 7b8d91cc42
commit 603f92ab21
6 changed files with 20 additions and 13 deletions

View File

@@ -5,6 +5,6 @@
xmlns:u-semi="https://irihi.tech/ursa/themes/semi">
<Application.Styles>
<StyleInclude Source="avares://Semi.Avalonia/Themes/Index.axaml" />
<u-semi:SemiTheme Locale="en-US"/>
<u-semi:SemiTheme Locale="zh-CN"/>
</Application.Styles>
</Application>

View File

@@ -14,10 +14,10 @@ public partial class DialogWithActionViewModel: ObservableObject, IDialogContext
public void Close()
{
Closed?.Invoke(this, false);
RequestClose?.Invoke(this, false);
}
public event EventHandler<object?>? Closed;
public event EventHandler<object?>? RequestClose;
public ICommand OKCommand { get; set; }
public ICommand CancelCommand { get; set; }
@@ -35,12 +35,12 @@ public partial class DialogWithActionViewModel: ObservableObject, IDialogContext
private void OK()
{
Closed?.Invoke(this, true);
RequestClose?.Invoke(this, true);
}
private void Cancel()
{
Closed?.Invoke(this, false);
RequestClose?.Invoke(this, false);
}
private async Task ShowDialog()