public ExitConditionEventArg(ExitConditionEnum value) { this.value = value; }
private void OnExitConditionChanged(ExitConditionEnum value) { if (ExitConditionChanged != null) ExitConditionChanged(this, new ExitConditionEventArg(value)); }
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); } }