public bool Validate(out string error) { if(!string.IsNullOrEmpty(ScriptPath) && !string.IsNullOrEmpty(Execute)) { error = "Script path and execute command cannot be set at the same time"; return false; } error = null; return true; } }