示例#1
0
文件: Alarm.cs 项目: ajlopez/AjVars
        public Alarm(Variable variable, Func<object, bool> condition)
        {
            this.variable = variable;
            this.condition = condition;

            this.variable.NewValue += this.NewValue;
        }
示例#2
0
 public MinimumAlarm(Variable variable, object value)
     : base(variable, val => ((IComparable)val).CompareTo(value) < 0)
 {
 }