AcManager.Tools.AcObjectsNew.AcCommonObject.ErrorIf C# (CSharp) Méthode

ErrorIf() public méthode

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