Commit e6bcbe0b authored by 潘栩锋's avatar 潘栩锋 🚴

修改 WarningSystem.Init

parent cbf505fe
......@@ -27,12 +27,12 @@ namespace FLY.OBJComponents.Server
/// <summary>
/// 当前正在报警的!!!!!!
/// </summary>
public IBuffer<FlyData_WarningHistory> ReasonList { get; }
public IBuffer<FlyData_WarningHistory> ReasonList { get; private set; }
/// <summary>
/// 最近报警列表
/// </summary>
public IBuffer<FlyData_WarningHistory> NewestList { get; }
public IBuffer<FlyData_WarningHistory> NewestList { get; private set; }
#endregion
......@@ -42,16 +42,15 @@ namespace FLY.OBJComponents.Server
{
Enable = true;
ReasonList = new Buffer<FlyData_WarningHistory>();
}
public void Init()
{
NewestList = new BufferStorage<FlyData_WarningHistory>("warning_newest.csv");
}
public WarningSystem(IBufferAdd<FlyData_WarningHistory> newestList)
public void Init(IBufferAdd<FlyData_WarningHistory> newestList)
{
Enable = true;
ReasonList = new Buffer<FlyData_WarningHistory>();
NewestList = newestList;
}
public void Reset()
{
ReasonList.Reset();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment