mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-28 00:36:00 +00:00
Update NuGet packages
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user