实现了添加设备的弹出对话框,未完成对话框的内容

This commit is contained in:
2025-06-12 13:15:55 +08:00
parent bcfa3df3d3
commit ea15ea594a
10 changed files with 181 additions and 19 deletions

View File

@@ -0,0 +1,20 @@
using PMSWPF.Models;
using PMSWPF.ViewModels.Dialogs;
using PMSWPF.Views.Dialogs;
namespace PMSWPF.Services;
public class DeviceDialogService : IDeviceDialogService
{
public async Task<Device> ShowAddDeviceDialog(Device device)
{
DeviceDialogViewModel ddvm = new DeviceDialogViewModel()
{
Title = "添加设备"
};
DeviceDialog dialog = new DeviceDialog(ddvm);
await dialog.ShowAsync();
return device;
}
}