mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-06-02 23:59:50 -04:00
Update NuGet packages
This commit is contained in:
parent
ed35a36eaa
commit
d01ed13041
6 changed files with 15 additions and 16 deletions
|
@ -17,7 +17,7 @@ namespace DiscordChatExporter.Gui.ViewModels.Framework
|
|||
_viewManager = viewManager;
|
||||
}
|
||||
|
||||
public async ValueTask<T> ShowDialogAsync<T>(DialogScreen<T> dialogScreen)
|
||||
public async ValueTask<T?> ShowDialogAsync<T>(DialogScreen<T> dialogScreen)
|
||||
{
|
||||
var view = _viewManager.CreateAndBindViewForModelIfNecessary(dialogScreen);
|
||||
|
||||
|
|
|
@ -5,14 +5,13 @@ namespace DiscordChatExporter.Gui.ViewModels.Framework
|
|||
{
|
||||
public abstract class DialogScreen<T> : PropertyChangedBase
|
||||
{
|
||||
// ReSharper disable once RedundantDefaultMemberInitializer
|
||||
public T DialogResult { get; private set; } = default!;
|
||||
public T? DialogResult { get; private set; }
|
||||
|
||||
public event EventHandler? Closed;
|
||||
|
||||
public void Close(T dialogResult = default!)
|
||||
public void Close(T dialogResult)
|
||||
{
|
||||
DialogResult = dialogResult!;
|
||||
DialogResult = dialogResult;
|
||||
Closed?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue