Пример #1
0
        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();
            }
        }