示例#1
0
 public LogicValue this[string key]
 {
     get
     {
         if (!this.ContainsKey(key))
         {
             LogicValue logicValue = new LogicValue();
             logicValue.Key         = key;
             logicValue.TargetIndex = this.TargetIndex;
             ValueDic.Add(key, logicValue);
         }
         return(this.ValueDic[key]);
     }
     set
     {
         if (!this.ContainsKey(key))
         {
             ValueDic.Add(key, value);
         }
         else
         {
             ValueDic[key] = value;
         }
     }
 }
示例#2
0
        public LogicValue AddValue()
        {
            LogicValue temp = new LogicValue();

            Value.Add(temp);
            return(temp);
        }
示例#3
0
 public virtual void SetValue(LogicValue value)
 {
     if (this.ShareData == null)
     {
         this.ShareData = new LogicData(this.Guid, this.CurrentLogicObject);
     }
     this.ShareData.SetValue(value);
 }
示例#4
0
 public void SetValue(LogicValue value)
 {
     this.SetValue(value.Key, value.Data);
 }