添加 MX-PD-盘古 项目文件

将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
Shi.Ji
2026-05-18 11:43:09 +08:00
parent 03632a379d
commit e31d3560bb
739 changed files with 99783 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
using MainShell.Models;
using MaxwellFramework.Core.Common.Command;
using MwFramework.AlarmManager;
using System.Windows.Input;
namespace MainShell.Alarm.ViewModel
{
public class AlarmDialogViewModel : BaseScreen
{
public ICommand ResetCommand { get; }
public ICommand CloseCommand { get; }
public AlarmDialogViewModel()
{
DisplayName = "报警详情";
ResetCommand = new DelegateCommand(obj => Reset());
CloseCommand = new DelegateCommand(obj => Close());
}
private AlarmInfo _alarmInfo;
public AlarmInfo AlarmInfo
{
get => _alarmInfo;
set
{
SetAndNotify(ref _alarmInfo, value);
}
}
private void Close()
{
RequestClose(false);
}
private void Reset()
{
RequestClose(true);
}
}
}