public override bool ComapreAttributes(ObjectAttribute lRemoteAttribute) { if (lRemoteAttribute.GetType() != typeof(ObjectAttributeBool)) return false; if (lRemoteAttribute.Value != Value) return false; return true; }
public override bool ComapreAttributes(ObjectAttribute RemoteAttribute) { if (RemoteAttribute.GetAttributeType() != AttributeType.Integer) return false; ObjectAttributeInt lRemoteAttribute = (ObjectAttributeInt)RemoteAttribute; if (lRemoteAttribute.GetAttributeValue() != AttributeValue) return false; return true; }
public override void SetAttribute(ObjectAttribute lObjectAttribute) { ObjectAttributeString StringAttribute= (ObjectAttributeString)lObjectAttribute; if (HtmlElement.getAttribute(lObjectAttribute.GetAttributeName(), 0)!=null) { HtmlElement.setAttribute(lObjectAttribute.GetAttributeName(), StringAttribute.GetAttributeValue(), 0); } }
public override void AddAttribute(ObjectAttribute lObjectAttribute) { return; }
public override void AddAttribute(ObjectAttribute lObjectAttribute) { Attributes.Add(lObjectAttribute); }
public virtual bool ComapreAttributes(ObjectAttribute RemoteAttribute) { return false; }
public virtual void SetAttribute(ObjectAttribute lObjectAttribute) { return; }
public override bool ComapreAttributes(ObjectAttribute RemoteAttribute) { if (RemoteAttribute == null) return false; if (RemoteAttribute.GetAttributeType() != AttributeType.String) return false; ObjectAttributeString lRemoteAttribute = (ObjectAttributeString)RemoteAttribute; if (lRemoteAttribute.GetAttributeValue() == null) return false; Match m = Regex.Match(lRemoteAttribute.GetAttributeValue(), Match); if (m.Success) return true; return false; }
public override bool ComapreAttributes(ObjectAttribute lRemoteAttribute) { if (lRemoteAttribute == null) return false; if (lRemoteAttribute.GetType() != typeof(ObjectAttributeString)) return false; if (lRemoteAttribute.Value == null) return false; if (Value == "")//Regex makes this wrong if (lRemoteAttribute.Value != Value) return false; Match m = Regex.Match(lRemoteAttribute.Value, Value); if (m.Success) return true; return false; }
public void AddFunctionParameter(ObjectAttribute lParameter) { Parameters.Add(lParameter); }