Files
DMS/DMS.WPF/ViewModels/Dialogs/ConfrimDialogViewModel.cs

27 lines
552 B
C#
Raw Normal View History

2025-07-01 21:34:20 +08:00
using CommunityToolkit.Mvvm.ComponentModel;
2025-07-28 13:06:36 +08:00
using CommunityToolkit.Mvvm.Input;
2025-07-01 21:34:20 +08:00
2025-07-19 11:11:01 +08:00
namespace DMS.WPF.ViewModels.Dialogs;
2025-07-01 21:34:20 +08:00
2025-07-28 13:06:36 +08:00
public partial class ConfrimDialogViewModel : DialogViewModelBase<ConfrimDialogViewModel>
2025-07-01 21:34:20 +08:00
{
2025-07-28 13:06:36 +08:00
public bool IsPrimaryButton { get; set; }
[ObservableProperty]
private string message;
2025-07-01 21:34:20 +08:00
2025-07-28 13:06:36 +08:00
[RelayCommand]
public void ParimaryButton()
{
IsPrimaryButton=true;
Close(this);
}
[RelayCommand]
public void CancleButton()
{
IsPrimaryButton=false;
Close(this);
}
2025-07-01 21:34:20 +08:00
}