示例#1
0
		public Alarm Clone()
		{
			var alarm = new Alarm(AlarmType, Device);
			alarm.Zone = Zone;
			alarm.Direction = Direction;
			return alarm;
		}
示例#2
0
文件: Alarm.cs 项目: xbadcode/Rubezh
		public bool IsEqualTo(Alarm alarm)
		{
			if (alarm.AlarmType != AlarmType)
				return false;
			if (alarm.GkBaseEntity != GkBaseEntity)
				return false;
			return true;
		}
示例#3
0
		public bool IsEqualTo(Alarm alarm)
		{
			if (alarm.AlarmType != AlarmType)
				return false;
			if (alarm.Device != null && alarm.Device != Device)
				return false;
			if (alarm.Zone != null && alarm.Zone != Zone)
				return false;
			if (alarm.Direction != null && alarm.Direction != Direction)
				return false;
			return true;
		}
示例#4
0
文件: Alarm.cs 项目: xbadcode/Rubezh
		public Alarm Clone()
		{
			var alarm = new Alarm(AlarmType, GkBaseEntity);
			return alarm;
		}