示例#1
0
        public override void Destroy()
        {
            if (tabs != null)
            {
                tabs.Destroy();
            }

            if (toolbar != null)
            {
                toolbar.Destroy();
                toolbar = null;
            }

            if (validator != null)
            {
                this.ById("Form").Remove();
                validator = null;
            }

            if (!isPanel)
            {
                element.Dialog().Destroy();
            }

            jQuery.Window.Unbind("." + this.uniqueName);

            base.Destroy();
        }
示例#2
0
        public override void Destroy()
        {
            if (tabs != null)
            {
                tabs.Destroy();
            }

            if (toolbar != null)
            {
                toolbar.Destroy();
                toolbar = null;
            }

            if (validator != null)
            {
                this.ById("Form").Remove();
                validator = null;
            }

            if (!isPanel)
            {
                element.Dialog().Destroy();
            }

            base.Destroy();
        }