30 lines
620 B
C#
30 lines
620 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using CommunityToolkit.Mvvm.Input;
|
|
|
|
namespace DMS.WPF.ViewModels.Dialogs;
|
|
|
|
public partial class ConfrimDialogViewModel : DialogViewModelBase<Boolean>
|
|
{
|
|
|
|
[ObservableProperty]
|
|
private string _message;
|
|
|
|
public ConfrimDialogViewModel(string title,string message,string primaryButText)
|
|
{
|
|
Message = message;
|
|
Title = title;
|
|
PrimaryButContent = primaryButText;
|
|
}
|
|
|
|
|
|
[RelayCommand]
|
|
private void PrimaryButton()
|
|
{
|
|
Close(true);
|
|
}
|
|
[RelayCommand]
|
|
private void CancleButton()
|
|
{
|
|
Close(false);
|
|
}
|
|
} |