private void ObjectSpace_ObjectsGetting(object sender, ObjectsGettingEventArgs e)
 {
     if (e.ObjectType == typeof(LiveSummary))
     {
         var keys = LiveSummaryPresetStorage.GetAllKeys();
         e.Objects = keys.Select(key => GetObjectByKey(key)).ToList();
     }
 }
        private LiveSummary GetObjectByKey(Guid key)
        {
            LiveSummary obj = null;

            if (!objectMap.TryGetValue(key, out obj))
            {
                var data = LiveSummaryPresetStorage.GetDataByKey(key);
                if (data != null)
                {
                    obj = new LiveSummary();
                    obj.SetKey((Guid)key);
                    obj.SetName(data.Name);
                    obj.SetPeriod(data.Period);
                    obj.SetStatus(data.Status);
                    objectMap.Add(key, obj);
                }
            }
            return(obj);
        }