继续修改触发器
This commit is contained in:
@@ -5,6 +5,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using DMS.WPF.Interfaces;
|
||||
using DMS.WPF.ViewModels.Triggers;
|
||||
using DMS.WPF.Views;
|
||||
using iNKORE.UI.WPF.Modern.Controls;
|
||||
|
||||
@@ -29,7 +30,8 @@ namespace DMS.WPF.Services
|
||||
{ typeof(HistorySettingsDialogViewModel), typeof(HistorySettingsDialog) },
|
||||
{ typeof(AlarmSettingsDialogViewModel), typeof(AlarmSettingsDialog) },
|
||||
{ typeof(EmailAccountDialogViewModel), typeof(EmailAccountDialog) },
|
||||
{ typeof(EmailTemplateDialogViewModel), typeof(EmailTemplateDialog) }
|
||||
{ typeof(EmailTemplateDialogViewModel), typeof(EmailTemplateDialog) },
|
||||
{ typeof(TriggerDialogViewModel), typeof(TriggerDialog) }
|
||||
// Add other mappings here
|
||||
// ... other dialogs
|
||||
};
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using DMS.WPF.Interfaces;
|
||||
using DMS.WPF.ViewModels;
|
||||
using DMS.WPF.ViewModels.Items;
|
||||
using DMS.WPF.ViewModels.Triggers;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace DMS.WPF.Services;
|
||||
@@ -96,6 +97,8 @@ public class NavigationService : INavigationService
|
||||
return App.Current.Services.GetRequiredService<SettingViewModel>();
|
||||
case "EmailManagementView":
|
||||
return App.Current.Services.GetRequiredService<EmailManagementViewModel>();
|
||||
case "TriggersView":
|
||||
return App.Current.Services.GetRequiredService<TriggersViewModel>();
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user