You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
436 B
20 lines
436 B
using System;
|
|
using Stylet;
|
|
|
|
namespace DiscordChatExporter.Gui.ViewModels.Framework;
|
|
|
|
public abstract class DialogScreen<T> : PropertyChangedBase
|
|
{
|
|
public T? DialogResult { get; private set; }
|
|
|
|
public event EventHandler? Closed;
|
|
|
|
public void Close(T dialogResult)
|
|
{
|
|
DialogResult = dialogResult;
|
|
Closed?.Invoke(this, EventArgs.Empty);
|
|
}
|
|
}
|
|
|
|
public abstract class DialogScreen : DialogScreen<bool?>;
|