using ReactiveUI; using System.Application.Services; namespace System.Application.UI.ViewModels.Windows { public class MessageWindowViewModel : WindowViewModel { private readonly T Window; public MessageWindowViewModel(T window) { Window = window; } private string? _Content; public string? Content { get => _Content; set => this.RaiseAndSetIfChanged(ref _Content, value); } public void OK() { DialogResult = true; DI.Get().CloseWindow(Window); } public void Cancel() { DialogResult = false; DI.Get().CloseWindow(Window); } } }