private string GetTemplateContent(ITemplate template, string id)
        {
            DesignerPanel contentPanel = new DesignerPanel();

            contentPanel.ID = id;

            template.InstantiateIn(contentPanel);
            IDesignerHost host = (IDesignerHost)GetService(typeof(IDesignerHost));

            Debug.Assert(host != null, "Failed to get IDesignerHost?!?");


            StringBuilder persistedControl = new StringBuilder(1024);

            foreach (System.Web.UI.Control c in contentPanel.Controls)
            {
                persistedControl.Append(ControlPersister.PersistControl(c, host));
            }
            return(persistedControl.ToString());
        }
Exemple #2
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources       = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            Syncfusion.Windows.Forms.BannerTextInfo        bannerTextInfo1 = new Syncfusion.Windows.Forms.BannerTextInfo();
            this.chartControl1       = new Syncfusion.Windows.Forms.Chart.ChartControl();
            this.chartTitle1         = new Syncfusion.Windows.Forms.Chart.ChartTitle();
            this.chartTitle2         = new Syncfusion.Windows.Forms.Chart.ChartTitle();
            this.toolTip1            = new System.Windows.Forms.ToolTip(this.components);
            this.btnDeleteTitle      = new System.Windows.Forms.Button();
            this.button_Addtitle     = new System.Windows.Forms.Button();
            this.imageListAdv1       = new Syncfusion.Windows.Forms.Tools.ImageListAdv(this.components);
            this.bannerTextProvider1 = new Syncfusion.Windows.Forms.BannerTextProvider(this.components);
            this.txtChartTitle       = new System.Windows.Forms.TextBox();
            this.designerPanel1      = new DesignerPanel();
            this.label5 = new System.Windows.Forms.Label();
            this.comboBox_TitlesDocking = new System.Windows.Forms.ComboBox();
            this.label4        = new System.Windows.Forms.Label();
            this.chkVisible    = new System.Windows.Forms.CheckBox();
            this.cmbAlignment  = new System.Windows.Forms.ComboBox();
            this.label1        = new System.Windows.Forms.Label();
            this.cmbChartTitle = new System.Windows.Forms.ComboBox();
            this.label2        = new System.Windows.Forms.Label();
            this.label3        = new System.Windows.Forms.Label();
            this.label13       = new System.Windows.Forms.Label();
            this.chartControl1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.designerPanel1)).BeginInit();
            this.designerPanel1.SuspendLayout();
            this.SuspendLayout();
            //
            // chartControl1
            //
            this.chartControl1.BackInterior = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Vertical, new System.Drawing.Color[] {
                System.Drawing.Color.White,
                System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(97)))), ((int)(((byte)(159))))),
                System.Drawing.Color.FromArgb(((int)(((byte)(23)))), ((int)(((byte)(119)))), ((int)(((byte)(174))))),
                System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(140)))), ((int)(((byte)(189))))),
                System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(150)))), ((int)(((byte)(194))))),
                System.Drawing.Color.FromArgb(((int)(((byte)(6)))), ((int)(((byte)(80)))), ((int)(((byte)(149)))))
            });
            this.chartControl1.BorderAppearance.SkinStyle = Syncfusion.Windows.Forms.Chart.ChartBorderSkinStyle.Embed;
            this.chartControl1.ChartArea.BackInterior     = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Vertical, System.Drawing.Color.Transparent, System.Drawing.Color.Transparent);
            this.chartControl1.ChartArea.CursorLocation   = new System.Drawing.Point(0, 0);
            this.chartControl1.ChartArea.CursorReDraw     = false;
            this.chartControl1.ChartArea.XAxesLayoutMode  = Syncfusion.Windows.Forms.Chart.ChartAxesLayoutMode.SideBySide;
            this.chartControl1.ChartArea.YAxesLayoutMode  = Syncfusion.Windows.Forms.Chart.ChartAxesLayoutMode.SideBySide;
            this.chartControl1.ChartAreaMargins           = new Syncfusion.Windows.Forms.Chart.ChartMargins(1, 5, 3, 1);
            this.chartControl1.ChartInterior  = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Vertical, System.Drawing.Color.White, System.Drawing.Color.White);
            this.chartControl1.DataSourceName = "";
            this.chartControl1.Font           = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.chartControl1.IsWindowLess   = false;
            //
            //
            //
            this.chartControl1.Legend.Font               = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.chartControl1.Legend.ForeColor          = System.Drawing.Color.Black;
            this.chartControl1.Legend.Location           = new System.Drawing.Point(66, 437);
            this.chartControl1.Legend.Orientation        = Syncfusion.Windows.Forms.Chart.ChartOrientation.Horizontal;
            this.chartControl1.Legend.Position           = Syncfusion.Windows.Forms.Chart.ChartDock.Bottom;
            this.chartControl1.Legend.RepresentationType = Syncfusion.Windows.Forms.Chart.ChartLegendRepresentationType.None;
            this.chartControl1.Legend.ShowBorder         = true;
            this.chartControl1.Localize = null;
            this.chartControl1.Location = new System.Drawing.Point(0, 0);
            this.chartControl1.Name     = "chartControl1";

            this.chartControl1.PrimaryXAxis.Title          = "Days";
            this.chartControl1.PrimaryXAxis.LabelAlignment = StringAlignment.Center;
            this.chartControl1.PrimaryYAxis.Margin         = true;
            this.chartControl1.PrimaryYAxis.Title          = "Efficiency";
            this.chartControl1.Size     = new System.Drawing.Size(700, 547);
            this.chartControl1.TabIndex = 1;
            this.chartControl1.Text     = "Efficeincy of oil-fired power production";
            //
            //
            //
            this.chartControl1.Title.Font      = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(161)));
            this.chartControl1.Title.ForeColor = System.Drawing.Color.Black;
            this.chartControl1.Title.Margin    = 1;
            this.chartControl1.Title.Name      = "Def_title";
            this.chartControl1.Title.Text      = "Efficeincy of oil-fired power production";
            this.chartControl1.Titles.Add(this.chartTitle1);
            this.chartControl1.Titles.Add(this.chartTitle2);
            this.chartControl1.ChartFormatAxisLabel += new Syncfusion.Windows.Forms.Chart.ChartFormatAxisLabelEventHandler(this.chartControl1_ChartFormatAxisLabel);
            //
            // chartTitle1
            //
            this.chartTitle1.Border.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(8)))), ((int)(((byte)(78)))), ((int)(((byte)(148)))));
            this.chartTitle1.Border.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
            this.chartTitle1.Border.PenType   = System.Drawing.Drawing2D.PenType.PathGradient;
            this.chartTitle1.Font             = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(161)));
            this.chartTitle1.ForeColor        = System.Drawing.Color.Black;
            this.chartTitle1.Margin           = 1;
            this.chartTitle1.Name             = "chartTitle1";
            this.chartTitle1.Text             = "India";
            //
            // chartTitle2
            //
            this.chartTitle2.Alignment = Syncfusion.Windows.Forms.Chart.ChartAlignment.Center;
            this.chartTitle2.Font      = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(161)));
            this.chartTitle2.ForeColor = System.Drawing.Color.Black;
            this.chartTitle2.Margin    = 1;
            this.chartTitle2.Name      = "chartTitle2";
            this.chartTitle2.Position  = Syncfusion.Windows.Forms.Chart.ChartDock.Bottom;
            this.chartTitle2.Text      = "Germany";
            //
            // btnDeleteTitle
            //
            this.btnDeleteTitle.Font      = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnDeleteTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
            this.btnDeleteTitle.Location  = new System.Drawing.Point(199, 340);
            this.btnDeleteTitle.Name      = "btnDeleteTitle";
            this.btnDeleteTitle.Size      = new System.Drawing.Size(29, 29);
            this.btnDeleteTitle.TabIndex  = 72;
            this.btnDeleteTitle.Text      = "-";
            this.toolTip1.SetToolTip(this.btnDeleteTitle, "Remove Title");
            this.btnDeleteTitle.UseVisualStyleBackColor = true;
            this.btnDeleteTitle.Click += new System.EventHandler(this.btnDeleteTitle_Click);
            //
            // button_Addtitle
            //
            this.button_Addtitle.Enabled   = false;
            this.button_Addtitle.Font      = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.button_Addtitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
            this.button_Addtitle.Location  = new System.Drawing.Point(199, 131);
            this.button_Addtitle.Name      = "button_Addtitle";
            this.button_Addtitle.Size      = new System.Drawing.Size(29, 29);
            this.button_Addtitle.TabIndex  = 51;
            this.button_Addtitle.Text      = "+";
            this.toolTip1.SetToolTip(this.button_Addtitle, "Add Title");
            this.button_Addtitle.UseVisualStyleBackColor = true;
            this.button_Addtitle.Click += new System.EventHandler(this.button_Addtitle_Click);
            //
            // imageListAdv1
            //
            this.imageListAdv1.Images.AddRange(new System.Drawing.Image[] {
                ((System.Drawing.Image)(resources.GetObject("imageListAdv1.Images"))),
                ((System.Drawing.Image)(resources.GetObject("imageListAdv1.Images1")))
            });
            //
            // txtChartTitle
            //
            bannerTextInfo1.Text    = "Enter the text and press + button";
            bannerTextInfo1.Visible = true;
            this.bannerTextProvider1.SetBannerText(this.txtChartTitle, bannerTextInfo1);
            this.txtChartTitle.Font         = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtChartTitle.ForeColor    = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
            this.txtChartTitle.Location     = new System.Drawing.Point(33, 132);
            this.txtChartTitle.Name         = "txtChartTitle";
            this.txtChartTitle.Size         = new System.Drawing.Size(157, 27);
            this.txtChartTitle.TabIndex     = 50;
            this.txtChartTitle.TextChanged += new System.EventHandler(this.txtChartTitle_TextChanged);
            //
            // designerPanel1
            //
            this.designerPanel1.BackColor       = System.Drawing.Color.WhiteSmoke;
            this.designerPanel1.BackgroundColor = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.None, new System.Drawing.Color[] {
                System.Drawing.Color.Transparent,
                System.Drawing.Color.FromArgb(((int)(((byte)(218)))), ((int)(((byte)(230)))), ((int)(((byte)(242))))),
                System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(236)))), ((int)(((byte)(243))))),
                System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(239)))), ((int)(((byte)(245))))),
                System.Drawing.Color.Transparent
            });
            this.designerPanel1.BorderColor = System.Drawing.Color.Transparent;
            this.designerPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.designerPanel1.Controls.Add(this.label5);
            this.designerPanel1.Controls.Add(this.comboBox_TitlesDocking);
            this.designerPanel1.Controls.Add(this.label4);
            this.designerPanel1.Controls.Add(this.chkVisible);
            this.designerPanel1.Controls.Add(this.cmbAlignment);
            this.designerPanel1.Controls.Add(this.label1);
            this.designerPanel1.Controls.Add(this.btnDeleteTitle);
            this.designerPanel1.Controls.Add(this.cmbChartTitle);
            this.designerPanel1.Controls.Add(this.label2);
            this.designerPanel1.Controls.Add(this.txtChartTitle);
            this.designerPanel1.Controls.Add(this.label3);
            this.designerPanel1.Controls.Add(this.label13);
            this.designerPanel1.Controls.Add(this.button_Addtitle);
            this.designerPanel1.Dock        = System.Windows.Forms.DockStyle.Right;
            this.designerPanel1.Font        = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.designerPanel1.ForeColor   = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
            this.designerPanel1.HeaderImage = null;
            this.designerPanel1.HeaderText  = "";
            this.designerPanel1.Location    = new System.Drawing.Point(706, 0);
            this.designerPanel1.Name        = "designerPanel1";
            this.designerPanel1.Size        = new System.Drawing.Size(248, 581);
            this.designerPanel1.TabIndex    = 145;
            //
            // label5
            //
            this.label5.AutoSize  = true;
            this.label5.Font      = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
            this.label5.Location  = new System.Drawing.Point(28, 30);
            this.label5.Name      = "label5";
            this.label5.Size      = new System.Drawing.Size(174, 25);
            this.label5.TabIndex  = 131;
            this.label5.Text      = "Title Customization";
            //
            // comboBox_TitlesDocking
            //
            this.comboBox_TitlesDocking.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.comboBox_TitlesDocking.Font              = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.comboBox_TitlesDocking.ForeColor         = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
            this.comboBox_TitlesDocking.FormattingEnabled = true;
            this.comboBox_TitlesDocking.Items.AddRange(new object[] {
                "Left",
                "Right",
                "Top",
                "Bottom",
                "Floating"
            });
            this.comboBox_TitlesDocking.Location              = new System.Drawing.Point(35, 267);
            this.comboBox_TitlesDocking.Name                  = "comboBox_TitlesDocking";
            this.comboBox_TitlesDocking.Size                  = new System.Drawing.Size(156, 28);
            this.comboBox_TitlesDocking.TabIndex              = 52;
            this.comboBox_TitlesDocking.SelectedIndexChanged += new System.EventHandler(this.comboBox_TitlesDocking_SelectedIndexChanged);
            //
            // label4
            //
            this.label4.AutoSize  = true;
            this.label4.Font      = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
            this.label4.Location  = new System.Drawing.Point(32, 240);
            this.label4.Name      = "label4";
            this.label4.Size      = new System.Drawing.Size(62, 20);
            this.label4.TabIndex  = 129;
            this.label4.Text      = "Position";
            //
            // chkVisible
            //
            this.chkVisible.AutoSize   = true;
            this.chkVisible.Checked    = true;
            this.chkVisible.CheckState = System.Windows.Forms.CheckState.Checked;
            this.chkVisible.Font       = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.chkVisible.ForeColor  = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
            this.chkVisible.Location   = new System.Drawing.Point(35, 70);
            this.chkVisible.Name       = "chkVisible";
            this.chkVisible.Size       = new System.Drawing.Size(97, 24);
            this.chkVisible.TabIndex   = 59;
            this.chkVisible.Text       = "Show Title";
            this.chkVisible.UseVisualStyleBackColor = true;
            this.chkVisible.CheckedChanged         += new System.EventHandler(this.chkVisible_CheckedChanged);
            //
            // cmbAlignment
            //
            this.cmbAlignment.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbAlignment.Font              = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cmbAlignment.ForeColor         = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
            this.cmbAlignment.FormattingEnabled = true;
            this.cmbAlignment.Items.AddRange(new object[] {
                "Center",
                "Far",
                "Near"
            });
            this.cmbAlignment.Location              = new System.Drawing.Point(34, 199);
            this.cmbAlignment.Name                  = "cmbAlignment";
            this.cmbAlignment.Size                  = new System.Drawing.Size(157, 28);
            this.cmbAlignment.TabIndex              = 56;
            this.cmbAlignment.SelectedIndexChanged += new System.EventHandler(this.cmbAlignment_SelectedIndexChanged);
            //
            // label1
            //
            this.label1.AutoSize  = true;
            this.label1.Font      = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
            this.label1.Location  = new System.Drawing.Point(31, 170);
            this.label1.Name      = "label1";
            this.label1.Size      = new System.Drawing.Size(78, 20);
            this.label1.TabIndex  = 128;
            this.label1.Text      = "Alignment";
            //
            // cmbChartTitle
            //
            this.cmbChartTitle.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbChartTitle.Font                  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cmbChartTitle.ForeColor             = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
            this.cmbChartTitle.FormattingEnabled     = true;
            this.cmbChartTitle.Location              = new System.Drawing.Point(34, 341);
            this.cmbChartTitle.Name                  = "cmbChartTitle";
            this.cmbChartTitle.Size                  = new System.Drawing.Size(157, 28);
            this.cmbChartTitle.TabIndex              = 53;
            this.cmbChartTitle.SelectedIndexChanged += new System.EventHandler(this.comboBox4_SelectedIndexChanged);
            //
            // label2
            //
            this.label2.AutoSize  = true;
            this.label2.Font      = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
            this.label2.Location  = new System.Drawing.Point(32, 308);
            this.label2.Name      = "label2";
            this.label2.Size      = new System.Drawing.Size(82, 20);
            this.label2.TabIndex  = 127;
            this.label2.Text      = "Select Title";
            //
            // label3
            //
            this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
            this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
            this.label3.Location  = new System.Drawing.Point(-37, -213);
            this.label3.Name      = "label3";
            this.label3.Size      = new System.Drawing.Size(2, 781);
            this.label3.TabIndex  = 130;
            //
            // label13
            //
            this.label13.AutoSize  = true;
            this.label13.Font      = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
            this.label13.Location  = new System.Drawing.Point(31, 105);
            this.label13.Name      = "label13";
            this.label13.Size      = new System.Drawing.Size(70, 20);
            this.label13.TabIndex  = 126;
            this.label13.Text      = "Add Title";
            //
            // Form1
            //
            this.BackColor  = System.Drawing.Color.White;
            this.ClientSize = new System.Drawing.Size(954, 581);
            this.Controls.Add(this.chartControl1);
            this.Controls.Add(this.designerPanel1);
            this.Icon                = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MinimumSize         = new System.Drawing.Size(556, 543);
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.Name                = "Form1";
            this.StartPosition       = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text                = "Title Customization";
            this.Load               += new System.EventHandler(this.Form1_Load);
            this.chartControl1.ResumeLayout(false);
            this.chartControl1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.designerPanel1)).EndInit();
            this.designerPanel1.ResumeLayout(false);
            this.designerPanel1.PerformLayout();
            this.ResumeLayout(false);
        }
Exemple #3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain));
     this.chartControl1  = new Syncfusion.Windows.Forms.Chart.ChartControl();
     this.designerPanel1 = new DesignerPanel();
     this.label1         = new System.Windows.Forms.Label();
     this.buttonAdv1     = new System.Windows.Forms.Button();
     this.buttonAdv4     = new System.Windows.Forms.Button();
     this.checkBox1      = new System.Windows.Forms.CheckBox();
     this.buttonAdv3     = new System.Windows.Forms.Button();
     this.buttonAdv2     = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)(this.designerPanel1)).BeginInit();
     this.designerPanel1.SuspendLayout();
     this.SuspendLayout();
     //
     // chartControl1
     //
     this.chartControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.chartControl1.ChartArea.CursorLocation = new System.Drawing.Point(0, 0);
     this.chartControl1.ChartArea.CursorReDraw   = false;
     this.chartControl1.Cursor         = System.Windows.Forms.Cursors.Arrow;
     this.chartControl1.DataSourceName = "";
     this.chartControl1.IsWindowLess   = false;
     //
     //
     //
     this.chartControl1.Legend.Font        = new System.Drawing.Font("Segoe UI", 10F);
     this.chartControl1.Legend.Location    = new System.Drawing.Point(58, 464);
     this.chartControl1.Legend.Orientation = Syncfusion.Windows.Forms.Chart.ChartOrientation.Horizontal;
     this.chartControl1.Legend.Position    = Syncfusion.Windows.Forms.Chart.ChartDock.Bottom;
     this.chartControl1.Localize           = null;
     this.chartControl1.Location           = new System.Drawing.Point(12, 22);
     this.chartControl1.Name = "chartControl1";
     this.chartControl1.PrimaryXAxis.Crossing = double.NaN;
     this.chartControl1.PrimaryXAxis.Margin   = true;
     this.chartControl1.PrimaryXAxis.SmartDateZoomMonthLevelLabelFormat = "m";
     this.chartControl1.PrimaryYAxis.Crossing = double.NaN;
     this.chartControl1.PrimaryYAxis.Margin   = true;
     this.chartControl1.PrimaryYAxis.SmartDateZoomMonthLevelLabelFormat = "m";
     this.chartControl1.Size     = new System.Drawing.Size(700, 541);
     this.chartControl1.TabIndex = 2;
     this.chartControl1.Text     = "Student admission statistics - 2004 and 2005";
     //
     //
     //
     this.chartControl1.Title.Font   = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.chartControl1.Title.Margin = 2;
     this.chartControl1.Title.Name   = "Def_title";
     this.chartControl1.Titles.Add(this.chartControl1.Title);
     this.chartControl1.ZoomOutIncrement = 1.5D;
     this.chartControl1.ChartAreaPaint  += new System.Windows.Forms.PaintEventHandler(this.chartControl1_ChartAreaPaint);
     //
     // designerPanel1
     //
     this.designerPanel1.Dock            = DockStyle.Right;
     this.designerPanel1.BackColor       = System.Drawing.Color.WhiteSmoke;
     this.designerPanel1.BackgroundColor = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.None, new System.Drawing.Color[] {
         System.Drawing.Color.Transparent,
         System.Drawing.Color.FromArgb(((int)(((byte)(218)))), ((int)(((byte)(230)))), ((int)(((byte)(242))))),
         System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(236)))), ((int)(((byte)(243))))),
         System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(239)))), ((int)(((byte)(245))))),
         System.Drawing.Color.Transparent
     });
     this.designerPanel1.BorderColor = System.Drawing.Color.Transparent;
     this.designerPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.designerPanel1.Controls.Add(this.label1);
     this.designerPanel1.Controls.Add(this.buttonAdv1);
     this.designerPanel1.Controls.Add(this.buttonAdv4);
     this.designerPanel1.Controls.Add(this.checkBox1);
     this.designerPanel1.Controls.Add(this.buttonAdv3);
     this.designerPanel1.Controls.Add(this.buttonAdv2);
     this.designerPanel1.Font        = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.designerPanel1.ForeColor   = System.Drawing.Color.Black;
     this.designerPanel1.HeaderImage = null;
     this.designerPanel1.HeaderText  = "";
     this.designerPanel1.Location    = new System.Drawing.Point(718, 1);
     this.designerPanel1.Name        = "designerPanel1";
     this.designerPanel1.Size        = new System.Drawing.Size(244, 586);
     this.designerPanel1.TabIndex    = 3;
     //
     // label1
     //
     this.label1.AutoSize  = true;
     this.label1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
     this.label1.Location  = new System.Drawing.Point(19, 30);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(131, 32);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "Chart Type";
     //
     // buttonAdv1
     //
     this.buttonAdv1.Font      = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.buttonAdv1.Location  = new System.Drawing.Point(25, 120);
     this.buttonAdv1.TabIndex  = 1;
     this.buttonAdv1.Text      = "Pie";
     this.buttonAdv1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.buttonAdv1.Click    += new System.EventHandler(this.buttonAdv_Click);
     //
     // buttonAdv4
     //
     this.buttonAdv4.Font      = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.buttonAdv4.Location  = new System.Drawing.Point(140, 120);
     this.buttonAdv4.TabIndex  = 4;
     this.buttonAdv4.Text      = "Doughnut";
     this.buttonAdv4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.buttonAdv4.Click    += new System.EventHandler(this.buttonAdv_Click);
     //
     // checkBox1
     //
     this.checkBox1.AutoSize  = true;
     this.checkBox1.Font      = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(66)))), ((int)(((byte)(66)))));
     this.checkBox1.Location  = new System.Drawing.Point(26, 76);
     this.checkBox1.Name      = "checkBox1";
     this.checkBox1.Size      = new System.Drawing.Size(99, 25);
     this.checkBox1.TabIndex  = 4;
     this.checkBox1.Text      = "Enable 3D";
     this.checkBox1.UseVisualStyleBackColor = true;
     this.checkBox1.CheckedChanged         += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // buttonAdv3
     //
     this.buttonAdv3.Font      = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.buttonAdv3.Location  = new System.Drawing.Point(140, 252);
     this.buttonAdv3.Name      = "buttonAdv3";
     this.buttonAdv3.TabIndex  = 3;
     this.buttonAdv3.Text      = "Pyramid";
     this.buttonAdv3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.buttonAdv3.Click    += new System.EventHandler(this.buttonAdv_Click);
     //
     // buttonAdv2
     //
     this.buttonAdv2.Font      = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.buttonAdv2.Location  = new System.Drawing.Point(25, 252);
     this.buttonAdv2.Name      = "buttonAdv2";
     this.buttonAdv2.TabIndex  = 2;
     this.buttonAdv2.Text      = "Funnel";
     this.buttonAdv2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.buttonAdv2.Click    += new System.EventHandler(this.buttonAdv_Click);
     //
     // FormMain
     //
     this.BackColor  = System.Drawing.Color.White;
     this.ClientSize = new System.Drawing.Size(958, 584);
     this.Controls.Add(this.chartControl1);
     this.Controls.Add(this.designerPanel1);
     this.MinimumSize         = new System.Drawing.Size(767, 590);
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Name          = "FormMain";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Dividing Chart Area";
     this.Load         += new System.EventHandler(this.FormMain_Load);
     ((System.ComponentModel.ISupportInitialize)(this.designerPanel1)).EndInit();
     this.designerPanel1.ResumeLayout(false);
     this.designerPanel1.PerformLayout();
     this.ResumeLayout(false);
 }
        private string GetTemplateContent(ITemplate template, string id)
        {
            DesignerPanel contentPanel = new DesignerPanel();
            contentPanel.ID = id;

            template.InstantiateIn(contentPanel);
            IDesignerHost host = (IDesignerHost)GetService(typeof(IDesignerHost));

            Debug.Assert(host != null, "Failed to get IDesignerHost?!?");


            StringBuilder persistedControl = new StringBuilder(1024);
            foreach (System.Web.UI.Control c in contentPanel.Controls)
            {
                persistedControl.Append(ControlPersister.PersistControl(c, host));
            }
            return persistedControl.ToString();
        }
Exemple #5
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormEx));
     this.mGroupBox1    = new Momo.Forms.MGroupBox();
     this.dpDrawPanel   = new SCDesignClient.DesignerPanel();
     this.mTabControl1  = new Momo.Forms.MTabControl();
     this.dtpBase       = new Momo.Forms.DTabPage();
     this.dtpControl    = new Momo.Forms.DTabPage();
     this.dtpCollection = new Momo.Forms.DTabPage();
     this.itemInfo      = new Momo.Forms.MRichTextBox();
     this.mGroupBox1.SuspendLayout();
     this.mTabControl1.SuspendLayout();
     this.SuspendLayout();
     //
     // mGroupBox1
     //
     this.mGroupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                     | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.mGroupBox1.BackColor   = System.Drawing.SystemColors.ScrollBar;
     this.mGroupBox1.BorderColor = System.Drawing.Color.Empty;
     this.mGroupBox1.Controls.Add(this.dpDrawPanel);
     this.mGroupBox1.Location   = new System.Drawing.Point(12, 40);
     this.mGroupBox1.Name       = "mGroupBox1";
     this.mGroupBox1.Padding    = new System.Windows.Forms.Padding(0, 10, 0, 0);
     this.mGroupBox1.Size       = new System.Drawing.Size(667, 582);
     this.mGroupBox1.TabIndex   = 1;
     this.mGroupBox1.Text       = "设计区";
     this.mGroupBox1.TitleColor = System.Drawing.Color.Black;
     this.mGroupBox1.TitleFont  = new System.Drawing.Font("微软雅黑", 10F);
     this.mGroupBox1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.mGroupBox1_MouseDown);
     this.mGroupBox1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.mGroupBox1_MouseMove);
     this.mGroupBox1.MouseUp   += new System.Windows.Forms.MouseEventHandler(this.mGroupBox1_MouseUp);
     //
     // dpDrawPanel
     //
     this.dpDrawPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                      | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.dpDrawPanel.BackColor   = System.Drawing.SystemColors.HighlightText;
     this.dpDrawPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.dpDrawPanel.Location    = new System.Drawing.Point(12, 40);
     this.dpDrawPanel.Name        = "dpDrawPanel";
     this.dpDrawPanel.Size        = new System.Drawing.Size(643, 526);
     this.dpDrawPanel.TabIndex    = 0;
     //
     // mTabControl1
     //
     this.mTabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this.mTabControl1.BackColor   = System.Drawing.SystemColors.ControlDarkDark;
     this.mTabControl1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.mTabControl1.Controls.Add(this.dtpCollection);
     this.mTabControl1.Controls.Add(this.dtpBase);
     this.mTabControl1.Controls.Add(this.dtpControl);
     this.mTabControl1.GridLineColor    = System.Drawing.Color.White;
     this.mTabControl1.Location         = new System.Drawing.Point(685, 40);
     this.mTabControl1.Name             = "mTabControl1";
     this.mTabControl1.SelectedIndex    = 2;
     this.mTabControl1.Size             = new System.Drawing.Size(358, 415);
     this.mTabControl1.TabIndex         = 0;
     this.mTabControl1.Text             = "mTabControl1";
     this.mTabControl1.SelectedChanged += new Momo.Forms.Action(this.mTabControl1_SelectedChanged);
     //
     // dtpBase
     //
     this.dtpBase.AutoScroll         = true;
     this.dtpBase.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpBase.BackColorGradint   = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpBase.BorderBottomColor  = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpBase.BorderBottomWidth  = 1;
     this.dtpBase.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpBase.BorderLeftColor    = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpBase.BorderLeftWidth    = 1;
     this.dtpBase.BorderRightColor   = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpBase.BorderRightWidth   = 1;
     this.dtpBase.BorderTopColor     = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpBase.BorderTopWidth     = 1;
     this.dtpBase.BorderWidth        = 1;
     this.dtpBase.LinearGradientMode = Momo.Forms.GradientMode.Horizontal;
     this.dtpBase.Location           = new System.Drawing.Point(0, 40);
     this.dtpBase.Name     = "dtpBase";
     this.dtpBase.Padding  = new System.Windows.Forms.Padding(0);
     this.dtpBase.Size     = new System.Drawing.Size(358, 375);
     this.dtpBase.TabIndex = 1;
     this.dtpBase.Text     = "组件";
     //
     // dtpControl
     //
     this.dtpControl.AutoScroll         = true;
     this.dtpControl.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpControl.BackColorGradint   = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpControl.BorderBottomColor  = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpControl.BorderBottomWidth  = 1;
     this.dtpControl.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpControl.BorderLeftColor    = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpControl.BorderLeftWidth    = 1;
     this.dtpControl.BorderRightColor   = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpControl.BorderRightWidth   = 1;
     this.dtpControl.BorderStyle        = System.Windows.Forms.ButtonBorderStyle.None;
     this.dtpControl.BorderTopColor     = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpControl.BorderTopWidth     = 1;
     this.dtpControl.BorderWidth        = 1;
     this.dtpControl.LinearGradientMode = Momo.Forms.GradientMode.Horizontal;
     this.dtpControl.Location           = new System.Drawing.Point(0, 40);
     this.dtpControl.Name     = "dtpControl";
     this.dtpControl.Padding  = new System.Windows.Forms.Padding(0);
     this.dtpControl.Size     = new System.Drawing.Size(358, 375);
     this.dtpControl.TabIndex = 3;
     this.dtpControl.Text     = "控制";
     //
     // dtpCollection
     //
     this.dtpCollection.AutoScroll         = true;
     this.dtpCollection.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpCollection.BackColorGradint   = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpCollection.BorderBottomColor  = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpCollection.BorderBottomWidth  = 1;
     this.dtpCollection.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpCollection.BorderLeftColor    = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpCollection.BorderLeftWidth    = 1;
     this.dtpCollection.BorderRightColor   = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpCollection.BorderRightWidth   = 1;
     this.dtpCollection.BorderTopColor     = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(195)))), ((int)(((byte)(199)))));
     this.dtpCollection.BorderTopWidth     = 1;
     this.dtpCollection.BorderWidth        = 1;
     this.dtpCollection.LinearGradientMode = Momo.Forms.GradientMode.Horizontal;
     this.dtpCollection.Location           = new System.Drawing.Point(0, 40);
     this.dtpCollection.Name     = "dtpCollection";
     this.dtpCollection.Padding  = new System.Windows.Forms.Padding(0);
     this.dtpCollection.Size     = new System.Drawing.Size(358, 375);
     this.dtpCollection.TabIndex = 2;
     this.dtpCollection.Text     = "集合";
     //
     // itemInfo
     //
     this.itemInfo.Anchor         = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.itemInfo.BackColor      = System.Drawing.SystemColors.InactiveBorder;
     this.itemInfo.BorderStyle    = System.Windows.Forms.BorderStyle.None;
     this.itemInfo.Location       = new System.Drawing.Point(685, 461);
     this.itemInfo.MaxLines       = 0;
     this.itemInfo.Name           = "itemInfo";
     this.itemInfo.ScrollBars     = System.Windows.Forms.RichTextBoxScrollBars.Horizontal;
     this.itemInfo.Size           = new System.Drawing.Size(358, 161);
     this.itemInfo.TabIndex       = 2;
     this.itemInfo.Text           = "";
     this.itemInfo.WaterForeColor = System.Drawing.SystemColors.WindowText;
     this.itemInfo.WaterText      = "水印文字";
     //
     // FormEx
     //
     this.ClientSize = new System.Drawing.Size(1055, 634);
     this.Controls.Add(this.itemInfo);
     this.Controls.Add(this.mGroupBox1);
     this.Controls.Add(this.mTabControl1);
     this.DoubleBuffered  = true;
     this.Font            = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name            = "FormEx";
     this.Text            = "SCD助手";
     this.Load           += new System.EventHandler(this.FormEx_Load);
     this.mGroupBox1.ResumeLayout(false);
     this.mTabControl1.ResumeLayout(false);
     this.ResumeLayout(false);
 }