34 lines
901 B
C#
34 lines
901 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Cowain.Bake.Model.Models
|
|
{
|
|
// 自定义事件(发布订阅此事件时,会传递 StoveDataModel 类型的数据)
|
|
public class StoveDataEvent : Prism.Events.PubSubEvent<Dictionary<int, StoveDataModel>> { }
|
|
public class StoveDataModel
|
|
{
|
|
public float[] Temps { get; set; } //温度
|
|
public float Vacuum { get; set; } //真空值
|
|
public UInt16 WorkTime { get; set; } //工作时长
|
|
public UInt16 TotalWorkTime { get; set; } //总工作时长
|
|
}
|
|
|
|
public class AlarmAddEvent : Prism.Events.PubSubEvent<TAlarm>
|
|
{
|
|
|
|
}
|
|
|
|
public class AlarmCancelEvent : Prism.Events.PubSubEvent<TAlarm>
|
|
{
|
|
|
|
}
|
|
|
|
public class AlarmStaionCancelEvent : Prism.Events.PubSubEvent<int>
|
|
{
|
|
|
|
}
|
|
}
|