Ejemplo n.º 1
0
        public void setValue(string key, object value)
        {
            __CustomDataStore.refresh( );
            ACustomDataValue cdv = CustomData.setValue(CustomDataStore, key, value, this);

            cdv.Competitor = this;
        }
Ejemplo n.º 2
0
 public void removeCustomDataValue(ACustomDataValue Value)
 {
     if (Value != null)
     {
         //!**!
         DState.IO.Delete <ACustomDataValue> (Value);
     }
     //_CustomDataStore.Remove ( Value );
 }
Ejemplo n.º 3
0
 public void addCustomDataValue(ACustomDataValue Value)
 {
     if (Value != null)
     {
         Value.Competitor = this;
         DState.IO.Add <ACustomDataValue> (Value);
         //_CustomDataStore.Add ( Value );
     }
 }
 public void addCustomDataValue(ACustomDataValue Value)
 {
     if (Value != null)
     {
         Value.Championship = this;
         DState.IO.Add <ACustomDataValue> (Value);
         //_CustomDataStore.Add ( Value );
     }
 }
        public static ACustomDataValue deleteField(ACustomDataValue[] data, ICustomData obj, string key)
        {
            if (customFieldExists(data, key))
            {
                ACustomDataValue cdv = (from c in data where c.key == key select c).First();

                cdv.Event        = null;    // Marks the cdv for deletion
                cdv.Championship = null;    // Marks the cdv for deletion
                cdv.Competitor   = null;    // Marks the cdv for deletion

                return(cdv);
            }

            return(null);
        }
        public static ACustomDataValue setValue(ACustomDataValue[] data, string key, object value, ICustomData obj)
        {
            if (!customFieldExists(data, key))
            {
                if (value is int)
                {
                    createIntField(data, obj, key);
                }
                else if (value is string)
                {
                    createStringField(data, obj, key);
                }
            }

            ACustomDataValue cdv = data.Where(x => x.key == key).First();

            cdv.setValue(value);
            cdv.Save( );
            return(cdv);
        }
Ejemplo n.º 7
0
 public void createStringField(string key)
 {
     ACustomDataValue cdv = CustomData.createStringField(CustomDataStore, this, key);
     //cdv.ACompetitor_ID = this.ID;
     //cdv.Competitor = this;
 }