修改了目录架构

This commit is contained in:
2025-09-16 12:29:09 +08:00
parent 5ab18f95f0
commit ffa24f861e
74 changed files with 122 additions and 123 deletions

View File

@@ -4,6 +4,7 @@ using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using DMS.Application.DTOs;
using DMS.Application.Interfaces;
using DMS.Application.Interfaces.Database;
using DMS.Core.Enums;
using DMS.WPF.Interfaces;
using DMS.WPF.Services;

View File

@@ -2,6 +2,7 @@ using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using DMS.Application.DTOs;
using DMS.Application.Interfaces;
using DMS.Application.Interfaces.Database;
using DMS.WPF.Interfaces;
namespace DMS.WPF.ViewModels.Dialogs

View File

@@ -2,6 +2,7 @@ using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using DMS.Application.DTOs;
using DMS.Application.Interfaces;
using DMS.Application.Interfaces.Database;
using DMS.WPF.Interfaces;
namespace DMS.WPF.ViewModels.Dialogs

View File

@@ -6,6 +6,7 @@ using DMS.WPF.ViewModels.Items;
using System;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
using DMS.Application.Interfaces.Database;
namespace DMS.WPF.ViewModels.Dialogs
{

View File

@@ -3,8 +3,8 @@ using System.Windows;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using DMS.Application.DTOs;
using DMS.Application.DTOs.Triggers;
using DMS.Application.Interfaces;
using DMS.Application.Interfaces.Database;
using DMS.Core.Models.Triggers;
using DMS.WPF.Interfaces;

View File

@@ -3,6 +3,7 @@ using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using DMS.Application.DTOs;
using DMS.Application.Interfaces;
using DMS.Application.Interfaces.Database;
using DMS.Core.Enums;
using DMS.WPF.Interfaces;
using DMS.WPF.Services;

View File

@@ -5,6 +5,7 @@ using DMS.Application.Interfaces;
using DMS.WPF.Interfaces;
using DMS.WPF.ViewModels.Dialogs;
using System.Collections.ObjectModel;
using DMS.Application.Interfaces.Database;
using Microsoft.Extensions.DependencyInjection;
namespace DMS.WPF.ViewModels

View File

@@ -92,7 +92,7 @@ public partial class DeviceItemViewModel : ObservableObject
if (Id > 0 && EventService != null )
{
// 发布设备状态改变事件
EventService.RaiseDeviceActiveChanged(this, new DeviceActiveChangedEventArgs(Id, Name, oldValue, newValue));
EventService.RaiseDeviceActiveChanged(this, new DeviceActiveChangedEventArgs(Id, Name, newValue));
}
}

View File

@@ -17,6 +17,8 @@ using System.Collections.ObjectModel;
using System;
using DMS.WPF.Services;
using DMS.Application.DTOs.Events;
using DMS.Application.Interfaces.Database;
using DMS.Core.Enums;
namespace DMS.WPF.ViewModels;

View File

@@ -4,6 +4,7 @@ using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using DMS.Application.DTOs;
using DMS.Application.Interfaces;
using DMS.Application.Interfaces.Database;
using DMS.Core.Enums;
using DMS.WPF.Interfaces;
using DMS.WPF.Services;

View File

@@ -4,7 +4,7 @@ using System.Linq;
using System.Threading.Tasks;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using DMS.Application.DTOs.Triggers;
using DMS.Application.DTOs;
using DMS.Application.Services.Triggers;
using DMS.WPF.Interfaces;
using DMS.WPF.Services;

View File

@@ -11,6 +11,7 @@ using DMS.WPF.ViewModels.Items;
using Microsoft.Extensions.DependencyInjection;
using ObservableCollections;
using System.Linq;
using DMS.Application.Interfaces.Database;
namespace DMS.WPF.ViewModels;

View File

@@ -4,6 +4,7 @@ using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using DMS.Application.DTOs;
using DMS.Application.Interfaces;
using DMS.Application.Interfaces.Database;
using DMS.Core.Enums;
using DMS.Core.Models;
using DMS.WPF.Interfaces;