完成删除设备
This commit is contained in:
@@ -1,11 +1,27 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
|
||||
namespace DMS.WPF.ViewModels.Dialogs;
|
||||
|
||||
public partial class ConfrimDialogViewModel : ObservableObject
|
||||
public partial class ConfrimDialogViewModel : DialogViewModelBase<ConfrimDialogViewModel>
|
||||
{
|
||||
[ObservableProperty] private string _title;
|
||||
[ObservableProperty] private string primaryButtonText;
|
||||
public bool IsPrimaryButton { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private string message;
|
||||
|
||||
|
||||
[ObservableProperty] private string message;
|
||||
|
||||
[RelayCommand]
|
||||
public void ParimaryButton()
|
||||
{
|
||||
IsPrimaryButton=true;
|
||||
Close(this);
|
||||
}
|
||||
[RelayCommand]
|
||||
public void CancleButton()
|
||||
{
|
||||
IsPrimaryButton=false;
|
||||
Close(this);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user