You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
469 B
27 lines
469 B
3 years ago
|
using System;
|
||
|
|
||
|
namespace EC.AutoWeightServer.Model.EventArgsEx
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 称重事件
|
||
|
/// </summary>
|
||
|
public class ScaleEventArgs : EventArgs
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 重量
|
||
|
/// </summary>
|
||
|
public decimal Weight { get; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 重量单位
|
||
|
/// </summary>
|
||
|
public string Units { get; }
|
||
|
|
||
|
//事件参数重载
|
||
|
public ScaleEventArgs(decimal weight, string units = "kg")
|
||
|
{
|
||
|
this.Weight = weight;
|
||
|
this.Units = units;
|
||
|
}
|
||
|
}
|
||
|
}
|