private void RegisterRefreshEvent() { if (_control == null || _eventInfo == null) { return; } _eventInfo.AddEventHandler(_control, GetHandlerDelegate()); // This is not a great way of tracking this, since you could conceivably have multiple // parameters on a page for the same control.... RefreshEventInfo ei = new RefreshEventInfo() { Control = _control, EventName = RefreshEventName, RefreshAction = () => { SetValueFromControl(); } }; __map.Add(_control, ei); }
private void RegisterRefreshEvent() { if (_control == null || _eventInfo == null) return; _eventInfo.AddEventHandler(_control, GetHandlerDelegate()); // This is not a great way of tracking this, since you could conceivably have multiple // parameters on a page for the same control.... RefreshEventInfo ei = new RefreshEventInfo() { Control = _control, EventName = RefreshEventName, RefreshAction = () => { SetValueFromControl(); } }; __map.Add(_control, ei); }