给DialogService从原来的接口注入,更改为RequestMessage消息通知

This commit is contained in:
2025-06-25 22:33:57 +08:00
parent f76e88b330
commit 0391e76931
11 changed files with 208 additions and 76 deletions

View File

@@ -36,7 +36,7 @@ public partial class App : Application
container.AddSingleton<NavgatorServices>();
container.AddSingleton<DevicesRepositories>();
container.AddSingleton<IDeviceDialogService, DeviceDialogService>();
container.AddSingleton<DialogService>();
container.AddSingleton<GrowlNotificationService>();
container.AddSingleton<MainViewModel>();
container.AddSingleton<HomeViewModel>();
@@ -53,6 +53,7 @@ public partial class App : Application
Services = container.BuildServiceProvider();
// 启动服务
Services.GetRequiredService<GrowlNotificationService>();
Services.GetRequiredService<DialogService>();
}
public new static App Current => (App)Application.Current;