Beispiel #1
0
 public static IEAConnectorTag Wrap(ConnectorTag native)
 {
     if (null == native)
     {
         throw new ArgumentNullException("native");
     }
     return(new EAConnectorTag(native));
 }
Beispiel #2
0
 public EaConnectorTag(ConnectorTag eaConnectorTag)
 {
     if (eaConnectorTag == null)
     {
         throw new NullReferenceException("connector tag is null");
     }
     this.eaConnectorTag = eaConnectorTag;
 }
        public void UpdateTaggedValue(string name, string data)
        {
            ConnectorTag taggedValue = _native.TaggedValues.GetByName(name);

            if (data.Length > 255)
            {
                taggedValue.Value = "<memo>";
                taggedValue.Notes = data;
            }
            else
            {
                taggedValue.Value = data;
            }

            taggedValue.Update();
            _native.TaggedValues.Refresh();
            _native.Update();
        }
        public void AddTaggedValue(string name, string data)
        {
            ConnectorTag taggedValue = _native.TaggedValues.AddNew(name, "");

            if (data == null)
            {
                data = "";
            }
            if (data.Length > 255)
            {
                taggedValue.Value = "<memo>";
                taggedValue.Notes = data;
            }
            else
            {
                taggedValue.Value = data;
            }
            taggedValue.Update();
            _native.TaggedValues.Refresh();
            _native.Update();
        }
Beispiel #5
0
 private EAConnectorTag(ConnectorTag native)
 {
     _native = native;
 }
 public static ConnectorTag WithValue(this ConnectorTag taggedValue, string value)
 {
     taggedValue.Value = value;
     taggedValue.Update();
     return(taggedValue);
 }