24 lines
691 B
C#
24 lines
691 B
C#
using EnglewoodLAB.Management;
|
|
using System.Collections.Generic;
|
|
using UVC.UI.Commands;
|
|
|
|
namespace EnglewoodLAB.UI.Command
|
|
{
|
|
public class SetAlarmHistoryDataCommand : ICommand
|
|
{
|
|
private List<CompleteInfo> alarmHistoryData;
|
|
|
|
public SetAlarmHistoryDataCommand(List<CompleteInfo> alarmHistoryData)
|
|
{
|
|
this.alarmHistoryData = alarmHistoryData;
|
|
}
|
|
|
|
public void Execute(object? parameter = null)
|
|
{
|
|
var uiManager = SceneMain.Instance.uiManager;
|
|
var popupCanvas = uiManager.GetCanvas<PopupCanvas>();
|
|
|
|
popupCanvas.GetPanel<AlarmHistoryPanel>().SetAlarmInfoItems(alarmHistoryData);
|
|
}
|
|
}
|
|
} |