实现了添加设备的弹出对话框,未完成对话框的内容
This commit is contained in:
20
Services/DeviceDialogService.cs
Normal file
20
Services/DeviceDialogService.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user