コード例 #1
0
        protected override void InitDialogContent(Control container)
        {
            base.InitDialogContent(container);

            this.ID = "userSelectorDialog";

            HtmlForm form = (HtmlForm)WebControlUtility.FindParentControl(this, typeof(HtmlForm), true);

            if (form != null)
            {
                form.Style["width"]  = "100%";
                form.Style["height"] = "100%";
            }

            this.Width  = Unit.Percentage(100);
            this.Height = Unit.Percentage(100);

            InitUserInputControl(WebControlUtility.FindControlByHtmlIDProperty(container, "userInputContainer", true));

            if (this.IsConsign)
            {
                InitConsignTypeSelector(WebControlUtility.FindControlByHtmlIDProperty(container, "consignTypeContainer", true));
                InitSequenceTypeSelector(WebControlUtility.FindControlByHtmlIDProperty(container, "sequenceTypeContainer", true));
            }
        }
コード例 #2
0
ファイル: ServiceImport.cs プロジェクト: wooln/AK47Source
        protected override void InitDialogContent(Control container)
        {
            base.InitDialogContent(container);
            this.ID = "ServiceImportDialog";

            HtmlForm form = (HtmlForm)WebControlUtility.FindParentControl(this, typeof(HtmlForm), true);

            if (form != null)
            {
                form.Style["width"]  = "100%";
                form.Style["height"] = "100%";
            }
            this.DialogTitle = "ServiceImport";
            this.Width       = Unit.Percentage(100);
            this.Height      = Unit.Percentage(100);

            InitChildControls(container);
        }
コード例 #3
0
        protected override void InitDialogContent(Control container)
        {
            base.InitDialogContent(container);
            this.ID = "ImageUploaderDialog";

            HtmlForm form = (HtmlForm)WebControlUtility.FindParentControl(this, typeof(HtmlForm), true);

            if (form != null)
            {
                form.Style["width"]  = "100%";
                form.Style["height"] = "100%";
            }
            this.DialogTitle = "上传图片";
            this.Width       = Unit.Percentage(100);
            this.Height      = Unit.Percentage(100);

            InitChildControls(WebControlUtility.FindControlByHtmlIDProperty(container, "imageUploader_container", true));
        }
コード例 #4
0
        protected override void InitDialogContent(Control container)
        {
            this.rootContainer = container;

            base.InitDialogContent(container);

            container.Controls.Add(this.tree);

            HtmlForm form = (HtmlForm)WebControlUtility.FindParentControl(this, typeof(HtmlForm), true);

            if (form != null)
            {
                form.Style["width"]  = "100%";
                form.Style["height"] = "100%";
            }

            this.Width  = Unit.Percentage(100);
            this.Height = Unit.Percentage(100);
        }