Пример #1
0
 public ExitConditionEventArg(ExitConditionEnum value)
 {
     this.value = value;
 }
Пример #2
0
		private void OnExitConditionChanged(ExitConditionEnum value)
		{
			if (ExitConditionChanged != null)
				ExitConditionChanged(this, new ExitConditionEventArg(value));
		}
Пример #3
0
 public ExitConditionEventArg(ExitConditionEnum value)
 {
     this.value = value;
 }
Пример #4
0
		public void SetExitCondition(ExitConditionEnum value)
		{
			try
			{
				lock (syncThread)
				{
					byte num = (byte)m_registers["RegAutoModes"].Value;
					num = (byte)(num & 0xe3);
					num = (byte)(num | ((byte)((((byte)value) & 7) << 2)));
					m_registers["RegAutoModes"].Value = num;
				}
			}
			catch (Exception exception)
			{
				OnError(1, exception.Message);
			}
		}