Exemplo n.º 1
0
 //- $LoadControlData -//
 private static void LoadControlData(StringKeyValueMap stringKeyValueMap, String blogState)
 {
     Nalarium.Data.Base64StorableMap map = new Nalarium.Data.Base64StorableMap(blogState);
     map.GetKeyList().ForEach((controlKey) =>
     {
         String controlId = map[controlKey];
         String value = Http.Form.Get(controlId);
         //+ re-register
         StateTracker.Set(StateEntryType.ControlId, controlKey, controlId);
         //+ load
         if (!String.IsNullOrEmpty(value))
         {
             stringKeyValueMap.Add(controlKey, new StringKeyValue
             {
                 Key = controlId,
                 Value = value
             });
         }
         else
         {
             stringKeyValueMap.Add(controlKey, new StringKeyValue
             {
                 Key = controlId,
                 Value = null
             });
         }
     });
 }
Exemplo n.º 2
0
 //- $LoadControlData -//
 private static void LoadValueData(StringKeyValueMap stringKeyValueMap, String blogState)
 {
     Nalarium.Data.Base64StorableMap map = new Nalarium.Data.Base64StorableMap(blogState);
     map.GetKeyList().ForEach((key) => StateTracker.Set(StateEntryType.Value, key, map[key]));
 }