完成编辑设备和删除设备
This commit is contained in:
11
ViewModels/Dialogs/ConfrimDialogViewModel.cs
Normal file
11
ViewModels/Dialogs/ConfrimDialogViewModel.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
namespace PMSWPF.ViewModels.Dialogs;
|
||||
|
||||
public partial class ConfrimDialogViewModel : ObservableObject
|
||||
{
|
||||
[ObservableProperty] private string _title;
|
||||
[ObservableProperty] private string primaryButtonText;
|
||||
|
||||
[ObservableProperty] private string message;
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using PMSWPF.Extensions;
|
||||
using PMSWPF.Models;
|
||||
|
||||
namespace PMSWPF.ViewModels.Dialogs;
|
||||
@@ -9,9 +8,9 @@ public partial class DeviceDialogViewModel : ObservableObject
|
||||
{
|
||||
[ObservableProperty]
|
||||
private Device _device;
|
||||
|
||||
|
||||
[ObservableProperty] private string title = "添加设备";
|
||||
|
||||
[ObservableProperty] private string title ;
|
||||
[ObservableProperty] private string primaryButContent ;
|
||||
|
||||
public DeviceDialogViewModel(Device device)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user