添加 MX-PD-盘古 项目文件
将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user