Пример #1
0
        private void BuildReportTabs()
        {
            Text = Strings.PropertyDialog_BuildReportTabs_ReportProperties;

            var rc = new ReportCtl(_Draw);

            AddTab(Strings.PropertyDialog_BuildReportTabs_Report, rc);

            var pc = new ReportParameterCtl(_Draw);

            AddTab(Strings.PropertyDialog_BuildReportTabs_Parameters, pc);

            var xc = new ReportXmlCtl(_Draw);

            AddTab(Strings.PropertyDialog_BuildReportTabs_XMLRendering, xc);

            var bc = new BodyCtl(_Draw);

            AddTab(Strings.PropertyDialog_BuildReportTabs_Body, bc);

            var cc = new CodeCtl(_Draw);

            AddTab(Strings.PropertyDialog_BuildReportTabs_Code, cc);

            var mc = new ModulesClassesCtl(_Draw);

            AddTab(Strings.PropertyDialog_BuildReportTabs_Modules_Classes, mc);
        }
        private void BuildReportTabs()
        {
            this.Text = "Report Properties";

            ReportCtl rc = new ReportCtl(_Draw);

            AddTab("Report", rc);

            ReportParameterCtl pc = new ReportParameterCtl(_Draw);

            AddTab("Parameters", pc);

            ReportXmlCtl xc = new ReportXmlCtl(_Draw);

            AddTab("XML Rendering", xc);

            BodyCtl bc = new BodyCtl(_Draw);

            AddTab("Body", bc);

            CodeCtl cc = new CodeCtl(_Draw);

            AddTab("Code", cc);

            ModulesClassesCtl mc = new ModulesClassesCtl(_Draw);

            AddTab("Modules/Classes", mc);
            return;
        }
Пример #3
0
        private void BuildReportTabs()
        {
            this.Text = "报表属性";

            ReportCtl rc = new ReportCtl(_Draw);

            AddTab("报表", rc);

            ReportParameterCtl pc = new ReportParameterCtl(_Draw);

            AddTab("参数", pc);

            ReportXmlCtl xc = new ReportXmlCtl(_Draw);

            AddTab("XML", xc);

            BodyCtl bc = new BodyCtl(_Draw);

            AddTab("表体", bc);

            CodeCtl cc = new CodeCtl(_Draw);

            AddTab("代码", cc);

            ModulesClassesCtl mc = new ModulesClassesCtl(_Draw);

            AddTab("模块/类", mc);
            return;
        }
Пример #4
0
        internal SingleCtlDialog(DesignCtl dc, DesignXmlDraw dxDraw, List<XmlNode> sNodes,
            SingleCtlTypeEnum type, string[] names)
        {
            this._Type = type;
            this._DesignCtl = dc;
            this._Draw = dxDraw;
            this._Nodes = sNodes;

            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //   Add the control for the selected ReportItems
            //     We could have forced the user to create this (and maybe should have)
            //     instead of using an enum.
            UserControl uc = null;
            string title = null;
            switch (type)
            {
                case SingleCtlTypeEnum.InteractivityCtl:
                    title = " - Interactivty";
                    uc = new InteractivityCtl(dxDraw, sNodes);
                    break;
                case SingleCtlTypeEnum.VisibilityCtl:
                    title = " - Visibility";
                    uc = new VisibilityCtl(dxDraw, sNodes);
                    break;
                case SingleCtlTypeEnum.BorderCtl:
                    title = " - Borders";
                    uc = new StyleBorderCtl(dxDraw, names, sNodes);
                    break;
                case SingleCtlTypeEnum.FontCtl:
                    title = " - Font";
                    uc = new FontCtl(dxDraw, names, sNodes);
                    break;
                case SingleCtlTypeEnum.BackgroundCtl:
                    title = " - Background";
                    uc = new BackgroundCtl(dxDraw, names, sNodes);
                    break;
                case SingleCtlTypeEnum.ImageCtl:
                    title = " - Image";
                    uc = new ImageCtl(dxDraw, sNodes);
                    break;
                case SingleCtlTypeEnum.SubreportCtl:
                    title = " - Subreport";
                    uc = new SubreportCtl(dxDraw, sNodes[0]);
                    break;
                case SingleCtlTypeEnum.FiltersCtl:
                    title = " - Filter";
                    uc = new FiltersCtl(dxDraw, sNodes[0]);
                    break;
                case SingleCtlTypeEnum.SortingCtl:
                    title = " - Sorting";
                    uc = new SortingCtl(dxDraw, sNodes[0]);
                    break;
                case SingleCtlTypeEnum.GroupingCtl:
                    title = " - Grouping";
                    uc = new GroupingCtl(dxDraw, sNodes[0]);
                    break;
                case SingleCtlTypeEnum.ReportParameterCtl:
                    title = " - Report Parameters";
                    uc = new ReportParameterCtl(dxDraw);
                    break;
                case SingleCtlTypeEnum.ReportCodeCtl:
                    title = " - Code";
                    uc = new CodeCtl(dxDraw);
                    break;
                case SingleCtlTypeEnum.ReportModulesClassesCtl:
                    title = " - Modules and Classes";
                    uc = new ModulesClassesCtl(dxDraw);
                    break;
            }
            _Ctl = uc as IProperty;
            if (title != null)
                this.Text = this.Text + title;

            if (uc == null)
                return;
            int h = uc.Height;
            int w = uc.Width;
            uc.Top = 0;
            uc.Left = 0;
            uc.Dock = DockStyle.Fill;
            uc.Parent = this.pMain;
            this.Height = h + (this.Height - pMain.Height);
            this.Width = w + (this.Width - pMain.Width);
            this.ResumeLayout(true);
        }
Пример #5
0
        private void BuildReportTabs()
        {
            Text = Strings.PropertyDialog_BuildReportTabs_ReportProperties;

            var rc = new ReportCtl(_Draw);
            AddTab(Strings.PropertyDialog_BuildReportTabs_Report, rc);

            var pc = new ReportParameterCtl(_Draw);
            AddTab(Strings.PropertyDialog_BuildReportTabs_Parameters, pc);

            var xc = new ReportXmlCtl(_Draw);
            AddTab(Strings.PropertyDialog_BuildReportTabs_XMLRendering, xc);

            var bc = new BodyCtl(_Draw);
            AddTab(Strings.PropertyDialog_BuildReportTabs_Body, bc);

            var cc = new CodeCtl(_Draw);
            AddTab(Strings.PropertyDialog_BuildReportTabs_Code, cc);

            var mc = new ModulesClassesCtl(_Draw);
            AddTab(Strings.PropertyDialog_BuildReportTabs_Modules_Classes, mc);
        }
Пример #6
0
		private void BuildReportTabs()
		{
			this.Text = "Report Properties";

			ReportCtl rc = new ReportCtl(_Draw);
			AddTab("Report", rc);

			ReportParameterCtl pc = new ReportParameterCtl(_Draw);
			AddTab("Parameters", pc);

			ReportXmlCtl xc = new ReportXmlCtl(_Draw);
			AddTab("XML Rendering", xc);

			BodyCtl bc = new BodyCtl(_Draw);
			AddTab("Body", bc);

			CodeCtl cc = new CodeCtl(_Draw);
			AddTab("Code", cc);

			ModulesClassesCtl mc = new ModulesClassesCtl(_Draw);
			AddTab("Modules/Classes", mc);
			return;
		}
        internal SingleCtlDialog(DesignCtl dc, DesignXmlDraw dxDraw, List <XmlNode> sNodes,
                                 SingleCtlTypeEnum type, string[] names)
        {
            this._Type      = type;
            this._DesignCtl = dc;
            this._Draw      = dxDraw;
            this._Nodes     = sNodes;

            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //   Add the control for the selected ReportItems
            //     We could have forced the user to create this (and maybe should have)
            //     instead of using an enum.
            UserControl uc    = null;
            string      title = null;

            switch (type)
            {
            case SingleCtlTypeEnum.InteractivityCtl:
                title = " - Interactivty";
                uc    = new InteractivityCtl(dxDraw, sNodes);
                break;

            case SingleCtlTypeEnum.VisibilityCtl:
                title = " - Visibility";
                uc    = new VisibilityCtl(dxDraw, sNodes);
                break;

            case SingleCtlTypeEnum.BorderCtl:
                title = " - Borders";
                uc    = new StyleBorderCtl(dxDraw, names, sNodes);
                break;

            case SingleCtlTypeEnum.FontCtl:
                title = " - Font";
                uc    = new FontCtl(dxDraw, names, sNodes);
                break;

            case SingleCtlTypeEnum.BackgroundCtl:
                title = " - Background";
                uc    = new BackgroundCtl(dxDraw, names, sNodes);
                break;

            case SingleCtlTypeEnum.ImageCtl:
                title = " - Image";
                uc    = new ImageCtl(dxDraw, sNodes);
                break;

            case SingleCtlTypeEnum.SubreportCtl:
                title = " - Subreport";
                uc    = new SubreportCtl(dxDraw, sNodes[0]);
                break;

            case SingleCtlTypeEnum.FiltersCtl:
                title = " - Filter";
                uc    = new FiltersCtl(dxDraw, sNodes[0]);
                break;

            case SingleCtlTypeEnum.SortingCtl:
                title = " - Sorting";
                uc    = new SortingCtl(dxDraw, sNodes[0]);
                break;

            case SingleCtlTypeEnum.GroupingCtl:
                title = " - Grouping";
                uc    = new GroupingCtl(dxDraw, sNodes[0]);
                break;

            case SingleCtlTypeEnum.ReportParameterCtl:
                title = " - Report Parameters";
                uc    = new ReportParameterCtl(dxDraw);
                break;

            case SingleCtlTypeEnum.ReportCodeCtl:
                title = " - Code";
                uc    = new CodeCtl(dxDraw);
                break;

            case SingleCtlTypeEnum.ReportModulesClassesCtl:
                title = " - Modules and Classes";
                uc    = new ModulesClassesCtl(dxDraw);
                break;
            }
            _Ctl = uc as IProperty;
            if (title != null)
            {
                this.Text = this.Text + title;
            }

            if (uc == null)
            {
                return;
            }
            int h = uc.Height;
            int w = uc.Width;

            uc.Top      = 0;
            uc.Left     = 0;
            uc.Dock     = DockStyle.Fill;
            uc.Parent   = this.pMain;
            this.Height = h + (this.Height - pMain.Height);
            this.Width  = w + (this.Width - pMain.Width);
            this.ResumeLayout(true);
        }