AcManager.Tools.AcObjectsNew.AcCommonObject.ErrorIf C# (CSharp) Method

ErrorIf() public method

Add error if condition is true, remove existing if exists otherwise.
public ErrorIf ( bool condition, AcErrorType type ) : void
condition bool
type AcErrorType
return void
        public void ErrorIf(bool condition, AcErrorType type, params object[] args) {
            if (condition) {
                AddError(new AcError(this, type, args));
            } else {
                RemoveError(type);
            }
        }