public static PropertyResponse TransformToPropertyResponse(PropertyEvaluataion property)
 {
     var result = new PropertyResponse();
     result.Name = property.Name;
     result.Value = property.Value;
     result.Type = property.Type;
     return result;
 }
Example #2
0
 public void DeletePropertyResponse(PropertyResponse response)
 {
     DoWriteOperateion(delegate()
     {
         var old = m_PropertyResponse.FirstOrDefault(r => r.Name == response.Name);
         if (old != null)
         {
             m_PropertyResponse.Remove(old);
         }
     });
 }
Example #3
0
 public void AddPropertyResponse(PropertyResponse response)
 {
     DoWriteOperateion(delegate()
     {
         var old = m_PropertyResponse.FirstOrDefault(r => r.Name == response.Name);
         if (old == null)
         {
             m_PropertyResponse.Add(response);
         }
         else
         {
             old.Value = response.Value;
         }
     });
 }
Example #4
0
 private void AddPropertyResponse(PageExample example,
     String eventParameter,
     KeyValuePair<string, Dictionary<string, string>> updateControl,
     List<PropertyResponse> resultValue,
     Dictionary<string, string> updatePropertyList)
 {
     foreach (var updateProperty in updatePropertyList)
     {
         var valueResponse = new PropertyResponse();
         valueResponse.Name = updateProperty.Key;
         valueResponse.Value = updateProperty.Value;
         valueResponse.Type = FindPropertyType(example, updateControl.Key, updateProperty.Key);
         if (ScriptUtility.IsEvaluateScript(updateProperty.Value))
         {
             EvaluateScript(example, eventParameter, updateProperty, updateControl);
         }
         else
         {
             resultValue.Add(valueResponse);
         }
     }
 }