mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-06-26 08:59:36 +00:00
Refactor message boxes
This commit is contained in:
@@ -6,20 +6,20 @@ namespace DiscordChatExporter.Gui.ViewModels.Dialogs;
|
||||
public partial class MessageBoxViewModel : DialogViewModelBase
|
||||
{
|
||||
[ObservableProperty]
|
||||
public partial string? Title { get; set; } = "Title";
|
||||
public partial string? Title { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
public partial string? Message { get; set; } = "Message";
|
||||
public partial string? Message { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
[NotifyPropertyChangedFor(nameof(IsDefaultButtonVisible))]
|
||||
[NotifyPropertyChangedFor(nameof(ButtonsCount))]
|
||||
public partial string? DefaultButtonText { get; set; } = "OK";
|
||||
public partial string? DefaultButtonText { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
[NotifyPropertyChangedFor(nameof(IsCancelButtonVisible))]
|
||||
[NotifyPropertyChangedFor(nameof(ButtonsCount))]
|
||||
public partial string? CancelButtonText { get; set; } = "Cancel";
|
||||
public partial string? CancelButtonText { get; set; }
|
||||
|
||||
public bool IsDefaultButtonVisible => !string.IsNullOrWhiteSpace(DefaultButtonText);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user