파일정리
This commit is contained in:
39
HMI/Project/Device/BMSInformationEventArgs.cs
Normal file
39
HMI/Project/Device/BMSInformationEventArgs.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace arDev
|
||||
{
|
||||
public class ChargetDetectArgs : EventArgs
|
||||
{
|
||||
public DateTime time { get; set; }
|
||||
public float level { get; set; }
|
||||
public bool Detected { get; set; }
|
||||
public ChargetDetectArgs(DateTime times, bool detected, float values)
|
||||
{
|
||||
this.time = times;
|
||||
this.level = values;
|
||||
this.Detected = detected;
|
||||
}
|
||||
}
|
||||
public class BMSInformationEventArgs : EventArgs
|
||||
{
|
||||
public BMSBasicInformation Data { get; set; }
|
||||
public BMSInformationEventArgs(BMSBasicInformation info)
|
||||
{
|
||||
this.Data = info;
|
||||
}
|
||||
}
|
||||
|
||||
public class BMSCelvoltageEventArgs : EventArgs
|
||||
{
|
||||
public double[] voltage;
|
||||
public BMSCelvoltageEventArgs(double v1, double v2, double v3, double v4, double v5, double v6, double v7, double v8)
|
||||
{
|
||||
voltage = new double[] { v1, v2, v3, v4, v5, v6, v7, v8 };
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Join(" ", voltage.Select(t => t.ToString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user