private void RegisterDataControl(IRepeatingDataControl control) { if (!string.IsNullOrEmpty(control.DataId)) { DataControls[control.DataId] = control; // If this control was late in registering itself (data has already been // received from the server) then publish the data from the cache to it. if (_controlDataCache.ContainsKey(control.DataId)) { control.PublishData(_controlDataCache[control.DataId]); _controlDataCache.Remove(control.DataId); } } }
private void RegisterDataControl(IRepeatingDataControl control) { if (!string.IsNullOrEmpty(control.DataId)) { DataControls[control.DataId] = control; // If this control was late in registering itself (data has already been // received from the server) then publish the data from the cache to it. if (_controlDataCache.ContainsKey(control.DataId)) { control.PublishData(_controlDataCache[control.DataId]); _controlDataCache.Remove(control.DataId); } } }