public void SetManager(ControlEventsManager _manager) { Debug.Assert(_manager != null, c_AssertPrefix + "Invalid manager"); Debug.Assert((m_EventsManager == null) || (m_EventsManager == _manager), c_AssertPrefix + "Can't change manager"); m_EventsManager = _manager; }
protected override void Control_SetProperties() { if (IsRendered) { Dictionary options = AssembleOptions(); Logging.Log(LoggingType.Debug, "Dialog settings", new object[] { options }); jQueryExtension.Select <jQueryUIObject>("#" + ControlId).Dialog(options); base.Control_SetProperties(); if (DisableCloseButton) { removeCloseButton(); } OnClose.Add(delegate { Logging.Log(LoggingType.Debug, "Firing Unload from OnClose event", null); Unload(); }, null); ControlEventsManager.Rebind(); } }