Ejemplo n.º 1
0
        private void InitializeGrid()
        {
            #region Style prerequistes
            GridStyleInfo standard = gridControl1.BaseStylesMap["Standard"].StyleInfo;
            standard.Font.Bold     = false;
            standard.Font.Facename = "Verdana"; //"Verdana";
            standard.Font.Size     = 10;
            standard.TextColor     = Color.FromArgb(240, 0, 21, 84);
            gridControl1.Font      = new System.Drawing.Font("Verdana", 8.5F);


            // grab some images...
            ImageList imageList = new ImageList();
            imageList.Images.Add(SystemIcons.Warning.ToBitmap());
            imageList.Images.Add(SystemIcons.Application.ToBitmap());
            imageList.Images.Add(SystemIcons.Asterisk.ToBitmap());
            imageList.Images.Add(SystemIcons.Error.ToBitmap());
            imageList.Images.Add(SystemIcons.Exclamation.ToBitmap());
            imageList.Images.Add(SystemIcons.Hand.ToBitmap());
            imageList.Images.Add(SystemIcons.Information.ToBitmap());
            imageList.Images.Add(SystemIcons.Question.ToBitmap());
            //standard.ImageList = imageList;

            Icon icon = new Icon(GetType().Module.Assembly.GetManifestResourceStream("EditorCellDemo.gridform.ico"));
            imageList.Images.Add(icon.ToBitmap());

            icon = new Icon(GetType().Module.Assembly.GetManifestResourceStream("EditorCellDemo.toolsform.ico"));
            imageList.Images.Add(icon.ToBitmap());
            standard.ImageList = imageList;

            #endregion

            #region Codes to apply celltypes in Grid
            this.gridControl1.BeginUpdate();
            gridControl1.TableStyle.FloatCell = true;
            gridControl1.FloatCellsMode       = GridFloatCellsMode.BeforeDisplayCalculation;

            #region Style declaration
            GridStyleInfo headerstyle = new GridStyleInfo();
            headerstyle.Font.Size           = 12;
            headerstyle.Font.Bold           = true;
            headerstyle.VerticalAlignment   = GridVerticalAlignment.Middle;
            headerstyle.HorizontalAlignment = GridHorizontalAlignment.Center;
            headerstyle.CellType            = GridCellTypeName.Static;

            GridStyleInfo subheaderstyle = new GridStyleInfo();
            subheaderstyle.Font.Bold           = true;
            subheaderstyle.VerticalAlignment   = GridVerticalAlignment.Middle;
            subheaderstyle.HorizontalAlignment = GridHorizontalAlignment.Center;
            subheaderstyle.CellType            = GridCellTypeName.Static;
            subheaderstyle.TextColor           = Color.Gray;

            gridControl1.Model.ColWidths[4] = 90;
            gridControl1.Model.ColWidths[6] = 100;
            #endregion

            #region TextBox Cells
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(1, 1, 2, gridControl1.ColCount));
            gridControl1[1, 1]      = headerstyle;
            gridControl1[1, 1].Text = "TextBox Cells";

            int rowIndex = 3, colIndex = 4;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = subheaderstyle;
            gridControl1[rowIndex, 1].Text = "TextBox Cells - represents the default textbox control in a cell as used for in - place editing";
            rowIndex++;
            gridControl1[rowIndex, colIndex].Text           = "TextBox";
            gridControl1[rowIndex, colIndex].CellType       = GridCellTypeName.TextBox;
            gridControl1[rowIndex, colIndex + 2].Text       = "TextBox/Image";
            gridControl1[rowIndex, colIndex + 2].CellType   = GridCellTypeName.TextBox;
            gridControl1[rowIndex, colIndex + 2].ImageIndex = 9;
            gridControl1.Model.ColWidths.ResizeToFit(GridRangeInfo.Col(colIndex + 2));
            #endregion

            #region MaskEditCells
            rowIndex += 2;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "MaskEdit Cells";
            rowIndex++;
            rowIndex++;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = subheaderstyle;
            gridControl1[rowIndex, 1].Text = "MaskEdit Cells - allow to mask any cell that permits valid inputs & also control the inputs values";

            rowIndex++;
            rowIndex++;
            gridControl1[rowIndex, colIndex].Text              = "Date Format";
            gridControl1[rowIndex, colIndex + 2].CellType      = GridCellTypeName.MaskEdit;
            gridControl1[rowIndex, colIndex + 2].MaskEdit.Mask = "99-99-99";
            gridControl1[rowIndex, colIndex + 2].FloatCell     = true;

            rowIndex++;
            rowIndex++;
            gridControl1[rowIndex, colIndex].Text = "First Name";
            GridStyleInfo    style1           = gridControl1[rowIndex, colIndex + 2];
            GridMaskEditInfo maskedEditStyle1 = style1.MaskEdit;

            rowIndex++;
            rowIndex++;
            gridControl1[rowIndex, colIndex].Text = "Last Name";
            GridStyleInfo    style2           = gridControl1[rowIndex, colIndex + 2];
            GridMaskEditInfo maskedEditStyle2 = style2.MaskEdit;

            rowIndex++;
            rowIndex++;
            gridControl1[rowIndex, colIndex].Text = "Telephone";
            GridStyleInfo    style3           = gridControl1[rowIndex, colIndex + 2];
            GridMaskEditInfo maskedEditStyle3 = style3.MaskEdit;

            rowIndex++;
            rowIndex++;
            gridControl1[rowIndex, colIndex].Text = "Social Security";
            GridStyleInfo    style4           = gridControl1[rowIndex, colIndex + 2];
            GridMaskEditInfo maskedEditStyle4 = style4.MaskEdit;

            #region MaskEditBoxes
            //
            // maskedEditBox1
            //
            style1.CellType = "MaskEdit";
            maskedEditStyle1.AllowPrompt   = false;
            maskedEditStyle1.ClipMode      = Syncfusion.Windows.Forms.Tools.ClipModes.ExcludeLiterals;
            style1.CultureInfo             = new System.Globalization.CultureInfo("en-US");
            maskedEditStyle1.DateSeparator = '-';
            maskedEditStyle1.Mask          = ">C<CCCCCCCCCCCC";
            style1.MaxLength = 13;
            style1.AutoSize  = true;
            maskedEditStyle1.SpecialCultureValue = Syncfusion.Windows.Forms.Tools.SpecialCultureValues.None;
            maskedEditStyle1.UseLocaleDefault    = false;
            maskedEditStyle1.UseUserOverride     = true;

            //
            // maskedEditBox2
            //
            style2.CellType = "MaskEdit";
            maskedEditStyle2.AllowPrompt   = false;
            maskedEditStyle2.ClipMode      = Syncfusion.Windows.Forms.Tools.ClipModes.IncludeLiterals;
            style2.CultureInfo             = new System.Globalization.CultureInfo("en-US");
            maskedEditStyle2.DateSeparator = '-';
            maskedEditStyle2.Mask          = "CCCCCCCCCCCCC";
            style2.MaxLength = 13;
            maskedEditStyle2.SpecialCultureValue = Syncfusion.Windows.Forms.Tools.SpecialCultureValues.None;
            style2.Text = "_____________";
            maskedEditStyle2.UseLocaleDefault = false;
            maskedEditStyle2.UseUserOverride  = true;
            //
            // maskedEditBox3
            //
            style3.CellType = "MaskEdit";
            maskedEditStyle3.AllowPrompt   = false;
            maskedEditStyle3.ClipMode      = Syncfusion.Windows.Forms.Tools.ClipModes.IncludeLiterals;
            style3.CultureInfo             = new System.Globalization.CultureInfo("en-US");
            maskedEditStyle3.DateSeparator = '-';
            maskedEditStyle3.Mask          = "(999) 999 - 9999";
            style3.MaxLength = 16;
            maskedEditStyle3.SpecialCultureValue = Syncfusion.Windows.Forms.Tools.SpecialCultureValues.None;
            style3.Text = "(___) ___ - ____";
            maskedEditStyle3.UseLocaleDefault = false;
            maskedEditStyle3.UseUserOverride  = true;
            //
            // maskedEditBox4
            //
            style4.CellType = "MaskEdit";
            maskedEditStyle4.AllowPrompt   = false;
            maskedEditStyle4.ClipMode      = Syncfusion.Windows.Forms.Tools.ClipModes.IncludeLiterals;
            style4.CultureInfo             = new System.Globalization.CultureInfo("en-US");
            maskedEditStyle4.DateSeparator = '-';
            maskedEditStyle4.Mask          = "999-99-9999";
            style4.MaxLength = 11;
            maskedEditStyle4.SpecialCultureValue = Syncfusion.Windows.Forms.Tools.SpecialCultureValues.None;
            style4.Text = "___-__-____";
            maskedEditStyle4.UseLocaleDefault = false;
            maskedEditStyle4.UseUserOverride  = true;
            #endregion
            #endregion

            #region NumericUpDown
            rowIndex++;
            rowIndex++;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "NumericUpDown Cells";

            rowIndex += 3;
            // Wrapping, Range 0-20
            gridControl1[rowIndex, colIndex].Text                    = "With wrapping";
            gridControl1[rowIndex, colIndex + 2].CellType            = GridCellTypeName.NumericUpDown;
            gridControl1[rowIndex, colIndex + 2].Text                = "5";
            gridControl1[rowIndex, colIndex + 2].HorizontalAlignment = GridHorizontalAlignment.Right;
            gridControl1[rowIndex, colIndex + 2].NumericUpDown       = new GridNumericUpDownCellInfo(0, 20, 5, 1, true);

            rowIndex++;
            rowIndex++;
            gridControl1[rowIndex, colIndex].Text                    = "Without wrapping";
            gridControl1[rowIndex, colIndex + 2].CellType            = GridCellTypeName.NumericUpDown;
            gridControl1[rowIndex, colIndex + 2].Text                = "5";
            gridControl1[rowIndex, colIndex + 2].NumericUpDown       = new GridNumericUpDownCellInfo(1, 20, 1, 1, false);
            gridControl1[rowIndex, colIndex + 2].HorizontalAlignment = GridHorizontalAlignment.Right;
            #endregion

            #region Currency Cells
            rowIndex++;
            rowIndex++;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "Currency Cells";

            rowIndex++;
            rowIndex++;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = subheaderstyle;
            gridControl1[rowIndex, 1].Text = "Supports setting patterns to display (+), (-) numbers, grouping digits & decimal separators";

            #region CurrentStyle Settings
            GridStyleInfo currencyStyle = new GridStyleInfo();
            currencyStyle.CellType = GridCellTypeName.Currency;
            currencyStyle.CurrencyEdit.ClipMode = CurrencyClipModes.ExcludeFormatting;
            // Set formatting properties
            currencyStyle.CurrencyEdit.NullString               = "";
            currencyStyle.CurrencyEdit.CurrencyDecimalDigits    = 2;
            currencyStyle.CurrencyEdit.CurrencyDecimalSeparator = ".";
            currencyStyle.CurrencyEdit.CurrencyGroupSeparator   = ",";
            currencyStyle.CurrencyEdit.CurrencyGroupSizes       = new int[] { 3 };
            currencyStyle.CurrencyEdit.CurrencyNumberDigits     = 27;
            currencyStyle.CurrencyEdit.CurrencyPositivePattern  = 0;
            //currencyStyle.CurrencyEdit.CurrencySymbol = (row % 2 == 0) ? "$ " : "DM ";
            currencyStyle.TextColor = System.Drawing.Color.Black;
            currencyStyle.CurrencyEdit.NegativeColor = System.Drawing.Color.Red;
            currencyStyle.CurrencyEdit.NegativeSign  = "-";
            currencyStyle.CurrencyEdit.PositiveColor = System.Drawing.Color.Black;
            currencyStyle.FloatCell = true;
            #endregion

            rowIndex++;
            rowIndex++;
            gridControl1[rowIndex, colIndex - 2]           = currencyStyle;
            gridControl1[rowIndex, colIndex - 2].CellValue = 2;
            gridControl1[rowIndex, colIndex - 2].CurrencyEdit.CurrencyNegativePattern = 1;
            gridControl1[rowIndex, colIndex - 2].CurrencyEdit.CurrencySymbol          = "$ ";

            gridControl1[rowIndex, colIndex]           = currencyStyle;
            gridControl1[rowIndex, colIndex].CellValue = 4;
            gridControl1[rowIndex, colIndex].CurrencyEdit.CurrencyNegativePattern = 2;
            gridControl1[rowIndex, colIndex].CurrencyEdit.CurrencySymbol          = "DM";

            gridControl1[rowIndex, colIndex + 2]           = currencyStyle;
            gridControl1[rowIndex, colIndex + 2].CellValue = -6;
            gridControl1[rowIndex, colIndex + 2].CurrencyEdit.CurrencyNegativePattern = 1;
            gridControl1[rowIndex, colIndex + 2].CurrencyEdit.CurrencySymbol          = "$ ";

            gridControl1[rowIndex, colIndex + 4]           = currencyStyle;
            gridControl1[rowIndex, colIndex + 4].CellValue = -8;
            gridControl1[rowIndex, colIndex + 4].CurrencyEdit.CurrencyNegativePattern = 2;
            gridControl1[rowIndex, colIndex + 4].CurrencyEdit.CurrencySymbol          = "DM ";

            #endregion

            #region Password cells

            rowIndex++;
            rowIndex++;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "Password Cells";

            rowIndex++;
            rowIndex++;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = subheaderstyle;
            gridControl1[rowIndex, 1].Text = "Allows you to type a password, but only masking character like \" * \", will be displayed ";


            GridStyleInfo passwdStyle = new GridStyleInfo();
            for (int row = 37; row <= 45; row++)
            {
                passwdStyle = gridControl1[row, 2];
                passwdStyle.PasswordChar = '*';
                passwdStyle.CellType     = GridCellTypeName.OriginalTextBox;
                passwdStyle.Text         = new string((char)(65 + row), row);

                passwdStyle = gridControl1[row, 3];
                passwdStyle.CharacterCasing = CharacterCasing.Lower;
                passwdStyle.Text            = new string((char)(65 + row), row);

                passwdStyle = gridControl1[row, 4];
                passwdStyle.CharacterCasing = CharacterCasing.Upper;
                passwdStyle.Text            = new string((char)(65 + row), row);
            }
            #endregion

            gridControl1.CheckBoxClick += new GridCellClickEventHandler(gridControl1_CheckBoxClick);
            gridControl1.Model.ColWidths.ResizeToFit(GridRangeInfo.Cols(1, 11));
            gridControl1.Model.ColWidths[0] = (int)DpiAware.LogicalToDeviceUnits(35);
            this.gridControl1.EndUpdate(true);
            #endregion
        }
Ejemplo n.º 2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     this.panel1.Size             = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(978), (int)DpiAware.LogicalToDeviceUnits(604));
     this.gradientPanel2.Size     = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(482), (int)DpiAware.LogicalToDeviceUnits(324));
     this.speedGauge.Size         = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(375), (int)DpiAware.LogicalToDeviceUnits(375));
     this.gradientPanel6.Size     = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(323), (int)DpiAware.LogicalToDeviceUnits(275));
     this.temperatureGauge.Size   = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(319), (int)DpiAware.LogicalToDeviceUnits(212));
     this.gradientPanel3.Size     = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(489), (int)DpiAware.LogicalToDeviceUnits(324));
     this.rpmGauge.Size           = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(375), (int)DpiAware.LogicalToDeviceUnits(375));
     this.gradientPanel5.Size     = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(323), (int)DpiAware.LogicalToDeviceUnits(275));
     this.fuelGauge.Size          = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(230), (int)DpiAware.LogicalToDeviceUnits(152));
     this.gradientPanel4.Size     = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(322), (int)DpiAware.LogicalToDeviceUnits(275));
     this.torqueGauge.Size        = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(317), (int)DpiAware.LogicalToDeviceUnits(210));
     this.gradientPanel3.Location = new Point(gradientPanel2.Width, 0);
     this.gradientPanel6.Location = new Point(gradientPanel2.Location.X, gradientPanel2.Height);
     this.gradientPanel5.Location = new Point(gradientPanel6.Location.X + gradientPanel6.Width, gradientPanel2.Height);
     this.gradientPanel4.Location = new Point(gradientPanel6.Location.X + gradientPanel6.Width + gradientPanel5.Width, gradientPanel3.Height);
     this.panel1.Location         = new Point((this.ClientSize.Width / 2) - (this.panel1.Width / 2), (this.ClientSize.Height / 2) - (this.panel1.Height / 2));
     this.MinimumSize             = new Size(ClientRectangle.Width - 200, ClientRectangle.Height - 30);
 }
Ejemplo n.º 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();
     Syncfusion.Windows.Forms.Grid.GridRangeStyle   gridRangeStyle1 = new Syncfusion.Windows.Forms.Grid.GridRangeStyle();
     Syncfusion.Windows.Forms.Grid.GridRangeStyle   gridRangeStyle2 = new Syncfusion.Windows.Forms.Grid.GridRangeStyle();
     System.ComponentModel.ComponentResourceManager resources       = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.gridControl1   = new Syncfusion.Windows.Forms.Grid.GridControl();
     this.gridControl2   = new Syncfusion.Windows.Forms.Grid.GridControl();
     this.groupBox1      = new System.Windows.Forms.GroupBox();
     this.label1         = new System.Windows.Forms.Label();
     this.BaseStyleColor = new Syncfusion.Windows.Forms.ColorPickerButton();
     this.BaseStyleCheck = new System.Windows.Forms.CheckBox();
     this.Cell32Color    = new Syncfusion.Windows.Forms.ColorPickerButton();
     this.Cell32Check    = new System.Windows.Forms.CheckBox();
     this.Column2Color   = new Syncfusion.Windows.Forms.ColorPickerButton();
     this.Column2Check   = new System.Windows.Forms.CheckBox();
     this.Row3Color      = new Syncfusion.Windows.Forms.ColorPickerButton();
     this.Row3Check      = new System.Windows.Forms.CheckBox();
     this.TableColor     = new Syncfusion.Windows.Forms.ColorPickerButton();
     this.TableCheck     = new System.Windows.Forms.CheckBox();
     this.StandardColor  = new Syncfusion.Windows.Forms.ColorPickerButton();
     this.StandardCheck  = new System.Windows.Forms.CheckBox();
     this.groupBox2      = new System.Windows.Forms.GroupBox();
     this.label2         = new System.Windows.Forms.Label();
     this.panel1         = new System.Windows.Forms.Panel();
     this.panel2         = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl2)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // gridControl1
     //
     this.gridControl1.DpiAware = true;
     this.gridControl1.AlphaBlendSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(94)))), ((int)(((byte)(171)))), ((int)(((byte)(222)))));
     this.gridControl1.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.gridControl1.BorderStyle            = System.Windows.Forms.BorderStyle.FixedSingle;
     this.gridControl1.ColCount               = 7;
     this.gridControl1.DefaultGridBorderStyle = Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid;
     this.gridControl1.Font = new System.Drawing.Font("Segoe UI", 9F);
     //this.gridControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     //this.gridControl1.GridVisualStyles = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.gridControl1.DefaultRowHeight = (int)DpiAware.LogicalToDeviceUnits(20.0f);
     this.gridControl1.Location         = new System.Drawing.Point(10, 111);
     //this.gridControl1.MetroScrollBars = true;
     this.gridControl1.Name = "gridControl1";
     this.gridControl1.Properties.ForceImmediateRepaint = false;
     this.gridControl1.Properties.GridLineColor         = System.Drawing.Color.FromArgb(((int)(((byte)(212)))), ((int)(((byte)(212)))), ((int)(((byte)(212)))));
     this.gridControl1.Properties.MarkColHeader         = false;
     this.gridControl1.Properties.MarkRowHeader         = false;
     gridRangeStyle1.Range = Syncfusion.Windows.Forms.Grid.GridRangeInfo.Table();
     gridRangeStyle1.StyleInfo.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     gridRangeStyle1.StyleInfo.Borders.Right  = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     gridRangeStyle1.StyleInfo.Font.Bold      = false;
     gridRangeStyle1.StyleInfo.Font.Facename  = "Segoe UI";
     gridRangeStyle1.StyleInfo.Font.Italic    = false;
     gridRangeStyle1.StyleInfo.Font.Size      = 9F;
     gridRangeStyle1.StyleInfo.Font.Strikeout = false;
     gridRangeStyle1.StyleInfo.Font.Underline = false;
     gridRangeStyle1.StyleInfo.Font.Unit      = System.Drawing.GraphicsUnit.Point;
     gridRangeStyle1.StyleInfo.Interior       = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.White);
     gridRangeStyle1.StyleInfo.TextColor      = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridControl1.RangeStyles.AddRange(new Syncfusion.Windows.Forms.Grid.GridRangeStyle[] {
         gridRangeStyle1
     });
     this.gridControl1.RowCount = 20;
     this.gridControl1.RowHeightEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridRowHeight[] {
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(0, 29)
     });
     this.gridControl1.SerializeCellsBehavior = Syncfusion.Windows.Forms.Grid.GridSerializeCellsBehavior.SerializeAsRangeStylesIntoCode;
     this.gridControl1.Size          = new System.Drawing.Size(490, 443);
     this.gridControl1.SmartSizeBox  = false;
     this.gridControl1.TabIndex      = 0;
     this.gridControl1.Text          = "gridControl1";
     this.gridControl1.ThemesEnabled = true;
     this.gridControl1.UseRightToLeftCompatibleTextBox = true;
     //
     // gridControl2
     //
     this.gridControl2.DpiAware = true;
     this.gridControl2.AlphaBlendSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(94)))), ((int)(((byte)(171)))), ((int)(((byte)(222)))));
     this.gridControl2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this.gridControl2.BorderStyle            = System.Windows.Forms.BorderStyle.FixedSingle;
     this.gridControl2.ColCount               = 10;
     this.gridControl2.DefaultGridBorderStyle = Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid;
     this.gridControl2.Font = new System.Drawing.Font("Segoe UI", 9F);
     //this.gridControl2.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     //this.gridControl2.GridVisualStyles = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.gridControl2.DefaultRowHeight = (int)DpiAware.LogicalToDeviceUnits(20.0f);
     this.gridControl2.Location         = new System.Drawing.Point(0, 100);
     //this.gridControl2.MetroScrollBars = true;
     this.gridControl2.Name = "gridControl2";
     this.gridControl2.Properties.ForceImmediateRepaint = false;
     this.gridControl2.Properties.GridLineColor         = System.Drawing.Color.FromArgb(((int)(((byte)(212)))), ((int)(((byte)(212)))), ((int)(((byte)(212)))));
     this.gridControl2.Properties.MarkColHeader         = false;
     this.gridControl2.Properties.MarkRowHeader         = false;
     gridRangeStyle2.Range = Syncfusion.Windows.Forms.Grid.GridRangeInfo.Table();
     gridRangeStyle2.StyleInfo.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     gridRangeStyle2.StyleInfo.Borders.Right  = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     gridRangeStyle2.StyleInfo.Font.Bold      = false;
     gridRangeStyle2.StyleInfo.Font.Facename  = "Segoe UI";
     gridRangeStyle2.StyleInfo.Font.Italic    = false;
     gridRangeStyle2.StyleInfo.Font.Size      = 9F;
     gridRangeStyle2.StyleInfo.Font.Strikeout = false;
     gridRangeStyle2.StyleInfo.Font.Underline = false;
     gridRangeStyle2.StyleInfo.Font.Unit      = System.Drawing.GraphicsUnit.Point;
     gridRangeStyle2.StyleInfo.Interior       = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.White);
     gridRangeStyle2.StyleInfo.TextColor      = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridControl2.RangeStyles.AddRange(new Syncfusion.Windows.Forms.Grid.GridRangeStyle[] {
         gridRangeStyle2
     });
     this.gridControl2.RowCount = 9;
     this.gridControl2.RowHeightEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridRowHeight[] {
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(0, 29)
     });
     this.gridControl2.SerializeCellsBehavior = Syncfusion.Windows.Forms.Grid.GridSerializeCellsBehavior.SerializeAsRangeStylesIntoCode;
     this.gridControl2.Size          = new System.Drawing.Size(300, 200);
     this.gridControl2.SmartSizeBox  = false;
     this.gridControl2.TabIndex      = 1;
     this.gridControl2.Text          = "gridControl2";
     this.gridControl2.ThemesEnabled = true;
     this.gridControl2.UseRightToLeftCompatibleTextBox = true;
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.panel2);
     this.groupBox1.Controls.Add(this.panel1);
     //this.groupBox1.Controls.Add(this.BaseStyleColor);
     //this.groupBox1.Controls.Add(this.BaseStyleCheck);
     //this.groupBox1.Controls.Add(this.Cell32Color);
     //this.groupBox1.Controls.Add(this.Cell32Check);
     //this.groupBox1.Controls.Add(this.Column2Color);
     //this.groupBox1.Controls.Add(this.Column2Check);
     //this.groupBox1.Controls.Add(this.Row3Color);
     //this.groupBox1.Controls.Add(this.Row3Check);
     //this.groupBox1.Controls.Add(this.TableColor);
     //this.groupBox1.Controls.Add(this.TableCheck);
     //this.groupBox1.Controls.Add(this.StandardColor);
     //this.groupBox1.Controls.Add(this.StandardCheck);
     this.groupBox1.Font      = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.groupBox1.ForeColor = System.Drawing.Color.DimGray;
     this.groupBox1.Location  = new System.Drawing.Point(540, 14);
     this.groupBox1.Name      = "groupBox1";
     this.groupBox1.Size      = new System.Drawing.Size(450, 567);
     this.groupBox1.TabIndex  = 2;
     this.groupBox1.TabStop   = false;
     this.groupBox1.Text      = "Styles via StyleObjects";
     //
     // panel1
     //
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(15, 22);
     this.panel1.Size     = new System.Drawing.Size(300, 300);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.gridControl2);
     //
     // panel2
     //
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel2.Location = new System.Drawing.Point(15, 360);
     this.panel2.Size     = new System.Drawing.Size(300, 230);
     this.panel2.Controls.Add(this.StandardColor);
     this.panel2.Controls.Add(this.StandardCheck);
     this.panel2.Controls.Add(this.BaseStyleColor);
     this.panel2.Controls.Add(this.BaseStyleCheck);
     this.panel2.Controls.Add(this.TableColor);
     this.panel2.Controls.Add(this.TableCheck);
     this.panel2.Controls.Add(this.Column2Color);
     this.panel2.Controls.Add(this.Column2Check);
     this.panel2.Controls.Add(this.Row3Color);
     this.panel2.Controls.Add(this.Row3Check);
     this.panel2.Controls.Add(this.Cell32Color);
     this.panel2.Controls.Add(this.Cell32Check);
     //
     // label1
     //
     this.label1.Font      = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.DimGray;
     this.label1.Location  = new System.Drawing.Point(0, 15);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(300, 74);
     this.label1.TabIndex  = 0;
     this.label1.Text      = resources.GetString("label1.Text");
     //
     // BaseStyleColor
     //
     this.BaseStyleColor.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(231)))), ((int)(((byte)(242)))));
     this.BaseStyleColor.BeforeTouchSize   = new System.Drawing.Size(75, 23);
     this.BaseStyleColor.ColorUISize       = new System.Drawing.Size(208, 230);
     this.BaseStyleColor.IsBackStageButton = false;
     this.BaseStyleColor.Location          = new System.Drawing.Point(45, 47);
     this.BaseStyleColor.Name                    = "BaseStyleColor";
     this.BaseStyleColor.SelectedColor           = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(231)))), ((int)(((byte)(242)))));
     this.BaseStyleColor.SelectedColorGroup      = Syncfusion.Windows.Forms.ColorUISelectedGroup.CustomColors;
     this.BaseStyleColor.Size                    = new System.Drawing.Size(75, 23);
     this.BaseStyleColor.TabIndex                = 17;
     this.BaseStyleColor.UseVisualStyleBackColor = false;
     //
     // BaseStyleCheck
     //
     this.BaseStyleCheck.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.BaseStyleCheck.Location        = new System.Drawing.Point(140, 47);
     this.BaseStyleCheck.Name            = "BaseStyleCheck";
     this.BaseStyleCheck.Size            = new System.Drawing.Size(135, 24);
     this.BaseStyleCheck.TabIndex        = 16;
     this.BaseStyleCheck.Text            = "GridBaseStyle";
     this.BaseStyleCheck.CheckedChanged += new System.EventHandler(this.ApplySettings);
     //
     // Cell32Color
     //
     this.Cell32Color.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(67)))), ((int)(((byte)(142)))));
     this.Cell32Color.BeforeTouchSize   = new System.Drawing.Size(75, 23);
     this.Cell32Color.ColorUISize       = new System.Drawing.Size(208, 230);
     this.Cell32Color.IsBackStageButton = false;
     this.Cell32Color.Location          = new System.Drawing.Point(45, 195);
     this.Cell32Color.Name                    = "Cell32Color";
     this.Cell32Color.SelectedColor           = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(67)))), ((int)(((byte)(142)))));
     this.Cell32Color.SelectedColorGroup      = Syncfusion.Windows.Forms.ColorUISelectedGroup.CustomColors;
     this.Cell32Color.Size                    = new System.Drawing.Size(75, 23);
     this.Cell32Color.TabIndex                = 25;
     this.Cell32Color.UseVisualStyleBackColor = false;
     //
     // Cell32Check
     //
     this.Cell32Check.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.Cell32Check.Location        = new System.Drawing.Point(140, 195);
     this.Cell32Check.Name            = "Cell32Check";
     this.Cell32Check.Size            = new System.Drawing.Size(160, 24);
     this.Cell32Check.TabIndex        = 24;
     this.Cell32Check.Text            = "Cell 3,2 GridStyleInfo";
     this.Cell32Check.CheckedChanged += new System.EventHandler(this.ApplySettings);
     //
     // Column2Color
     //
     this.Column2Color.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(191)))), ((int)(((byte)(117)))));
     this.Column2Color.BeforeTouchSize   = new System.Drawing.Size(75, 23);
     this.Column2Color.ColorUISize       = new System.Drawing.Size(208, 230);
     this.Column2Color.IsBackStageButton = false;
     this.Column2Color.Location          = new System.Drawing.Point(45, 121);
     this.Column2Color.Name                    = "Column2Color";
     this.Column2Color.SelectedColor           = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(191)))), ((int)(((byte)(117)))));
     this.Column2Color.SelectedColorGroup      = Syncfusion.Windows.Forms.ColorUISelectedGroup.CustomColors;
     this.Column2Color.Size                    = new System.Drawing.Size(75, 23);
     this.Column2Color.TabIndex                = 21;
     this.Column2Color.UseVisualStyleBackColor = false;
     //
     // Column2Check
     //
     this.Column2Check.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.Column2Check.Location        = new System.Drawing.Point(140, 121);
     this.Column2Check.Name            = "Column2Check";
     this.Column2Check.Size            = new System.Drawing.Size(160, 24);
     this.Column2Check.TabIndex        = 20;
     this.Column2Check.Text            = "Column2 GridStyleInfo";
     this.Column2Check.CheckedChanged += new System.EventHandler(this.ApplySettings);
     //
     // Row3Color
     //
     this.Row3Color.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(100)))), ((int)(((byte)(19)))));
     this.Row3Color.BeforeTouchSize   = new System.Drawing.Size(75, 23);
     this.Row3Color.ColorUISize       = new System.Drawing.Size(208, 20);
     this.Row3Color.IsBackStageButton = false;
     this.Row3Color.Location          = new System.Drawing.Point(45, 155);
     this.Row3Color.Name                    = "Row3Color";
     this.Row3Color.SelectedColor           = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(100)))), ((int)(((byte)(19)))));
     this.Row3Color.SelectedColorGroup      = Syncfusion.Windows.Forms.ColorUISelectedGroup.CustomColors;
     this.Row3Color.Size                    = new System.Drawing.Size(75, 23);
     this.Row3Color.TabIndex                = 23;
     this.Row3Color.UseVisualStyleBackColor = false;
     //
     // Row3Check
     //
     this.Row3Check.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.Row3Check.Location        = new System.Drawing.Point(140, 155);
     this.Row3Check.Name            = "Row3Check";
     this.Row3Check.Size            = new System.Drawing.Size(160, 24);
     this.Row3Check.TabIndex        = 22;
     this.Row3Check.Text            = "Row3 GridStyleInfo";
     this.Row3Check.CheckedChanged += new System.EventHandler(this.ApplySettings);
     //
     // TableColor
     //
     this.TableColor.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(214)))), ((int)(((byte)(233)))));
     this.TableColor.BeforeTouchSize   = new System.Drawing.Size(75, 23);
     this.TableColor.ColorUISize       = new System.Drawing.Size(208, 230);
     this.TableColor.IsBackStageButton = false;
     this.TableColor.Location          = new System.Drawing.Point(45, 84);
     this.TableColor.Name                    = "TableColor";
     this.TableColor.SelectedColor           = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(214)))), ((int)(((byte)(233)))));
     this.TableColor.SelectedColorGroup      = Syncfusion.Windows.Forms.ColorUISelectedGroup.CustomColors;
     this.TableColor.Size                    = new System.Drawing.Size(75, 23);
     this.TableColor.TabIndex                = 19;
     this.TableColor.UseVisualStyleBackColor = false;
     //
     // TableCheck
     //
     this.TableCheck.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.TableCheck.Location        = new System.Drawing.Point(140, 84);
     this.TableCheck.Name            = "TableCheck";
     this.TableCheck.Size            = new System.Drawing.Size(135, 24);
     this.TableCheck.TabIndex        = 18;
     this.TableCheck.Text            = "Table GridStyleInfo";
     this.TableCheck.CheckedChanged += new System.EventHandler(this.ApplySettings);
     //
     // StandardColor
     //
     this.StandardColor.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(191)))), ((int)(((byte)(242)))));
     this.StandardColor.BeforeTouchSize   = new System.Drawing.Size(75, 23);
     this.StandardColor.ColorUISize       = new System.Drawing.Size(208, 230);
     this.StandardColor.IsBackStageButton = false;
     this.StandardColor.Location          = new System.Drawing.Point(45, 10);
     this.StandardColor.Name                    = "StandardColor";
     this.StandardColor.SelectedColor           = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(191)))), ((int)(((byte)(242)))));
     this.StandardColor.SelectedColorGroup      = Syncfusion.Windows.Forms.ColorUISelectedGroup.CustomColors;
     this.StandardColor.Size                    = new System.Drawing.Size(75, 23);
     this.StandardColor.TabIndex                = 15;
     this.StandardColor.UseVisualStyleBackColor = false;
     //
     // StandardCheck
     //
     this.StandardCheck.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.StandardCheck.Location        = new System.Drawing.Point(140, 10);
     this.StandardCheck.Name            = "StandardCheck";
     this.StandardCheck.Size            = new System.Drawing.Size(152, 24);
     this.StandardCheck.TabIndex        = 14;
     this.StandardCheck.Text            = "Standard GridStyleInfo";
     this.StandardCheck.CheckedChanged += new System.EventHandler(this.ApplySettings);
     //
     // groupBox2
     //
     this.groupBox2.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.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Controls.Add(this.gridControl1);
     this.groupBox2.Font      = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.groupBox2.ForeColor = System.Drawing.Color.DimGray;
     this.groupBox2.Location  = new System.Drawing.Point(12, 14);
     this.groupBox2.Name      = "groupBox2";
     this.groupBox2.Size      = new System.Drawing.Size(511, 567);
     this.groupBox2.TabIndex  = 3;
     this.groupBox2.TabStop   = false;
     this.groupBox2.Text      = "CellStyles ";
     //
     // label2
     //
     this.label2.Font      = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.ForeColor = System.Drawing.Color.DimGray;
     this.label2.Location  = new System.Drawing.Point(10, 34);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(493, 74);
     this.label2.TabIndex  = 27;
     this.label2.Text      = resources.GetString("label2.Text");
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(891, 595);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.groupBox2);
     this.MinimumSize = new System.Drawing.Size(670, 622);
     this.Name        = "Form1";
     this.Text        = "Grid Style ";
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl2)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Ejemplo n.º 4
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();
     this.gridGroupingControl1 = new Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl();
     this.panForm        = new System.Windows.Forms.Panel();
     this.tipDesc        = new System.Windows.Forms.ToolTip(this.components);
     this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
     this.panel2         = new System.Windows.Forms.Panel();
     this.propertyGrid1  = new System.Windows.Forms.PropertyGrid();
     this.groupBox2      = new System.Windows.Forms.GroupBox();
     this.comboBoxAdv1   = new Syncfusion.Windows.Forms.Tools.ComboBoxAdv();
     ((System.ComponentModel.ISupportInitialize)(this.gridGroupingControl1)).BeginInit();
     this.panForm.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
     this.panel2.SuspendLayout();
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.comboBoxAdv1)).BeginInit();
     this.SuspendLayout();
     //
     // gridGroupingControl1
     //
     this.gridGroupingControl1.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.gridGroupingControl1.BackColor = System.Drawing.SystemColors.Window;
     this.gridGroupingControl1.ChildGroupOptions.ShowAddNewRecordBeforeDetails = false;
     this.gridGroupingControl1.Font                 = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.gridGroupingControl1.FreezeCaption        = false;
     this.gridGroupingControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     this.gridGroupingControl1.GridVisualStyles     = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.gridGroupingControl1.Location             = new System.Drawing.Point(0, 3);
     this.gridGroupingControl1.Name                 = "gridGroupingControl1";
     this.gridGroupingControl1.NestedTableGroupOptions.ShowAddNewRecordBeforeDetails = false;
     this.gridGroupingControl1.Size     = new System.Drawing.Size(655, 629);
     this.gridGroupingControl1.TabIndex = 2;
     this.gridGroupingControl1.TableDescriptor.AllowNew = false;
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyCell.Font.Facename             = "Segoe UI";
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyCell.TextColor                 = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Borders.Bottom       = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Borders.Right        = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Interior             = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.TextColor            = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.Borders.Right  = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Borders.Right      = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Borders.Top        = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Interior           = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))));
     this.gridGroupingControl1.TableDescriptor.Appearance.ColumnHeaderCell.Font.Bold        = true;
     this.gridGroupingControl1.TableDescriptor.Appearance.GroupCaptionCell.CellType         = "ColumnHeader";
     this.gridGroupingControl1.TableDescriptor.TableOptions.ColumnHeaderRowHeight           = (int)DpiAware.LogicalToDeviceUnits(25.0f);
     this.gridGroupingControl1.TableDescriptor.TableOptions.RecordRowHeight                 = (int)DpiAware.LogicalToDeviceUnits(20.0f);
     this.gridGroupingControl1.TableOptions.AllowDragColumns     = false;
     this.gridGroupingControl1.TableOptions.GridLineBorder       = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255))))));
     this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
     this.gridGroupingControl1.Text = "gridGroupingControl1";
     this.gridGroupingControl1.TopLevelGroupOptions.ShowAddNewRecordBeforeDetails = false;
     this.gridGroupingControl1.TopLevelGroupOptions.ShowCaption = false;
     this.gridGroupingControl1.VersionInfo = "6.102.0.34";
     //
     // panForm
     //
     this.panForm.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.panForm.BackColor = System.Drawing.Color.White;
     this.panForm.Controls.Add(this.gridGroupingControl1);
     this.panForm.Location = new System.Drawing.Point(26, 1);
     this.panForm.Name     = "panForm";
     this.panForm.Size     = new System.Drawing.Size(655, 632);
     this.panForm.TabIndex = 0;
     //
     // tipDesc
     //
     this.tipDesc.BackColor  = System.Drawing.Color.Black;
     this.tipDesc.ForeColor  = System.Drawing.Color.White;
     this.tipDesc.IsBalloon  = true;
     this.tipDesc.ShowAlways = true;
     this.tipDesc.UseFading  = false;
     //
     // panel2
     //
     this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.panel2.BackColor = System.Drawing.Color.Transparent;
     this.panel2.Controls.Add(this.propertyGrid1);
     this.panel2.Controls.Add(this.groupBox2);
     this.panel2.Location = new System.Drawing.Point(700, -5);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(300, 645);
     this.panel2.TabIndex = 10;
     //
     // propertyGrid1
     //
     this.propertyGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.propertyGrid1.BackColor                 = System.Drawing.Color.White;
     this.propertyGrid1.CommandsBackColor         = System.Drawing.Color.White;
     this.propertyGrid1.CommandsDisabledLinkColor = System.Drawing.Color.White;
     this.propertyGrid1.HelpBackColor             = System.Drawing.Color.White;
     this.propertyGrid1.LineColor                 = System.Drawing.Color.White;
     this.propertyGrid1.Location = new System.Drawing.Point(9, 75);
     this.propertyGrid1.Name     = "propertyGrid1";
     this.propertyGrid1.Size     = new System.Drawing.Size(277, 563);
     this.propertyGrid1.TabIndex = 10;
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox2.Controls.Add(this.comboBoxAdv1);
     this.groupBox2.ForeColor = System.Drawing.Color.DimGray;
     this.groupBox2.Location  = new System.Drawing.Point(9, 6);
     this.groupBox2.Name      = "groupBox2";
     this.groupBox2.Size      = new System.Drawing.Size(277, 54);
     this.groupBox2.TabIndex  = 3;
     this.groupBox2.TabStop   = false;
     this.groupBox2.Text      = "Select Relation";
     //
     // comboBoxAdv1
     //
     this.comboBoxAdv1.AllowNewText = false;
     this.comboBoxAdv1.Anchor       = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                            | System.Windows.Forms.AnchorStyles.Right)));
     this.comboBoxAdv1.BackColor             = System.Drawing.Color.White;
     this.comboBoxAdv1.BeforeTouchSize       = new System.Drawing.Size(265, 21);
     this.comboBoxAdv1.Font                  = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.comboBoxAdv1.Location              = new System.Drawing.Point(6, 19);
     this.comboBoxAdv1.Name                  = "comboBoxAdv1";
     this.comboBoxAdv1.Size                  = new System.Drawing.Size(265, 21);
     this.comboBoxAdv1.Style                 = Syncfusion.Windows.Forms.VisualStyle.Metro;
     this.comboBoxAdv1.TabIndex              = 3;
     this.comboBoxAdv1.SelectedIndexChanged += new System.EventHandler(this.comboBoxAdv1_SelectedIndexChanged);
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.ClientSize          = new System.Drawing.Size(1012, 654);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panForm);
     this.MinimumSize = new System.Drawing.Size(800, 500);
     this.Name        = "Form1";
     this.Text        = "LINQ to SQL";
     this.Load       += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.gridGroupingControl1)).EndInit();
     this.panForm.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
     this.panel2.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.comboBoxAdv1)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 5
0
        private void InitializeGrid()
        {
            #region "Style declaration"
            //header Style
            this.gridControl1.DefaultRowHeight = (int)DpiAware.LogicalToDeviceUnits(22.0f);
            GridStyleInfo headerstyle = new GridStyleInfo();
            headerstyle.Font.Size           = 12;
            headerstyle.Font.Bold           = true;
            headerstyle.VerticalAlignment   = GridVerticalAlignment.Middle;
            headerstyle.HorizontalAlignment = GridHorizontalAlignment.Center;
            headerstyle.CellType            = GridCellTypeName.Static;
            //Subheader Style
            GridStyleInfo subheaderstyle = new GridStyleInfo();
            subheaderstyle.Font.Bold           = true;
            subheaderstyle.VerticalAlignment   = GridVerticalAlignment.Middle;
            subheaderstyle.HorizontalAlignment = GridHorizontalAlignment.Center;
            subheaderstyle.CellType            = GridCellTypeName.Static;
            //Value Style
            GridStyleInfo valuestyle = new GridStyleInfo();
            valuestyle.BackColor           = SystemColors.Menu;
            valuestyle.TextColor           = Color.Black;
            valuestyle.VerticalAlignment   = GridVerticalAlignment.Middle;
            valuestyle.HorizontalAlignment = GridHorizontalAlignment.Center;

            gridControl1.FloatCellsMode = GridFloatCellsMode.BeforeDisplayCalculation;

            #endregion

            #region "Date Time Picker Cells"

            int rowIndex = 1, colIndex = 4;
            gridControl1.AllowProportionalColumnSizing = true;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "Date Time Picker Cells";
            rowIndex += 3;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 3, rowIndex, 5));
            this.gridControl1[rowIndex, colIndex - 1].Text      = "Date Picker : (MM/dd/yyyy hh:mm)";
            this.gridControl1[rowIndex, colIndex - 1].TextColor = Color.Black;
            colIndex++; colIndex++;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, colIndex, rowIndex, colIndex + 1));
            this.gridControl1.CellModels.Add("DateTimePicker", new DateTimeCellModel(this.gridControl1.Model));
            this.gridControl1[rowIndex, colIndex].CellType      = "DateTimePicker";
            this.gridControl1[rowIndex, colIndex].CellValueType = typeof(DateTime);
            this.gridControl1[rowIndex, colIndex].CellValue     = DateTime.Now;
            this.gridControl1[rowIndex, colIndex].Format        = "MM/dd/yyyy hh:mm";

            rowIndex++; rowIndex++; colIndex -= 2;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 3, rowIndex, 5));
            this.gridControl1[rowIndex, colIndex - 1].Text      = "Time Picker cell : (hh:mm:ss tt)";
            this.gridControl1[rowIndex, colIndex - 1].TextColor = Color.Black;
            colIndex++; colIndex++;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, colIndex, rowIndex, colIndex + 1));
            this.gridControl1[rowIndex, colIndex].CellType      = "DateTimePicker";
            this.gridControl1[rowIndex, colIndex].CellValueType = typeof(DateTime);
            this.gridControl1[rowIndex, colIndex].CellValue     = DateTime.Now;
            this.gridControl1[rowIndex, colIndex].Format        = "hh:mm:ss tt";

            #endregion

            #region "DropDownGrid cells"

            GridControl GridA = new GridControl();
            GridA.RowCount         = 10;
            GridA.ColCount         = 5;
            GridA.ThemesEnabled    = true;
            GridA.CausesValidation = false;
            GridA[1, 1].Text       = "Grid A";

            GridA.GridVisualStyles           = Syncfusion.Windows.Forms.GridVisualStyles.Office2007Blue;
            GridA.Properties.BackgroundColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(239)), ((System.Byte)(255)));
            GridA.Properties.GridLineColor   = System.Drawing.Color.FromArgb(((System.Byte)(208)), ((System.Byte)(215)), ((System.Byte)(229)));
            GridA.DefaultGridBorderStyle     = GridBorderStyle.Solid;
            GridA.ForeColor = System.Drawing.Color.MidnightBlue;
            GridA.Font      = new System.Drawing.Font("Verdana", 8.5F);


            GridControl GridB = new GridControl();
            GridB.RowCount         = 6;
            GridB.ColCount         = 6;
            GridB.CausesValidation = false;
            GridB.ThemesEnabled    = true;
            GridB[1, 1].Text       = "Grid B";

            GridB.GridVisualStyles = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
            DropDownGridCellModel aModel = new DropDownGridCellModel(this.gridControl1.Model);
            aModel.EmbeddedGrid = GridA;
            DropDownGridCellModel bModel = new DropDownGridCellModel(this.gridControl1.Model);
            bModel.EmbeddedGrid = GridB;
            gridControl1.CellModels.Add("GridADropCell", aModel);
            gridControl1.CellModels.Add("GridBDropCell", bModel);

            rowIndex += 3; colIndex -= 3;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "DropDown Grid Cells";
            rowIndex += 3;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, colIndex, rowIndex, colIndex + 1));
            this.gridControl1[rowIndex, colIndex].Text     = "Grid A";
            this.gridControl1[rowIndex, colIndex].CellType = "GridADropCell";
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, colIndex + 3, rowIndex, colIndex + 4));
            this.gridControl1[rowIndex, colIndex + 3].Text     = "Grid B";
            this.gridControl1[rowIndex, colIndex + 3].CellType = "GridBDropCell";

            #endregion

            #region "DropDown Form and User Control"

            rowIndex += 3; colIndex -= 2;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "DropDown Form and User Control";
            rowIndex++; rowIndex++;

            this.gridControl1.CellModels.Add("DropDownForm", new DropDownFormCellModel(this.gridControl1.Model, new DropDownForm()));
            this.gridControl1.CellModels.Add("DropDownUserControl", new DropDownUserCellModel(this.gridControl1.Model, new DropDownUser()));

            ////DropDownForm...
            rowIndex++; colIndex = 3;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 3, rowIndex, 4));
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 5, rowIndex, 7));
            gridControl1[rowIndex, colIndex].Text              = "DropDownForm";
            gridControl1[rowIndex, colIndex].TextColor         = Color.Black;
            this.gridControl1[rowIndex, colIndex + 2].CellType = "DropDownForm";
            this.gridControl1[rowIndex, colIndex + 2].Text     = "choice1,choice3";

            ////DropDownForm...
            rowIndex++; rowIndex++;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 3, rowIndex, 4));
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 5, rowIndex, 7));
            gridControl1[rowIndex, colIndex].Text              = "DropDownUserControl";
            gridControl1[rowIndex, colIndex].TextColor         = Color.Black;
            this.gridControl1[rowIndex, colIndex + 2].CellType = "DropDownUserControl";
            this.gridControl1[rowIndex, colIndex + 2].Text     = "choice1,choice3";

            #endregion

            #region "DropDOwnCalculator Cell"

            rowIndex += 3;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "DropDown Calculator TextBox";
            rowIndex++; rowIndex++;

#if HELPERCLASS
            RegisterCellModel.GridCellType(gridControl1, CustomCellTypes.CalculatorTextBox);
#else
            this.gridControl1.CellModels.Add("CalculatorTextBox", new DropDownCalculatorTextBoxCellModel(this.gridControl1.Model));
#endif

            rowIndex++;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 4, rowIndex, 6));
            CalculatorControl c1 = new CalculatorControl();
            c1.BorderStyle    = Border3DStyle.Flat;
            c1.ButtonStyle    = Syncfusion.Windows.Forms.ButtonAppearance.Office2007;
            c1.UseVisualStyle = true;

            GridStyleInfo style = gridControl1[rowIndex, 4];
            style.CellType = "CalculatorTextBox";
            style.Control  = c1;
            style.Text     = "Calculator TextBox";

            this.gridControl1.Model.EnableGridListControlInComboBox = false;
            #endregion
        }
Ejemplo n.º 6
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();
     this.button2              = new Syncfusion.Windows.Forms.ButtonAdv();
     this.checkBox1            = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.label1               = new System.Windows.Forms.Label();
     this.comboBox1            = new Syncfusion.Windows.Forms.Tools.ComboBoxAdv();
     this.checkBox2            = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox3            = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox4            = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox5            = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox6            = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.groupBox1            = new System.Windows.Forms.GroupBox();
     this.groupBox3            = new System.Windows.Forms.GroupBox();
     this.label4               = new System.Windows.Forms.Label();
     this.groupBox2            = new System.Windows.Forms.GroupBox();
     this.colorPickerButton2   = new Syncfusion.Windows.Forms.ColorPickerButton();
     this.colorPickerButton1   = new Syncfusion.Windows.Forms.ColorPickerButton();
     this.gridGroupingControl1 = new Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.comboBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox5)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox6)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.gridGroupingControl1)).BeginInit();
     this.SuspendLayout();
     //
     // button2
     //
     this.button2.Appearance        = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
     this.button2.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(165)))), ((int)(((byte)(220)))));
     this.button2.BeforeTouchSize   = new System.Drawing.Size(174, 28);
     this.button2.BorderStyleAdv    = Syncfusion.Windows.Forms.ButtonAdvBorderStyle.RaisedInner;
     this.button2.FlatStyle         = FlatStyle.Flat;
     this.button2.Font              = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button2.ForeColor         = System.Drawing.Color.White;
     this.button2.IsBackStageButton = false;
     this.button2.Location          = new System.Drawing.Point(36, 511);
     this.button2.Name              = "button2";
     this.button2.Size              = new System.Drawing.Size(174, 28);
     this.button2.TabIndex          = 2;
     this.button2.Text              = "Export Grid";
     this.button2.Click            += new System.EventHandler(this.button2_Click);
     //
     // checkBox1
     //
     this.checkBox1.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.checkBox1.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox1.Checked            = true;
     this.checkBox1.CheckState         = System.Windows.Forms.CheckState.Checked;
     this.checkBox1.DrawFocusRectangle = false;
     this.checkBox1.Font               = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox1.Location           = new System.Drawing.Point(45, 26);
     this.checkBox1.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox1.Name               = "checkBox1";
     this.checkBox1.Size               = new System.Drawing.Size(115, 17);
     this.checkBox1.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox1.DrawFocusRectangle = true;
     this.checkBox1.TabIndex           = 11;
     this.checkBox1.Text               = "Export Grid Style";
     this.checkBox1.ThemesEnabled      = false;
     //
     // label1
     //
     this.label1.AutoSize  = true;
     this.label1.BackColor = System.Drawing.Color.Transparent;
     this.label1.Font      = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location  = new System.Drawing.Point(11, 41);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(108, 13);
     this.label1.TabIndex  = 8;
     this.label1.Text      = "Converter Options: ";
     //
     // comboBox1
     //
     this.comboBox1.BackColor             = System.Drawing.Color.White;
     this.comboBox1.BeforeTouchSize       = new System.Drawing.Size(101, 21);
     this.comboBox1.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox1.Font                  = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.comboBox1.Location              = new System.Drawing.Point(122, 38);
     this.comboBox1.Name                  = "comboBox1";
     this.comboBox1.Size                  = new System.Drawing.Size(101, 21);
     this.comboBox1.Style                 = Syncfusion.Windows.Forms.VisualStyle.Metro;
     this.comboBox1.TabIndex              = 9;
     this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
     //
     // checkBox2
     //
     this.checkBox2.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.checkBox2.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox2.DrawFocusRectangle = false;
     this.checkBox2.Location           = new System.Drawing.Point(8, 98);
     this.checkBox2.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox2.Name  = "checkBox2";
     this.checkBox2.Size  = new System.Drawing.Size(134, 30);
     this.checkBox2.Style = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox2.DrawFocusRectangle = true;
     this.checkBox2.TabIndex           = 18;
     this.checkBox2.Text          = "ExportPreviewRows";
     this.checkBox2.ThemesEnabled = false;
     //
     // checkBox3
     //
     this.checkBox3.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.checkBox3.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox3.DrawFocusRectangle = false;
     this.checkBox3.Location           = new System.Drawing.Point(8, 134);
     this.checkBox3.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox3.Name  = "checkBox3";
     this.checkBox3.Size  = new System.Drawing.Size(196, 34);
     this.checkBox3.Style = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox3.DrawFocusRectangle = true;
     this.checkBox3.TabIndex           = 19;
     this.checkBox3.Text          = "Hook QueryExporPreviewRowInfo event handler.  ";
     this.checkBox3.ThemesEnabled = false;
     //
     // checkBox4
     //
     this.checkBox4.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.checkBox4.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox4.Checked            = true;
     this.checkBox4.CheckState         = System.Windows.Forms.CheckState.Checked;
     this.checkBox4.DrawFocusRectangle = false;
     this.checkBox4.Location           = new System.Drawing.Point(45, 53);
     this.checkBox4.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox4.Name  = "checkBox4";
     this.checkBox4.Size  = new System.Drawing.Size(99, 17);
     this.checkBox4.Style = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox4.DrawFocusRectangle = true;
     this.checkBox4.TabIndex           = 12;
     this.checkBox4.Text          = "Export Borders";
     this.checkBox4.ThemesEnabled = false;
     //
     // checkBox5
     //
     this.checkBox5.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.checkBox5.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox5.Checked            = true;
     this.checkBox5.CheckState         = System.Windows.Forms.CheckState.Checked;
     this.checkBox5.DrawFocusRectangle = false;
     this.checkBox5.Location           = new System.Drawing.Point(8, 67);
     this.checkBox5.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox5.Name  = "checkBox5";
     this.checkBox5.Size  = new System.Drawing.Size(145, 25);
     this.checkBox5.Style = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox5.DrawFocusRectangle = true;
     this.checkBox5.TabIndex           = 17;
     this.checkBox5.Text          = "ExportGroupPlusMinus";
     this.checkBox5.ThemesEnabled = false;
     //
     // checkBox6
     //
     this.checkBox6.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.checkBox6.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox6.Checked            = true;
     this.checkBox6.CheckState         = System.Windows.Forms.CheckState.Checked;
     this.checkBox6.DrawFocusRectangle = false;
     this.checkBox6.Location           = new System.Drawing.Point(8, 35);
     this.checkBox6.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox6.Name  = "checkBox6";
     this.checkBox6.Size  = new System.Drawing.Size(148, 26);
     this.checkBox6.Style = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox6.DrawFocusRectangle = true;
     this.checkBox6.TabIndex           = 16;
     this.checkBox6.Text          = "ExportRecordPlusMinus";
     this.checkBox6.ThemesEnabled = false;
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.groupBox3);
     this.groupBox1.Controls.Add(this.groupBox2);
     this.groupBox1.Controls.Add(this.button2);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.comboBox1);
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Font      = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.groupBox1.ForeColor = System.Drawing.Color.DimGray;
     this.groupBox1.Location  = new System.Drawing.Point(751, 10);
     this.groupBox1.Name      = "groupBox1";
     this.groupBox1.Size      = new System.Drawing.Size(246, 631);
     this.groupBox1.TabIndex  = 8;
     this.groupBox1.TabStop   = false;
     this.groupBox1.Text      = "Export Options";
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.label4);
     this.groupBox3.Controls.Add(this.checkBox6);
     this.groupBox3.Controls.Add(this.checkBox5);
     this.groupBox3.Controls.Add(this.checkBox3);
     this.groupBox3.Controls.Add(this.checkBox2);
     this.groupBox3.Location = new System.Drawing.Point(14, 250);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(213, 248);
     this.groupBox3.TabIndex = 15;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Other Options";
     //
     // label4
     //
     this.label4.Font     = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label4.Location = new System.Drawing.Point(7, 179);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(197, 53);
     this.label4.TabIndex = 17;
     this.label4.Text     = "[ Handle this event when you want to export PreviewRow for non-display elements ]" +
                            "";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.checkBox1);
     this.groupBox2.Controls.Add(this.checkBox4);
     this.groupBox2.Controls.Add(this.colorPickerButton2);
     this.groupBox2.Controls.Add(this.colorPickerButton1);
     this.groupBox2.Location = new System.Drawing.Point(14, 82);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(213, 162);
     this.groupBox2.TabIndex = 10;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Export Style";
     //
     // colorPickerButton2
     //
     this.colorPickerButton2.BackColor         = System.Drawing.Color.DarkGray;
     this.colorPickerButton2.BeforeTouchSize   = new System.Drawing.Size(126, 25);
     this.colorPickerButton2.ColorUISize       = new System.Drawing.Size(208, 230);
     this.colorPickerButton2.FlatStyle         = System.Windows.Forms.FlatStyle.Flat;
     this.colorPickerButton2.IsBackStageButton = false;
     this.colorPickerButton2.Location          = new System.Drawing.Point(45, 119);
     this.colorPickerButton2.Name = "colorPickerButton2";
     this.colorPickerButton2.SelectedAsBackcolor = true;
     this.colorPickerButton2.SelectedColor       = System.Drawing.Color.DarkGray;
     this.colorPickerButton2.Size     = new System.Drawing.Size(126, 25);
     this.colorPickerButton2.TabIndex = 14;
     this.colorPickerButton2.Text     = "Caption BackColor";
     this.colorPickerButton2.UseVisualStyleBackColor = false;
     //
     // colorPickerButton1
     //
     this.colorPickerButton1.BackColor         = System.Drawing.Color.Gray;
     this.colorPickerButton1.BeforeTouchSize   = new System.Drawing.Size(126, 24);
     this.colorPickerButton1.ColorUISize       = new System.Drawing.Size(208, 230);
     this.colorPickerButton1.FlatStyle         = System.Windows.Forms.FlatStyle.Flat;
     this.colorPickerButton1.IsBackStageButton = false;
     this.colorPickerButton1.Location          = new System.Drawing.Point(45, 84);
     this.colorPickerButton1.Name = "colorPickerButton1";
     this.colorPickerButton1.SelectedAsBackcolor = true;
     this.colorPickerButton1.SelectedColor       = System.Drawing.Color.Gray;
     this.colorPickerButton1.Size     = new System.Drawing.Size(126, 24);
     this.colorPickerButton1.TabIndex = 13;
     this.colorPickerButton1.Text     = "Header BackColor";
     this.colorPickerButton1.UseVisualStyleBackColor = false;
     //
     // gridGroupingControl1
     //
     this.gridGroupingControl1.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.gridGroupingControl1.Appearance.AnySummaryCell.Interior = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(231)))), ((int)(((byte)(162))))));
     this.gridGroupingControl1.BackColor                = System.Drawing.SystemColors.Window;
     this.gridGroupingControl1.Font                     = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.gridGroupingControl1.FreezeCaption            = false;
     this.gridGroupingControl1.GridOfficeScrollBars     = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     this.gridGroupingControl1.GridVisualStyles         = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.gridGroupingControl1.Location                 = new System.Drawing.Point(10, 10);
     this.gridGroupingControl1.Name                     = "gridGroupingControl1";
     this.gridGroupingControl1.Size                     = new System.Drawing.Size(725, 632);
     this.gridGroupingControl1.TabIndex                 = 3;
     this.gridGroupingControl1.TableDescriptor.AllowNew = false;
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyCell.Font.Facename             = "Segoe UI";
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyCell.TextColor                 = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Borders.Bottom       = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Borders.Right        = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Interior             = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.TextColor            = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.Borders.Right  = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Borders.Right      = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Borders.Top        = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Interior           = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))));
     this.gridGroupingControl1.TableDescriptor.Appearance.ColumnHeaderCell.Font.Bold        = true;
     this.gridGroupingControl1.TableDescriptor.Appearance.GroupCaptionCell.CellType         = "ColumnHeader";
     this.gridGroupingControl1.TableDescriptor.TableOptions.ColumnHeaderRowHeight           = (int)DpiAware.LogicalToDeviceUnits(25.0f);
     this.gridGroupingControl1.TableDescriptor.TableOptions.RecordRowHeight                 = (int)DpiAware.LogicalToDeviceUnits(20.0f);
     this.gridGroupingControl1.TableOptions.GridLineBorder = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229))))));
     this.gridGroupingControl1.Text = "gridGroupingControl1";
     this.gridGroupingControl1.TopLevelGroupOptions.ShowCaption = false;
     this.gridGroupingControl1.VersionInfo         = "4.401.0.51";
     this.gridGroupingControl1.QueryCellStyleInfo += new Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventHandler(this.gridGroupingControl1_QueryCellStyleInfo);
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1012, 653);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.gridGroupingControl1);
     this.MinimumSize = new System.Drawing.Size(723, 620);
     this.Name        = "Form1";
     this.Text        = "Excel Export ";
     ((System.ComponentModel.ISupportInitialize)(this.checkBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.comboBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox5)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox6)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox3.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.gridGroupingControl1)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.panel1       = new System.Windows.Forms.Panel();
     this.gridControl1 = new Syncfusion.Windows.Forms.Grid.GridControl();
     this.groupBox1    = new System.Windows.Forms.GroupBox();
     this.comboBox2    = new System.Windows.Forms.ComboBox();
     this.comboBox1    = new System.Windows.Forms.ComboBox();
     this.label2       = new System.Windows.Forms.Label();
     this.label1       = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.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.panel1.Controls.Add(this.gridControl1);
     this.panel1.Location = new System.Drawing.Point(12, 21);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(641, 451);
     this.panel1.TabIndex = 4;
     //
     // gridControl1
     //
     this.gridControl1.DpiAware                        = true;
     this.gridControl1.BorderStyle                     = System.Windows.Forms.BorderStyle.FixedSingle;
     this.gridControl1.ColCount                        = 15;
     this.gridControl1.DefaultColWidth                 = (int)DpiAware.LogicalToDeviceUnits(90.0f);
     this.gridControl1.DefaultRowHeight                = (int)DpiAware.LogicalToDeviceUnits(25.0f);
     this.gridControl1.Dock                            = System.Windows.Forms.DockStyle.Fill;
     this.gridControl1.Location                        = new System.Drawing.Point(0, 0);
     this.gridControl1.Name                            = "gridControl1";
     this.gridControl1.RowCount                        = 20;
     this.gridControl1.SerializeCellsBehavior          = Syncfusion.Windows.Forms.Grid.GridSerializeCellsBehavior.SerializeAsRangeStylesIntoCode;
     this.gridControl1.Size                            = new System.Drawing.Size(641, 451);
     this.gridControl1.SmartSizeBox                    = false;
     this.gridControl1.TabIndex                        = 2;
     this.gridControl1.Text                            = "gridControl1";
     this.gridControl1.ThemesEnabled                   = true;
     this.gridControl1.UseRightToLeftCompatibleTextBox = true;
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.comboBox2);
     this.groupBox1.Controls.Add(this.comboBox1);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Font     = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.groupBox1.Location = new System.Drawing.Point(676, 21);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(285, 128);
     this.groupBox1.TabIndex = 5;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Apply Theme Here";
     //
     // comboBox2
     //
     this.comboBox2.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.comboBox2.FormattingEnabled = true;
     this.comboBox2.Items.AddRange(new object[] {
         "Office2010Blue",
         "Office2010Black",
         "Office2010Silver",
         "Metro"
     });
     this.comboBox2.Location = new System.Drawing.Point(111, 65);
     this.comboBox2.Name     = "comboBox2";
     this.comboBox2.Size     = new System.Drawing.Size(159, 23);
     this.comboBox2.TabIndex = 7;
     //
     // comboBox1
     //
     this.comboBox1.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.comboBox1.FormattingEnabled = true;
     this.comboBox1.Items.AddRange(new object[] {
         "Both",
         "Row Header",
         "Column Header"
     });
     this.comboBox1.Location = new System.Drawing.Point(111, 27);
     this.comboBox1.Name     = "comboBox1";
     this.comboBox1.Size     = new System.Drawing.Size(159, 23);
     this.comboBox1.TabIndex = 5;
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Font     = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location = new System.Drawing.Point(9, 70);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(78, 15);
     this.label2.TabIndex = 5;
     this.label2.Text     = "Visual Theme";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font     = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(6, 29);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(75, 15);
     this.label1.TabIndex = 4;
     this.label1.Text     = "Mark Header";
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(982, 484);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.panel1);
     this.MinimumSize = new System.Drawing.Size(800, 450);
     this.Name        = "Form1";
     this.Text        = "Mark Header";
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.ResumeLayout(false);
 }
Ejemplo n.º 8
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(MainForm));
     this.groupBarItemTestSymbols = new Syncfusion.Windows.Forms.Tools.GroupBarItem();
     this.toolStrip1           = new System.Windows.Forms.ToolStrip();
     this.openToolStripButton  = new System.Windows.Forms.ToolStripButton();
     this.runToolStripButton   = new System.Windows.Forms.ToolStripButton();
     this.edittToolStripButton = new System.Windows.Forms.ToolStripButton();
     this.stopToolStripButton  = new System.Windows.Forms.ToolStripButton();
     this.openFileDialog1      = new System.Windows.Forms.OpenFileDialog();
     this.saveFileDialog1      = new System.Windows.Forms.SaveFileDialog();
     this.imagrList1           = new System.Windows.Forms.ImageList(this.components);
     this.panel1           = new System.Windows.Forms.Panel();
     this.panel2           = new System.Windows.Forms.Panel();
     this.paletteGroupBar1 = new Syncfusion.Windows.Forms.Diagram.Controls.PaletteGroupBar(this.components);
     this.diagram1         = new Syncfusion.Windows.Forms.Diagram.Controls.Diagram(this.components);
     this.model1           = new Syncfusion.Windows.Forms.Diagram.Model(this.components);
     this.panel4           = new System.Windows.Forms.Panel();
     this.toolStrip1.SuspendLayout();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.paletteGroupBar1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.diagram1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.model1)).BeginInit();
     this.panel4.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBarItemTestSymbols
     //
     this.groupBarItemTestSymbols.Client = null;
     this.groupBarItemTestSymbols.Text   = "Test Symbols";
     //
     // toolStrip1
     //
     this.toolStrip1.AutoSize  = false;
     this.toolStrip1.BackColor = System.Drawing.SystemColors.Control;
     this.toolStrip1.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.openToolStripButton,
         this.runToolStripButton,
         this.edittToolStripButton,
         this.stopToolStripButton
     });
     this.toolStrip1.Location = new System.Drawing.Point(0, 0);
     this.toolStrip1.Name     = "toolStrip1";
     this.toolStrip1.Size     = new System.Drawing.Size(630, 77);
     this.toolStrip1.TabIndex = 0;
     this.toolStrip1.Text     = "toolStrip1";
     //
     // openToolStripButton
     //
     this.openToolStripButton.AutoSize = false;
     this.openToolStripButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.openToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("openToolStripButton.Image")));
     this.openToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.openToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.openToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.openToolStripButton.Name              = "openToolStripButton";
     this.openToolStripButton.Size              = new System.Drawing.Size(100, 60);
     this.openToolStripButton.Text              = "Open Script";
     this.openToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.openToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.openToolStripButton.Click            += new System.EventHandler(this.openToolStripButton_Click);
     //
     // runToolStripButton
     //
     this.runToolStripButton.AutoSize              = false;
     this.runToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("runToolStripButton.Image")));
     this.runToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.runToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.runToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.runToolStripButton.Name              = "runToolStripButton";
     this.runToolStripButton.Size              = new System.Drawing.Size(100, 60);
     this.runToolStripButton.Text              = "Run Script";
     this.runToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.runToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.runToolStripButton.Click            += new System.EventHandler(this.runToolStripButton_Click);
     //
     // edittToolStripButton
     //
     this.edittToolStripButton.AutoSize = false;
     this.edittToolStripButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.edittToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("edittToolStripButton.Image")));
     this.edittToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.edittToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.edittToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.edittToolStripButton.Name              = "edittToolStripButton";
     this.edittToolStripButton.Size              = new System.Drawing.Size(100, 60);
     this.edittToolStripButton.Text              = "Edit Script";
     this.edittToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.edittToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.edittToolStripButton.Click            += new System.EventHandler(this.edittToolStripButton_Click);
     //
     // stopToolStripButton
     //
     this.stopToolStripButton.AutoSize = false;
     this.stopToolStripButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.stopToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("stopToolStripButton.Image")));
     this.stopToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.stopToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.stopToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.stopToolStripButton.Name              = "stopToolStripButton";
     this.stopToolStripButton.Size              = new System.Drawing.Size(100, 60);
     this.stopToolStripButton.Text              = "Stop Script";
     this.stopToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.stopToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.stopToolStripButton.Click            += new System.EventHandler(this.stopToolStripButton_Click);
     //
     // openFileDialog1
     //
     this.openFileDialog1.DefaultExt = "edp";
     this.openFileDialog1.Filter     = "Essential Diagram Files|*.edd|All files|*.*";
     this.openFileDialog1.Title      = "Open Diagram";
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.DefaultExt = "edp";
     this.saveFileDialog1.Filter     = "Essential Diagram Files|*.edd|All files|*.*";
     this.saveFileDialog1.Title      = "Save Diagram";
     //
     // imagrList1
     //
     this.imagrList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imagrList1.ImageStream")));
     this.imagrList1.TransparentColor = System.Drawing.Color.Fuchsia;
     this.imagrList1.Images.SetKeyName(0, "");
     this.imagrList1.Images.SetKeyName(1, "");
     this.imagrList1.Images.SetKeyName(2, "");
     this.imagrList1.Images.SetKeyName(3, "");
     this.imagrList1.Images.SetKeyName(4, "palette_groupbar.png");
     this.imagrList1.Images.SetKeyName(5, "property_editor.png");
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(237)))), ((int)(((byte)(240)))));
     this.panel1.Controls.Add(this.toolStrip1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(630, 77);
     this.panel1.TabIndex = 0;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.paletteGroupBar1);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Left;
     this.panel2.Location = new System.Drawing.Point(0, 77);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(215, 416);
     this.panel2.TabIndex = 1;
     //
     // paletteGroupBar1
     //
     this.paletteGroupBar1.AllowDrop               = true;
     this.paletteGroupBar1.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
     this.paletteGroupBar1.BorderColor             = System.Drawing.Color.White;
     this.paletteGroupBar1.BorderStyle             = System.Windows.Forms.BorderStyle.None;
     this.paletteGroupBar1.Diagram                 = null;
     this.paletteGroupBar1.Dock                    = System.Windows.Forms.DockStyle.Fill;
     this.paletteGroupBar1.EditMode                = false;
     this.paletteGroupBar1.ExpandButtonToolTip     = null;
     this.paletteGroupBar1.FlatLook                = true;
     this.paletteGroupBar1.Font                    = new System.Drawing.Font("Segoe UI Semibold", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.paletteGroupBar1.ForeColor               = System.Drawing.Color.White;
     this.paletteGroupBar1.GroupBarDropDownToolTip = null;
     this.paletteGroupBar1.GroupBarItemHeight      = (int)DpiAware.LogicalToDeviceUnits(32);
     this.paletteGroupBar1.IndexOnVisibleItems     = true;
     this.paletteGroupBar1.Location                = new System.Drawing.Point(0, 0);
     this.paletteGroupBar1.MinimizeButtonToolTip   = null;
     this.paletteGroupBar1.Name                    = "paletteGroupBar1";
     this.paletteGroupBar1.NavigationPaneTooltip   = null;
     this.paletteGroupBar1.PopupClientSize         = new System.Drawing.Size(0, 0);
     this.paletteGroupBar1.Size                    = new System.Drawing.Size(215, 416);
     this.paletteGroupBar1.TabIndex                = 1;
     this.paletteGroupBar1.Text                    = "paletteGroupBar1";
     this.paletteGroupBar1.TextAlign               = Syncfusion.Windows.Forms.Tools.TextAlignment.Left;
     this.paletteGroupBar1.VisualStyle             = Syncfusion.Windows.Forms.VisualStyle.Metro;
     //
     // diagram1
     //
     this.diagram1.Controller.PasteOffset = new System.Drawing.SizeF(10F, 10F);
     this.diagram1.Dock                = System.Windows.Forms.DockStyle.Fill;
     this.diagram1.LayoutManager       = null;
     this.diagram1.Location            = new System.Drawing.Point(0, 0);
     this.diagram1.Model               = this.model1;
     this.diagram1.Name                = "diagram1";
     this.diagram1.ScrollVirtualBounds = ((System.Drawing.RectangleF)(resources.GetObject("diagram1.ScrollVirtualBounds")));
     this.diagram1.Size                = new System.Drawing.Size(415, 416);
     this.diagram1.SmartSizeBox        = false;
     this.diagram1.TabIndex            = 0;
     this.diagram1.Text                = "diagram1";
     //
     //
     //
     this.diagram1.View.ClientRectangle      = new System.Drawing.Rectangle(0, 0, 0, 0);
     this.diagram1.View.Controller           = this.diagram1.Controller;
     this.diagram1.View.Grid.MinPixelSpacing = 4F;
     this.diagram1.View.Grid.Visible         = false;
     this.diagram1.View.ScrollVirtualBounds  = ((System.Drawing.RectangleF)(resources.GetObject("resource.ScrollVirtualBounds")));
     this.diagram1.View.ZoomType             = Syncfusion.Windows.Forms.Diagram.ZoomType.Center;
     //
     // model1
     //
     this.model1.BackgroundStyle.PathBrushStyle = Syncfusion.Windows.Forms.Diagram.PathGradientBrushStyle.RectangleCenter;
     this.model1.DocumentScale.DisplayName      = "No Scale";
     this.model1.DocumentScale.Height           = 1F;
     this.model1.DocumentScale.Width            = 1F;
     this.model1.DocumentSize.Height            = 1169F;
     this.model1.DocumentSize.Width             = 827F;
     this.model1.LineStyle.DashPattern          = null;
     this.model1.LineStyle.LineColor            = System.Drawing.Color.Black;
     this.model1.LineStyle.LineWidth            = 0F;
     this.model1.LogicalSize           = new System.Drawing.SizeF(827F, 1169F);
     this.model1.ShadowStyle.Color     = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(105)))), ((int)(((byte)(105)))), ((int)(((byte)(105)))));
     this.model1.ShadowStyle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(105)))), ((int)(((byte)(105)))), ((int)(((byte)(105)))));
     //
     // panel4
     //
     this.panel4.Controls.Add(this.diagram1);
     this.panel4.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel4.Location = new System.Drawing.Point(215, 77);
     this.panel4.Name     = "panel4";
     this.panel4.Size     = new System.Drawing.Size(415, 416);
     this.panel4.TabIndex = 3;
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.AutoScaleBaseSize   = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(6), (int)DpiAware.LogicalToDeviceUnits(14));
     this.ClientSize          = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(630), (int)DpiAware.LogicalToDeviceUnits(493));
     this.Controls.Add(this.panel4);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.Font          = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name          = "MainForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Scripting";
     this.Load         += new System.EventHandler(this.MainForm_Load);
     this.Activated    += new System.EventHandler(this.MainForm_Activated);
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.panel1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.paletteGroupBar1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.diagram1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.model1)).EndInit();
     this.panel4.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Ejemplo n.º 9
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();
     this.gridGroupingControl1 = new Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl();
     this.button1       = new Syncfusion.Windows.Forms.ButtonAdv();
     this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
     ((System.ComponentModel.ISupportInitialize)(this.gridGroupingControl1)).BeginInit();
     this.SuspendLayout();
     //
     // gridGroupingControl1
     //
     this.gridGroupingControl1.BackColor            = System.Drawing.SystemColors.Window;
     this.gridGroupingControl1.FreezeCaption        = false;
     this.gridGroupingControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     this.gridGroupingControl1.GridVisualStyles     = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.gridGroupingControl1.Location             = new System.Drawing.Point(6, 8);
     this.gridGroupingControl1.Name     = "gridGroupingControl1";
     this.gridGroupingControl1.Size     = new System.Drawing.Size(790, 640);
     this.gridGroupingControl1.TabIndex = 1;
     this.gridGroupingControl1.TableDescriptor.AllowNew = false;
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyCell.Font.Facename             = "Segoe UI";
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyCell.TextColor                 = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Borders.Bottom       = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Borders.Right        = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Interior             = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.TextColor            = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.Borders.Right  = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Borders.Right      = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Borders.Top        = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Interior           = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))));
     this.gridGroupingControl1.TableDescriptor.Appearance.ColumnHeaderCell.Font.Bold        = true;
     this.gridGroupingControl1.TableDescriptor.Appearance.GroupCaptionCell.CellType         = "ColumnHeader";
     this.gridGroupingControl1.TableDescriptor.TableOptions.ColumnHeaderRowHeight           = (int)DpiAware.LogicalToDeviceUnits(25.0f);
     this.gridGroupingControl1.TableDescriptor.TableOptions.RecordRowHeight                 = (int)DpiAware.LogicalToDeviceUnits(20.0f);
     this.gridGroupingControl1.Text        = "gridGroupingControl1";
     this.gridGroupingControl1.VersionInfo = "10.102.0.36";
     //
     // button1
     //
     this.button1.Appearance        = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
     this.button1.FlatStyle         = System.Windows.Forms.FlatStyle.Flat;
     this.button1.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(165)))), ((int)(((byte)(220)))));
     this.button1.BeforeTouchSize   = new System.Drawing.Size(108, 29);
     this.button1.Font              = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.button1.ForeColor         = System.Drawing.Color.White;
     this.button1.IsBackStageButton = false;
     this.button1.Location          = new System.Drawing.Point(807, 8);
     this.button1.Name              = "button1";
     this.button1.Size              = new System.Drawing.Size(108, 29);
     this.button1.TabIndex          = 2;
     this.button1.Text              = "Clear Filter";
     this.button1.Click            += new System.EventHandler(this.button1_Click);
     //
     // propertyGrid1
     //
     this.propertyGrid1.CommandsDisabledLinkColor = System.Drawing.Color.White;
     this.propertyGrid1.Font          = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.propertyGrid1.HelpBackColor = System.Drawing.Color.White;
     this.propertyGrid1.LineColor     = System.Drawing.Color.White;
     this.propertyGrid1.Location      = new System.Drawing.Point(807, 47);
     this.propertyGrid1.Name          = "propertyGrid1";
     this.propertyGrid1.Size          = new System.Drawing.Size(243, 601);
     this.propertyGrid1.TabIndex      = 3;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1062, 656);
     this.MinimumSize         = new System.Drawing.Size(900, 500);
     this.Controls.Add(this.propertyGrid1);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.gridGroupingControl1);
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Optimized Excel Filter";
     ((System.ComponentModel.ISupportInitialize)(this.gridGroupingControl1)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.gridGroupingControl1 = new Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl();
     this.dataSet11            = new SummaryTutorial.DataSet1();
     this.oleDbDataAdapter1    = new System.Data.OleDb.OleDbDataAdapter();
     this.oleDbDeleteCommand1  = new System.Data.OleDb.OleDbCommand();
     this.oleDbConnection1     = new System.Data.OleDb.OleDbConnection();
     this.oleDbInsertCommand1  = new System.Data.OleDb.OleDbCommand();
     this.oleDbSelectCommand1  = new System.Data.OleDb.OleDbCommand();
     this.oleDbUpdateCommand1  = new System.Data.OleDb.OleDbCommand();
     this.propertyGrid1        = new System.Windows.Forms.PropertyGrid();
     ((System.ComponentModel.ISupportInitialize)(this.gridGroupingControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
     this.SuspendLayout();
     //
     // gridGroupingControl1
     //
     this.gridGroupingControl1.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.gridGroupingControl1.BackColor            = System.Drawing.SystemColors.Window;
     this.gridGroupingControl1.DataSource           = this.dataSet11.Statistics;
     this.gridGroupingControl1.FreezeCaption        = false;
     this.gridGroupingControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     this.gridGroupingControl1.GridVisualStyles     = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.gridGroupingControl1.Location             = new System.Drawing.Point(12, 2);
     this.gridGroupingControl1.Name = "gridGroupingControl1";
     this.gridGroupingControl1.ShowGroupDropArea = true;
     this.gridGroupingControl1.Size     = new System.Drawing.Size(748, 636);
     this.gridGroupingControl1.TabIndex = 0;
     this.gridGroupingControl1.TableDescriptor.AllowNew = false;
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyCell.Font.Facename             = "Segoe UI";
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyCell.TextColor                 = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Borders.Bottom       = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Borders.Right        = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Interior             = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.TextColor            = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.Borders.Right  = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Borders.Right      = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Borders.Top        = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Interior           = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))));
     this.gridGroupingControl1.TableDescriptor.Appearance.ColumnHeaderCell.Font.Bold        = true;
     this.gridGroupingControl1.TableDescriptor.Appearance.GroupCaptionCell.CellType         = "ColumnHeader";
     this.gridGroupingControl1.TableDescriptor.TableOptions.ColumnHeaderRowHeight           = (int)DpiAware.LogicalToDeviceUnits(30);
     this.gridGroupingControl1.TableDescriptor.TableOptions.RecordRowHeight                 = (int)DpiAware.LogicalToDeviceUnits(22);
     this.gridGroupingControl1.Text = "gridGroupingControl1";
     this.gridGroupingControl1.TopLevelGroupOptions.RepaintCaptionWhenItemsChanged = true;
     this.gridGroupingControl1.TopLevelGroupOptions.ShowAddNewRecordBeforeDetails  = false;
     this.gridGroupingControl1.TopLevelGroupOptions.ShowCaption = false;
     //
     // dataSet11
     //
     this.dataSet11.DataSetName             = "DataSet1";
     this.dataSet11.Locale                  = new System.Globalization.CultureInfo("en-US");
     this.dataSet11.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // oleDbDataAdapter1
     //
     this.oleDbDataAdapter1.DeleteCommand = this.oleDbDeleteCommand1;
     this.oleDbDataAdapter1.InsertCommand = this.oleDbInsertCommand1;
     this.oleDbDataAdapter1.SelectCommand = this.oleDbSelectCommand1;
     this.oleDbDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
         new System.Data.Common.DataTableMapping("Table", "Statistics", new System.Data.Common.DataColumnMapping[] {
             new System.Data.Common.DataColumnMapping("ID", "ID"),
             new System.Data.Common.DataColumnMapping("losses", "losses"),
             new System.Data.Common.DataColumnMapping("School", "School"),
             new System.Data.Common.DataColumnMapping("Sport", "Sport"),
             new System.Data.Common.DataColumnMapping("ties", "ties"),
             new System.Data.Common.DataColumnMapping("wins", "wins"),
             new System.Data.Common.DataColumnMapping("year", "year")
         })
     });
     this.oleDbDataAdapter1.UpdateCommand = this.oleDbUpdateCommand1;
     //
     // oleDbDeleteCommand1
     //
     this.oleDbDeleteCommand1.Connection = this.oleDbConnection1;
     this.oleDbDeleteCommand1.Parameters.AddRange(new System.Data.OleDb.OleDbParameter[] {
         new System.Data.OleDb.OleDbParameter("Original_ID", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "ID", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_School", System.Data.OleDb.OleDbType.VarWChar, 255, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "School", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_School1", System.Data.OleDb.OleDbType.VarWChar, 255, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "School", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_Sport", System.Data.OleDb.OleDbType.VarWChar, 255, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Sport", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_Sport1", System.Data.OleDb.OleDbType.VarWChar, 255, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Sport", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_losses", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "losses", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_losses1", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "losses", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_ties", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "ties", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_ties1", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "ties", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_wins", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "wins", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_wins1", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "wins", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_year", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "year", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_year1", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "year", System.Data.DataRowVersion.Original, null)
     });
     //
     // oleDbInsertCommand1
     //
     this.oleDbInsertCommand1.CommandText = "INSERT INTO Statistics(losses, School, Sport, ties, wins, year) VALUES (?, ?, ?, " +
                                            "?, ?, ?)";
     this.oleDbInsertCommand1.Connection = this.oleDbConnection1;
     this.oleDbInsertCommand1.Parameters.AddRange(new System.Data.OleDb.OleDbParameter[] {
         new System.Data.OleDb.OleDbParameter("losses", System.Data.OleDb.OleDbType.Integer, 0, "losses"),
         new System.Data.OleDb.OleDbParameter("School", System.Data.OleDb.OleDbType.VarWChar, 255, "School"),
         new System.Data.OleDb.OleDbParameter("Sport", System.Data.OleDb.OleDbType.VarWChar, 255, "Sport"),
         new System.Data.OleDb.OleDbParameter("ties", System.Data.OleDb.OleDbType.Integer, 0, "ties"),
         new System.Data.OleDb.OleDbParameter("wins", System.Data.OleDb.OleDbType.Integer, 0, "wins"),
         new System.Data.OleDb.OleDbParameter("year", System.Data.OleDb.OleDbType.Integer, 0, "year")
     });
     //
     // oleDbSelectCommand1
     //
     this.oleDbSelectCommand1.CommandText = "SELECT ID, losses, School, Sport, ties, wins, year FROM Statistics";
     this.oleDbSelectCommand1.Connection  = this.oleDbConnection1;
     //
     // oleDbUpdateCommand1
     //
     this.oleDbUpdateCommand1.Connection = this.oleDbConnection1;
     this.oleDbUpdateCommand1.Parameters.AddRange(new System.Data.OleDb.OleDbParameter[] {
         new System.Data.OleDb.OleDbParameter("losses", System.Data.OleDb.OleDbType.Integer, 0, "losses"),
         new System.Data.OleDb.OleDbParameter("School", System.Data.OleDb.OleDbType.VarWChar, 255, "School"),
         new System.Data.OleDb.OleDbParameter("Sport", System.Data.OleDb.OleDbType.VarWChar, 255, "Sport"),
         new System.Data.OleDb.OleDbParameter("ties", System.Data.OleDb.OleDbType.Integer, 0, "ties"),
         new System.Data.OleDb.OleDbParameter("wins", System.Data.OleDb.OleDbType.Integer, 0, "wins"),
         new System.Data.OleDb.OleDbParameter("year", System.Data.OleDb.OleDbType.Integer, 0, "year"),
         new System.Data.OleDb.OleDbParameter("Original_ID", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "ID", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_School", System.Data.OleDb.OleDbType.VarWChar, 255, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "School", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_School1", System.Data.OleDb.OleDbType.VarWChar, 255, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "School", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_Sport", System.Data.OleDb.OleDbType.VarWChar, 255, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Sport", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_Sport1", System.Data.OleDb.OleDbType.VarWChar, 255, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Sport", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_losses", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "losses", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_losses1", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "losses", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_ties", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "ties", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_ties1", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "ties", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_wins", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "wins", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_wins1", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "wins", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_year", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "year", System.Data.DataRowVersion.Original, null),
         new System.Data.OleDb.OleDbParameter("Original_year1", System.Data.OleDb.OleDbType.Integer, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "year", System.Data.DataRowVersion.Original, null)
     });
     //
     // propertyGrid1
     //
     this.propertyGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.propertyGrid1.BackColor                 = System.Drawing.Color.White;
     this.propertyGrid1.CommandsBackColor         = System.Drawing.Color.White;
     this.propertyGrid1.CommandsDisabledLinkColor = System.Drawing.Color.White;
     this.propertyGrid1.HelpBackColor             = System.Drawing.Color.White;
     this.propertyGrid1.LineColor                 = System.Drawing.Color.White;
     this.propertyGrid1.Location       = new System.Drawing.Point(766, 2);
     this.propertyGrid1.Name           = "propertyGrid1";
     this.propertyGrid1.SelectedObject = this.gridGroupingControl1;
     this.propertyGrid1.Size           = new System.Drawing.Size(234, 636);
     this.propertyGrid1.TabIndex       = 14;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1012, 656);
     this.Controls.Add(this.propertyGrid1);
     this.Controls.Add(this.gridGroupingControl1);
     this.MinimumSize = new System.Drawing.Size(800, 400);
     this.Name        = "Form1";
     this.Text        = "Summary Tutorial";
     ((System.ComponentModel.ISupportInitialize)(this.gridGroupingControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 11
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();
            this.WindowState = FormWindowState.Maximized;
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.export_groupbox = new System.Windows.Forms.GroupBox();
            this.printbtn        = new Syncfusion.Windows.Forms.ButtonAdv();
            this.printpreviewbtn = new Syncfusion.Windows.Forms.ButtonAdv();
            this.panel1          = new System.Windows.Forms.Panel();
            this.spreadsheet     = new Syncfusion.Windows.Forms.Spreadsheet.Spreadsheet();
            this.export_groupbox.SuspendLayout();
            this.panel1.SuspendLayout();
            this.SuspendLayout();
            #region Spreadsheet
            //
            //html checkbox
            //
            printbtn.Location = new Point((int)DpiAware.LogicalToDeviceUnits(15), 50);
            printbtn.Size     = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(150), 35);
            printbtn.Text     = "Print";
            printbtn.Click   += printbtn_Click;

            //
            //image checkbox
            //
            printpreviewbtn.Location = new Point((int)DpiAware.LogicalToDeviceUnits(15), 110);
            printpreviewbtn.Size     = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(150), 35);
            printpreviewbtn.Text     = "Print Preview";
            printpreviewbtn.Click   += printpreviewbtn_Click;
            //
            // export_groupbox
            //
            this.export_groupbox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                                | System.Windows.Forms.AnchorStyles.Right)));
            this.export_groupbox.Controls.Add(this.printbtn);
            this.export_groupbox.Controls.Add(this.printpreviewbtn);
            this.export_groupbox.Font     = new System.Drawing.Font(export_groupbox.Font, FontStyle.Bold);
            this.export_groupbox.Location = new System.Drawing.Point(670, 4);
            this.export_groupbox.Name     = "export_groupbox";
            this.export_groupbox.Size     = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(180), 400);
            this.export_groupbox.TabIndex = 3;
            this.export_groupbox.TabStop  = false;
            this.export_groupbox.Text     = "Printing Options";
            //
            // printbtn
            //
            this.printbtn.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.printbtn.Appearance = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
            this.printbtn.BackColor  = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(165)))), ((int)(((byte)(220)))));
            this.printbtn.FlatStyle  = System.Windows.Forms.FlatStyle.Flat;
            this.printbtn.Font       = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.printbtn.ForeColor  = System.Drawing.Color.White;
            //this.printbtn.Location = new System.Drawing.Point(50, 90);
            this.printbtn.Name = "printbtn";
            //this.printbtn.Size = new System.Drawing.Size(150, 35);
            this.printbtn.TabIndex = 5;
            this.printbtn.Text     = "Print";
            //
            // printpreviewbtn
            //
            this.printpreviewbtn.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.printpreviewbtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(165)))), ((int)(((byte)(220)))));
            this.printpreviewbtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.printpreviewbtn.Font      = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.printpreviewbtn.ForeColor = System.Drawing.Color.White;
            //this.printpreviewbtn.Location = new System.Drawing.Point(10, 100);
            this.printpreviewbtn.Name = "printpreviewbtn";
            //this.printpreviewbtn.Size = new System.Drawing.Size(150, 35);
            this.printpreviewbtn.TabIndex = 5;
            this.printpreviewbtn.Text     = "Print Preview";
            //
            // panel1
            //
            this.panel1.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.panel1.BackColor   = System.Drawing.Color.White;
            this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.panel1.Controls.Add(this.spreadsheet);
            this.panel1.ForeColor = System.Drawing.Color.DarkGray;
            this.panel1.Location  = new System.Drawing.Point(10, 0);
            this.panel1.Name      = "panel1";
            this.panel1.Size      = new System.Drawing.Size(650, 640);
            this.panel1.TabIndex  = 4;
            //
            // spreadsheet
            //
            this.spreadsheet.AllowCellContextMenu       = true;
            this.spreadsheet.AllowExtendRowColumnCount  = true;
            this.spreadsheet.AllowFormulaRangeSelection = true;
            this.spreadsheet.AllowTabItemContextMenu    = true;
            this.spreadsheet.AllowZooming = true;
            this.spreadsheet.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.spreadsheet.DefaultColumnCount = 101;
            this.spreadsheet.DefaultRowCount    = 101;
            this.spreadsheet.Location           = new System.Drawing.Point(0, 0);
            this.spreadsheet.Name               = "spreadsheet";
            this.spreadsheet.SelectedTabIndex   = 0;
            this.spreadsheet.SelectedTabItem    = null;
            this.spreadsheet.Size               = new System.Drawing.Size(650, 640);
            this.spreadsheet.TabIndex           = 0;
            this.spreadsheet.TabItemContextMenu = null;
#if !NETCORE
            spreadsheet.Open(@"..\..\..\..\..\Common\Data\Spreadsheet\Printing.xlsx");
#else
            spreadsheet.Open(@"..\..\..\..\..\..\Common\Data\Spreadsheet\Printing.xlsx");
#endif
            //
            // Form1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize          = new System.Drawing.Size(1012, 656);
            this.Controls.Add(this.export_groupbox);
            this.Controls.Add(this.panel1);
            this.Font          = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MinimumSize   = new System.Drawing.Size(500, 400);
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text          = "Printing ";
            this.export_groupbox.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.ResumeLayout(false);

            #endregion
        }
Ejemplo n.º 12
0
        public void UpdateRenderer(PaintEventArgs e)
        {
            int centre = this.RadialGauge.Width / 2;

            AdjustFontBounds(e.Graphics, RadialGauge.Font);
            DrawOuterArc(e.Graphics, 180, 180, new Point(centre, centre), (int)DpiAware.LogicalToDeviceUnits(113));
            DrawGaugeLabel(e.Graphics, new Point(centre, centre), (int)DpiAware.LogicalToDeviceUnits(113));
            DrawRanges(e.Graphics, new System.Drawing.Drawing2D.GraphicsPath(), 180, 180, (int)DpiAware.LogicalToDeviceUnits(93), new Point(centre, centre));
            DrawTickMarks(e.Graphics, new System.Drawing.Drawing2D.GraphicsPath(), (int)DpiAware.LogicalToDeviceUnits(117), 180, 180, 5, new Point(centre, centre), (int)DpiAware.LogicalToDeviceUnits(90));
        }
Ejemplo n.º 13
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.CheckedList  = new System.Windows.Forms.CheckedListBox();
     this.panel1       = new System.Windows.Forms.Panel();
     this.okButton     = new System.Windows.Forms.Button();
     this.cancelButton = new System.Windows.Forms.Button();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // checkedListBox1
     //
     this.CheckedList.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.CheckedList.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.CheckedList.Items.AddRange(new object[] {
         "choice1",
         "choice2",
         "choice3",
         "choice4",
         "choice5",
         "choice6"
     });
     this.CheckedList.Location   = new System.Drawing.Point(3, 3);
     this.CheckedList.Name       = "checkedListBox1";
     this.CheckedList.Size       = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(139), (int)DpiAware.LogicalToDeviceUnits(128));
     this.CheckedList.TabIndex   = 3;
     this.CheckedList.Dock       = DockStyle.Top;
     this.CheckedList.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.checkedListBox1_ItemCheck);
     //
     // panel1
     //
     this.panel1.BackColor   = System.Drawing.SystemColors.Window;
     this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.panel1.Controls.Add(this.cancelButton);
     this.panel1.Controls.Add(this.okButton);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location = new System.Drawing.Point(3, (int)DpiAware.LogicalToDeviceUnits(122));
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(139), (int)DpiAware.LogicalToDeviceUnits(35));
     this.panel1.TabIndex = 2;
     //
     // okButton
     //
     this.okButton.Anchor    = System.Windows.Forms.AnchorStyles.None;
     this.okButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.okButton.Font      = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.okButton.Location  = new System.Drawing.Point(4, 5);
     this.okButton.Name      = "okButton";
     this.okButton.Size      = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(64), (int)DpiAware.LogicalToDeviceUnits(23));
     this.okButton.TabIndex  = 0;
     this.okButton.Text      = "OK";
     this.okButton.AutoSize  = true;
     this.okButton.Click    += new System.EventHandler(this.okButton_Click);
     //
     // cancelButton
     //
     this.cancelButton.Anchor    = System.Windows.Forms.AnchorStyles.None;
     this.cancelButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cancelButton.Font      = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cancelButton.Location  = new System.Drawing.Point(73, 5);
     this.cancelButton.Name      = "cancelButton";
     this.cancelButton.Size      = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(59), (int)DpiAware.LogicalToDeviceUnits(23));
     this.cancelButton.TabIndex  = 1;
     this.cancelButton.Text      = "Cancel";
     this.cancelButton.AutoSize  = true;
     this.cancelButton.Click    += new System.EventHandler(this.cancelButton_Click);
     //
     // DropDownUser
     //
     this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(110)))), ((int)(((byte)(152)))));
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.CheckedList);
     this.Name    = "DropDownUser";
     this.Padding = new System.Windows.Forms.Padding(3);
     this.Size    = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(145), (int)DpiAware.LogicalToDeviceUnits(160));
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Syncfusion.Windows.Forms.Grid.GridBaseStyle    gridBaseStyle1 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();
     Syncfusion.Windows.Forms.Grid.GridBaseStyle    gridBaseStyle2 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();
     Syncfusion.Windows.Forms.Grid.GridBaseStyle    gridBaseStyle3 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();
     Syncfusion.Windows.Forms.Grid.GridBaseStyle    gridBaseStyle4 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();
     Syncfusion.Windows.Forms.Grid.GridCellInfo     gridCellInfo1  = new Syncfusion.Windows.Forms.Grid.GridCellInfo();
     Syncfusion.Windows.Forms.Grid.GridCellInfo     gridCellInfo2  = new Syncfusion.Windows.Forms.Grid.GridCellInfo();
     Syncfusion.Windows.Forms.Grid.GridCellInfo     gridCellInfo3  = new Syncfusion.Windows.Forms.Grid.GridCellInfo();
     System.ComponentModel.ComponentResourceManager resources      = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.btnRandomData = new System.Windows.Forms.Button();
     this.gridControl1  = new Syncfusion.Windows.Forms.Grid.GridControl();
     this.panel1        = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // btnRandomData
     //
     this.btnRandomData.BackColor = System.Drawing.Color.Gray;
     this.btnRandomData.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnRandomData.Font      = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnRandomData.ForeColor = System.Drawing.Color.White;
     this.btnRandomData.Location  = new System.Drawing.Point(42, 59);
     this.btnRandomData.Name      = "btnRandomData";
     this.btnRandomData.Size      = new System.Drawing.Size(179, 32);
     this.btnRandomData.TabIndex  = 1;
     this.btnRandomData.Text      = "GRID RANDOM DATA";
     this.btnRandomData.UseVisualStyleBackColor = false;
     this.btnRandomData.Click += new System.EventHandler(this.btnRandomData_Click);
     //
     // gridControl1
     //
     this.gridControl1.AllowIncreaseSmallChange = false;
     this.gridControl1.AlphaBlendSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(94)))), ((int)(((byte)(171)))), ((int)(((byte)(222)))));
     this.gridControl1.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)));
     gridBaseStyle1.Name = "Header";
     gridBaseStyle1.StyleInfo.Borders.Bottom    = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle1.StyleInfo.Borders.Left      = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle1.StyleInfo.Borders.Right     = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle1.StyleInfo.Borders.Top       = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle1.StyleInfo.CellType          = "Header";
     gridBaseStyle1.StyleInfo.Font.Bold         = true;
     gridBaseStyle1.StyleInfo.Interior          = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Vertical, System.Drawing.Color.FromArgb(((int)(((byte)(203)))), ((int)(((byte)(199)))), ((int)(((byte)(184))))), System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(234)))), ((int)(((byte)(216))))));
     gridBaseStyle1.StyleInfo.VerticalAlignment = Syncfusion.Windows.Forms.Grid.GridVerticalAlignment.Middle;
     gridBaseStyle2.Name = "Standard";
     gridBaseStyle2.StyleInfo.Font.Facename = "Tahoma";
     gridBaseStyle2.StyleInfo.Interior      = new Syncfusion.Drawing.BrushInfo(System.Drawing.SystemColors.Window);
     gridBaseStyle3.Name = "Column Header";
     gridBaseStyle3.StyleInfo.BaseStyle           = "Header";
     gridBaseStyle3.StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Center;
     gridBaseStyle4.Name = "Row Header";
     gridBaseStyle4.StyleInfo.BaseStyle           = "Header";
     gridBaseStyle4.StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Left;
     gridBaseStyle4.StyleInfo.Interior            = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Horizontal, System.Drawing.Color.FromArgb(((int)(((byte)(203)))), ((int)(((byte)(199)))), ((int)(((byte)(184))))), System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(234)))), ((int)(((byte)(216))))));
     this.gridControl1.BaseStylesMap.AddRange(new Syncfusion.Windows.Forms.Grid.GridBaseStyle[] {
         gridBaseStyle1,
         gridBaseStyle2,
         gridBaseStyle3,
         gridBaseStyle4
     });
     this.gridControl1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.gridControl1.ColWidthEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridColWidth[] {
         new Syncfusion.Windows.Forms.Grid.GridColWidth(0, (int)DpiAware.LogicalToDeviceUnits(30.0f)),
         new Syncfusion.Windows.Forms.Grid.GridColWidth(10, (int)DpiAware.LogicalToDeviceUnits(80.0f))
     });
     this.gridControl1.DefaultColWidth        = (int)DpiAware.LogicalToDeviceUnits(66.0f);
     this.gridControl1.DefaultGridBorderStyle = Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid;
     this.gridControl1.DefaultRowHeight       = (int)DpiAware.LogicalToDeviceUnits(20.0f);
     this.gridControl1.Font                 = new System.Drawing.Font("Segoe UI", 9.75F);
     this.gridControl1.ForeColor            = System.Drawing.Color.MidnightBlue;
     gridCellInfo1.Col                      = -1;
     gridCellInfo1.Row                      = -1;
     gridCellInfo1.StyleInfo.Font.Bold      = false;
     gridCellInfo1.StyleInfo.Font.Facename  = "Segoe UI";
     gridCellInfo1.StyleInfo.Font.Italic    = false;
     gridCellInfo1.StyleInfo.Font.Size      = 9.75F;
     gridCellInfo1.StyleInfo.Font.Strikeout = false;
     gridCellInfo1.StyleInfo.Font.Underline = false;
     gridCellInfo1.StyleInfo.Font.Unit      = System.Drawing.GraphicsUnit.Point;
     gridCellInfo2.Col                      = -1;
     gridCellInfo2.Row                      = -1;
     gridCellInfo2.StyleInfo.Font.Bold      = false;
     gridCellInfo2.StyleInfo.Font.Facename  = "Segoe UI";
     gridCellInfo2.StyleInfo.Font.Italic    = false;
     gridCellInfo2.StyleInfo.Font.Size      = 9.75F;
     gridCellInfo2.StyleInfo.Font.Strikeout = false;
     gridCellInfo2.StyleInfo.Font.Underline = false;
     gridCellInfo2.StyleInfo.Font.Unit      = System.Drawing.GraphicsUnit.Point;
     gridCellInfo3.Col                      = -1;
     gridCellInfo3.Row                      = -1;
     gridCellInfo3.StyleInfo.Font.Bold      = false;
     gridCellInfo3.StyleInfo.Font.Facename  = "Segoe UI";
     gridCellInfo3.StyleInfo.Font.Italic    = false;
     gridCellInfo3.StyleInfo.Font.Size      = 9.75F;
     gridCellInfo3.StyleInfo.Font.Strikeout = false;
     gridCellInfo3.StyleInfo.Font.Underline = false;
     gridCellInfo3.StyleInfo.Font.Unit      = System.Drawing.GraphicsUnit.Point;
     gridCellInfo3.StyleInfo.TextColor      = System.Drawing.Color.MidnightBlue;
     this.gridControl1.GridCells.AddRange(new Syncfusion.Windows.Forms.Grid.GridCellInfo[] {
         gridCellInfo1,
         gridCellInfo2,
         gridCellInfo3
     });
     this.gridControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     this.gridControl1.GridVisualStyles     = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.gridControl1.Location             = new System.Drawing.Point(-2, 1);
     this.gridControl1.MetroScrollBars      = true;
     this.gridControl1.MinimumSize          = new System.Drawing.Size(100, 100);
     this.gridControl1.MinResizeRowSize     = 10;
     this.gridControl1.Name = "gridControl1";
     this.gridControl1.Properties.BackgroundColor       = System.Drawing.Color.Transparent;
     this.gridControl1.Properties.ForceImmediateRepaint = false;
     this.gridControl1.Properties.GridLineColor         = System.Drawing.Color.FromArgb(((int)(((byte)(212)))), ((int)(((byte)(212)))), ((int)(((byte)(212)))));
     this.gridControl1.Properties.MarkColHeader         = false;
     this.gridControl1.Properties.MarkRowHeader         = false;
     this.gridControl1.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.gridControl1.RowHeightEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridRowHeight[] {
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(0, (int)DpiAware.LogicalToDeviceUnits(52.0f)),
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(1, (int)DpiAware.LogicalToDeviceUnits(54.0f)),
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(2, (int)DpiAware.LogicalToDeviceUnits(54.0f)),
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(3, (int)DpiAware.LogicalToDeviceUnits(54.0f)),
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(4, (int)DpiAware.LogicalToDeviceUnits(54.0f)),
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(5, (int)DpiAware.LogicalToDeviceUnits(54.0f)),
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(6, (int)DpiAware.LogicalToDeviceUnits(54.0f)),
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(7, (int)DpiAware.LogicalToDeviceUnits(54.0f)),
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(8, (int)DpiAware.LogicalToDeviceUnits(53.0f)),
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(9, (int)DpiAware.LogicalToDeviceUnits(53.0f)),
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(10, (int)DpiAware.LogicalToDeviceUnits(53.0f))
     });
     this.gridControl1.ScrollFrozen           = false;
     this.gridControl1.SerializeCellsBehavior = Syncfusion.Windows.Forms.Grid.GridSerializeCellsBehavior.SerializeIntoCode;
     this.gridControl1.Size                      = new System.Drawing.Size(706, 585);
     this.gridControl1.SizeGripStyle             = System.Windows.Forms.SizeGripStyle.Hide;
     this.gridControl1.SmartSizeBox              = false;
     this.gridControl1.SmoothMouseWheelScrolling = false;
     this.gridControl1.TabIndex                  = 2;
     this.gridControl1.ThemesEnabled             = true;
     //
     // panel1
     //
     this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.panel1.BackColor = System.Drawing.Color.WhiteSmoke;
     this.panel1.Controls.Add(this.btnRandomData);
     this.panel1.Location = new System.Drawing.Point(704, 1);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(260, 585);
     this.panel1.TabIndex = 3;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(958, 584);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.gridControl1);
     this.Icon        = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MinimumSize = new System.Drawing.Size(845, 466);
     this.Name        = "Form1";
     this.Text        = "Sparkline with Grid";
     this.Load       += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.s_style           = new System.Windows.Forms.CheckBox();
     this.s_columns         = new System.Windows.Forms.CheckBox();
     this.s_grouping        = new System.Windows.Forms.CheckBox();
     this.s_sorting         = new System.Windows.Forms.CheckBox();
     this.s_filtering       = new System.Windows.Forms.CheckBox();
     this.s_groupsummary    = new System.Windows.Forms.CheckBox();
     this.s_captionsummary  = new System.Windows.Forms.CheckBox();
     this.s_unboundrows     = new System.Windows.Forms.CheckBox();
     this.s_tablesummary    = new System.Windows.Forms.CheckBox();
     this.s_stackedheaders  = new System.Windows.Forms.CheckBox();
     this.btn_serialize     = new Syncfusion.WinForms.Controls.SfButton();
     this.de_styles         = new System.Windows.Forms.CheckBox();
     this.de_columns        = new System.Windows.Forms.CheckBox();
     this.de_grouping       = new System.Windows.Forms.CheckBox();
     this.de_sorting        = new System.Windows.Forms.CheckBox();
     this.de_filtering      = new System.Windows.Forms.CheckBox();
     this.de_groupsummary   = new System.Windows.Forms.CheckBox();
     this.de_captionsummary = new System.Windows.Forms.CheckBox();
     this.de_unboundrows    = new System.Windows.Forms.CheckBox();
     this.de_tablesummaries = new System.Windows.Forms.CheckBox();
     this.de_stackedheaders = new System.Windows.Forms.CheckBox();
     this.btn_deserialize   = new Syncfusion.WinForms.Controls.SfButton();
     this.groupBox1         = new System.Windows.Forms.GroupBox();
     this.groupBox2         = new System.Windows.Forms.GroupBox();
     this.sfDataGrid2       = new Syncfusion.WinForms.DataGrid.SfDataGrid();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.sfDataGrid2)).BeginInit();
     this.SuspendLayout();
     //
     // s_style
     //
     this.s_style.AutoSize   = true;
     this.s_style.Checked    = true;
     this.s_style.CheckState = System.Windows.Forms.CheckState.Checked;
     this.s_style.Location   = new System.Drawing.Point(6, 20);
     this.s_style.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.s_style.Name       = "s_style";
     this.s_style.Size       = new System.Drawing.Size(142, 24);
     this.s_style.TabIndex   = 21;
     this.s_style.Text       = "Serialize Styles";
     this.s_style.UseVisualStyleBackColor = true;
     //
     // s_columns
     //
     this.s_columns.AutoSize   = true;
     this.s_columns.Checked    = true;
     this.s_columns.CheckState = System.Windows.Forms.CheckState.Checked;
     this.s_columns.Location   = new System.Drawing.Point(6, 40);
     this.s_columns.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.s_columns.Name       = "s_columns";
     this.s_columns.Size       = new System.Drawing.Size(161, 24);
     this.s_columns.TabIndex   = 22;
     this.s_columns.Text       = "Serialize Columns";
     this.s_columns.UseVisualStyleBackColor = true;
     //
     // s_grouping
     //
     this.s_grouping.AutoSize   = true;
     this.s_grouping.Checked    = true;
     this.s_grouping.CheckState = System.Windows.Forms.CheckState.Checked;
     this.s_grouping.Location   = new System.Drawing.Point(6, 60);
     this.s_grouping.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.s_grouping.Name       = "s_grouping";
     this.s_grouping.Size       = new System.Drawing.Size(165, 24);
     this.s_grouping.TabIndex   = 23;
     this.s_grouping.Text       = "Serialize Grouping";
     this.s_grouping.UseVisualStyleBackColor = true;
     //
     // s_sorting
     //
     this.s_sorting.AutoSize   = true;
     this.s_sorting.Checked    = true;
     this.s_sorting.CheckState = System.Windows.Forms.CheckState.Checked;
     this.s_sorting.Location   = new System.Drawing.Point(6, 80);
     this.s_sorting.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.s_sorting.Name       = "s_sorting";
     this.s_sorting.Size       = new System.Drawing.Size(150, 24);
     this.s_sorting.TabIndex   = 24;
     this.s_sorting.Text       = "Serialize Sorting";
     this.s_sorting.UseVisualStyleBackColor = true;
     //
     // s_filtering
     //
     this.s_filtering.AutoSize   = true;
     this.s_filtering.Checked    = true;
     this.s_filtering.CheckState = System.Windows.Forms.CheckState.Checked;
     this.s_filtering.Location   = new System.Drawing.Point(6, 100);
     this.s_filtering.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.s_filtering.Name       = "s_filtering";
     this.s_filtering.Size       = new System.Drawing.Size(155, 24);
     this.s_filtering.TabIndex   = 25;
     this.s_filtering.Text       = "Serialize Filtering";
     this.s_filtering.UseVisualStyleBackColor = true;
     //
     // s_groupsummary
     //
     this.s_groupsummary.AutoSize   = true;
     this.s_groupsummary.Checked    = true;
     this.s_groupsummary.CheckState = System.Windows.Forms.CheckState.Checked;
     this.s_groupsummary.Location   = new System.Drawing.Point(6, 120);
     this.s_groupsummary.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.s_groupsummary.Name       = "s_groupsummary";
     this.s_groupsummary.Size       = new System.Drawing.Size(228, 24);
     this.s_groupsummary.TabIndex   = 26;
     this.s_groupsummary.Text       = "Serialize Group Summaries";
     this.s_groupsummary.UseVisualStyleBackColor = true;
     //
     // s_captionsummary
     //
     this.s_captionsummary.AutoSize   = true;
     this.s_captionsummary.Checked    = true;
     this.s_captionsummary.CheckState = System.Windows.Forms.CheckState.Checked;
     this.s_captionsummary.Location   = new System.Drawing.Point(6, 140);
     this.s_captionsummary.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.s_captionsummary.Name       = "s_captionsummary";
     this.s_captionsummary.Size       = new System.Drawing.Size(225, 24);
     this.s_captionsummary.TabIndex   = 27;
     this.s_captionsummary.Text       = "Serialize Caption Summary";
     this.s_captionsummary.UseVisualStyleBackColor = true;
     //
     // s_unboundrows
     //
     this.s_unboundrows.AutoSize   = true;
     this.s_unboundrows.Checked    = true;
     this.s_unboundrows.CheckState = System.Windows.Forms.CheckState.Checked;
     this.s_unboundrows.Location   = new System.Drawing.Point(6, 160);
     this.s_unboundrows.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.s_unboundrows.Name       = "s_unboundrows";
     this.s_unboundrows.Size       = new System.Drawing.Size(209, 24);
     this.s_unboundrows.TabIndex   = 28;
     this.s_unboundrows.Text       = "Serialize Unbound Rows";
     this.s_unboundrows.UseVisualStyleBackColor = true;
     //
     // s_tablesummary
     //
     this.s_tablesummary.AutoSize   = true;
     this.s_tablesummary.Checked    = true;
     this.s_tablesummary.CheckState = System.Windows.Forms.CheckState.Checked;
     this.s_tablesummary.Location   = new System.Drawing.Point(6, 180);
     this.s_tablesummary.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.s_tablesummary.Name       = "s_tablesummary";
     this.s_tablesummary.Size       = new System.Drawing.Size(222, 24);
     this.s_tablesummary.TabIndex   = 29;
     this.s_tablesummary.Text       = "Serialize Table Summaries";
     this.s_tablesummary.UseVisualStyleBackColor = true;
     //
     // s_stackedheaders
     //
     this.s_stackedheaders.AutoSize   = true;
     this.s_stackedheaders.Checked    = true;
     this.s_stackedheaders.CheckState = System.Windows.Forms.CheckState.Checked;
     this.s_stackedheaders.Location   = new System.Drawing.Point(6, 200);
     this.s_stackedheaders.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.s_stackedheaders.Name       = "s_stackedheaders";
     this.s_stackedheaders.Size       = new System.Drawing.Size(215, 24);
     this.s_stackedheaders.TabIndex   = 30;
     this.s_stackedheaders.Text       = "Serialize Stacked Header";
     this.s_stackedheaders.UseVisualStyleBackColor = true;
     //
     // btn_serialize
     //
     this.btn_serialize.Font         = new System.Drawing.Font("Segoe UI Semibold", 9F);
     this.btn_serialize.Location     = new System.Drawing.Point(35, 220);
     this.btn_serialize.Margin       = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.btn_serialize.Name         = "btn_serialize";
     this.btn_serialize.Size         = new System.Drawing.Size(100, 20);
     this.btn_serialize.TabIndex     = 31;
     this.btn_serialize.Text         = "Serialize";
     this.btn_serialize.Style.Border = Pens.Black;
     this.btn_serialize.Click       += new System.EventHandler(this.btn_serialize_Click);
     //
     // de_styles
     //
     this.de_styles.AutoSize   = true;
     this.de_styles.Checked    = true;
     this.de_styles.CheckState = System.Windows.Forms.CheckState.Checked;
     this.de_styles.Location   = new System.Drawing.Point(6, 25);
     this.de_styles.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.de_styles.Name       = "de_styles";
     this.de_styles.Size       = new System.Drawing.Size(160, 24);
     this.de_styles.TabIndex   = 22;
     this.de_styles.Text       = "Deserialize Styles";
     this.de_styles.UseVisualStyleBackColor = true;
     //
     // de_columns
     //
     this.de_columns.AutoSize   = true;
     this.de_columns.Checked    = true;
     this.de_columns.CheckState = System.Windows.Forms.CheckState.Checked;
     this.de_columns.Location   = new System.Drawing.Point(6, 45);
     this.de_columns.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.de_columns.Name       = "de_columns";
     this.de_columns.Size       = new System.Drawing.Size(179, 24);
     this.de_columns.TabIndex   = 23;
     this.de_columns.Text       = "Deserialize Columns";
     this.de_columns.UseVisualStyleBackColor = true;
     //
     // de_grouping
     //
     this.de_grouping.AutoSize   = true;
     this.de_grouping.Checked    = true;
     this.de_grouping.CheckState = System.Windows.Forms.CheckState.Checked;
     this.de_grouping.Location   = new System.Drawing.Point(6, 65);
     this.de_grouping.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.de_grouping.Name       = "de_grouping";
     this.de_grouping.Size       = new System.Drawing.Size(183, 24);
     this.de_grouping.TabIndex   = 24;
     this.de_grouping.Text       = "Deserialize Grouping";
     this.de_grouping.UseVisualStyleBackColor = true;
     //
     // de_sorting
     //
     this.de_sorting.AutoSize   = true;
     this.de_sorting.Checked    = true;
     this.de_sorting.CheckState = System.Windows.Forms.CheckState.Checked;
     this.de_sorting.Location   = new System.Drawing.Point(6, 85);
     this.de_sorting.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.de_sorting.Name       = "de_sorting";
     this.de_sorting.Size       = new System.Drawing.Size(168, 24);
     this.de_sorting.TabIndex   = 25;
     this.de_sorting.Text       = "Deserialize Sorting";
     this.de_sorting.UseVisualStyleBackColor = true;
     //
     // de_filtering
     //
     this.de_filtering.AutoSize   = true;
     this.de_filtering.Checked    = true;
     this.de_filtering.CheckState = System.Windows.Forms.CheckState.Checked;
     this.de_filtering.Location   = new System.Drawing.Point(6, 105);
     this.de_filtering.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.de_filtering.Name       = "de_filtering";
     this.de_filtering.Size       = new System.Drawing.Size(173, 24);
     this.de_filtering.TabIndex   = 26;
     this.de_filtering.Text       = "Deserialize Filtering";
     this.de_filtering.UseVisualStyleBackColor = true;
     //
     // de_groupsummary
     //
     this.de_groupsummary.AutoSize   = true;
     this.de_groupsummary.Checked    = true;
     this.de_groupsummary.CheckState = System.Windows.Forms.CheckState.Checked;
     this.de_groupsummary.Location   = new System.Drawing.Point(6, 125);
     this.de_groupsummary.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.de_groupsummary.Name       = "de_groupsummary";
     this.de_groupsummary.Size       = new System.Drawing.Size(246, 24);
     this.de_groupsummary.TabIndex   = 27;
     this.de_groupsummary.Text       = "Deserialize Group Summaries";
     this.de_groupsummary.UseVisualStyleBackColor = true;
     //
     // de_captionsummary
     //
     this.de_captionsummary.AutoSize   = true;
     this.de_captionsummary.Checked    = true;
     this.de_captionsummary.CheckState = System.Windows.Forms.CheckState.Checked;
     this.de_captionsummary.Location   = new System.Drawing.Point(6, 145);
     this.de_captionsummary.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.de_captionsummary.Name       = "de_captionsummary";
     this.de_captionsummary.Size       = new System.Drawing.Size(243, 24);
     this.de_captionsummary.TabIndex   = 28;
     this.de_captionsummary.Text       = "Deserialize Caption Summary";
     this.de_captionsummary.UseVisualStyleBackColor = true;
     //
     // de_unboundrows
     //
     this.de_unboundrows.AutoSize   = true;
     this.de_unboundrows.Checked    = true;
     this.de_unboundrows.CheckState = System.Windows.Forms.CheckState.Checked;
     this.de_unboundrows.Location   = new System.Drawing.Point(6, 165);
     this.de_unboundrows.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.de_unboundrows.Name       = "de_unboundrows";
     this.de_unboundrows.Size       = new System.Drawing.Size(227, 24);
     this.de_unboundrows.TabIndex   = 29;
     this.de_unboundrows.Text       = "Deserialize Unbound Rows";
     this.de_unboundrows.UseVisualStyleBackColor = true;
     //
     // de_tablesummaries
     //
     this.de_tablesummaries.AutoSize   = true;
     this.de_tablesummaries.Checked    = true;
     this.de_tablesummaries.CheckState = System.Windows.Forms.CheckState.Checked;
     this.de_tablesummaries.Location   = new System.Drawing.Point(6, 185);
     this.de_tablesummaries.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.de_tablesummaries.Name       = "de_tablesummaries";
     this.de_tablesummaries.Size       = new System.Drawing.Size(240, 24);
     this.de_tablesummaries.TabIndex   = 30;
     this.de_tablesummaries.Text       = "Deserialize Table Summaries";
     this.de_tablesummaries.UseVisualStyleBackColor = true;
     //
     // de_stackedheaders
     //
     this.de_stackedheaders.AutoSize   = true;
     this.de_stackedheaders.Checked    = true;
     this.de_stackedheaders.CheckState = System.Windows.Forms.CheckState.Checked;
     this.de_stackedheaders.Location   = new System.Drawing.Point(6, 205);
     this.de_stackedheaders.Margin     = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.de_stackedheaders.Name       = "de_stackedheaders";
     this.de_stackedheaders.Size       = new System.Drawing.Size(241, 24);
     this.de_stackedheaders.TabIndex   = 31;
     this.de_stackedheaders.Text       = "Deserialize Stacked Headers";
     this.de_stackedheaders.UseVisualStyleBackColor = true;
     //
     // btn_deserialize
     //
     this.btn_deserialize.Font         = new System.Drawing.Font("Segoe UI Semibold", 9F);
     this.btn_deserialize.Location     = new System.Drawing.Point(35, 225);
     this.btn_deserialize.Margin       = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.btn_deserialize.Name         = "btn_deserialize";
     this.btn_deserialize.Padding      = new System.Windows.Forms.Padding(7, 0, 7, 0);
     this.btn_deserialize.Size         = new System.Drawing.Size(100, 20);
     this.btn_deserialize.TabIndex     = 32;
     this.btn_deserialize.Text         = "Deserialize";
     this.btn_deserialize.Style.Border = Pens.Black;
     this.btn_deserialize.Click       += new System.EventHandler(this.btn_deserialize_Click);
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.s_style);
     this.groupBox1.Controls.Add(this.s_columns);
     this.groupBox1.Controls.Add(this.s_grouping);
     this.groupBox1.Controls.Add(this.btn_serialize);
     this.groupBox1.Controls.Add(this.s_sorting);
     this.groupBox1.Controls.Add(this.s_filtering);
     this.groupBox1.Controls.Add(this.s_groupsummary);
     this.groupBox1.Controls.Add(this.s_stackedheaders);
     this.groupBox1.Controls.Add(this.s_captionsummary);
     this.groupBox1.Controls.Add(this.s_unboundrows);
     this.groupBox1.Controls.Add(this.s_tablesummary);
     this.groupBox1.Location = new System.Drawing.Point(860, 5);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(170, 260);
     this.groupBox1.TabIndex = 33;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Serialization";
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox2.Controls.Add(this.de_styles);
     this.groupBox2.Controls.Add(this.de_columns);
     this.groupBox2.Controls.Add(this.btn_deserialize);
     this.groupBox2.Controls.Add(this.de_tablesummaries);
     this.groupBox2.Controls.Add(this.de_grouping);
     this.groupBox2.Controls.Add(this.de_stackedheaders);
     this.groupBox2.Controls.Add(this.de_sorting);
     this.groupBox2.Controls.Add(this.de_unboundrows);
     this.groupBox2.Controls.Add(this.de_filtering);
     this.groupBox2.Controls.Add(this.de_groupsummary);
     this.groupBox2.Controls.Add(this.de_captionsummary);
     this.groupBox2.Location = new System.Drawing.Point(860, 270);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(170, 270);
     this.groupBox2.TabIndex = 34;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Deserialization";
     //
     // sfDataGrid2
     //
     this.sfDataGrid2.AllowFiltering = true;
     this.sfDataGrid2.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.sfDataGrid2.AutoGenerateColumns = false;
     this.sfDataGrid2.AutoSizeColumnsMode = AutoSizeColumnsMode.Fill;
     this.sfDataGrid2.Location            = new System.Drawing.Point(10, 5);
     this.sfDataGrid2.Name              = "sfDataGrid2";
     this.sfDataGrid2.RowHeight         = (int)DpiAware.LogicalToDeviceUnits(21.0f);
     this.sfDataGrid2.ShowGroupDropArea = true;
     this.sfDataGrid2.Size              = new System.Drawing.Size(840, 566);
     this.sfDataGrid2.TabIndex          = 35;
     this.sfDataGrid2.Text              = "sfDataGrid2";
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1040, 576);
     this.Controls.Add(this.sfDataGrid2);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.MinimumSize   = new System.Drawing.Size(500, 400);
     this.Name          = "Form1";
     this.BackColor     = Color.White;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Serialization";
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.sfDataGrid2)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 16
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();
     this.gridGroupingControl1 = new Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl();
     this.panel1  = new System.Windows.Forms.Panel();
     this.label1  = new System.Windows.Forms.Label();
     this.tipDesc = new System.Windows.Forms.ToolTip(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.gridGroupingControl1)).BeginInit();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // gridGroupingControl1
     //
     this.gridGroupingControl1.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.gridGroupingControl1.BackColor            = System.Drawing.SystemColors.Window;
     this.gridGroupingControl1.FreezeCaption        = false;
     this.gridGroupingControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     this.gridGroupingControl1.GridVisualStyles     = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.gridGroupingControl1.Location             = new System.Drawing.Point(3, 13);
     this.gridGroupingControl1.Name     = "gridGroupingControl1";
     this.gridGroupingControl1.Size     = new System.Drawing.Size(1006, 618);
     this.gridGroupingControl1.TabIndex = 0;
     this.gridGroupingControl1.TableDescriptor.AllowNew = false;
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyCell.Font.Facename             = "Segoe UI";
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyCell.TextColor                 = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Borders.Bottom       = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Borders.Right        = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Interior             = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.TextColor            = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.Borders.Right  = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Borders.Right      = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Borders.Top        = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Interior           = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))));
     this.gridGroupingControl1.TableDescriptor.Appearance.ColumnHeaderCell.Font.Bold        = true;
     this.gridGroupingControl1.TableDescriptor.Appearance.GroupCaptionCell.CellType         = "ColumnHeader";
     this.gridGroupingControl1.TableDescriptor.TableOptions.ColumnHeaderRowHeight           = (int)DpiAware.LogicalToDeviceUnits(25);
     this.gridGroupingControl1.TableDescriptor.TableOptions.RecordRowHeight                 = (int)DpiAware.LogicalToDeviceUnits(20);
     this.gridGroupingControl1.Text        = "gridGroupingControl1";
     this.gridGroupingControl1.VersionInfo = "10.203.0.56";
     this.gridGroupingControl1.TableControlCurrentCellKeyDown += new Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlKeyEventHandler(this.gridGroupingControl1_TableControlCurrentCellKeyDown);
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.White;
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.gridGroupingControl1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(1012, 656);
     this.panel1.TabIndex = 1;
     //
     // label1
     //
     this.label1.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label1.AutoSize  = true;
     this.label1.Font      = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.label1.Location  = new System.Drawing.Point(3, 634);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(230, 13);
     this.label1.TabIndex  = 1;
     this.label1.Text      = "Press Ctrl + F / Ctrl + H to Find and Replace";
     //
     // tipDesc
     //
     this.tipDesc.BackColor  = System.Drawing.Color.Black;
     this.tipDesc.ForeColor  = System.Drawing.Color.White;
     this.tipDesc.IsBalloon  = true;
     this.tipDesc.ShowAlways = true;
     this.tipDesc.UseFading  = false;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1012, 656);
     this.Controls.Add(this.panel1);
     this.MinimumSize = new System.Drawing.Size(800, 400);
     this.Name        = "Form1";
     this.Text        = "Find and Replace";
     ((System.ComponentModel.ISupportInitialize)(this.gridGroupingControl1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
 }
Ejemplo n.º 17
0
        private void InitializeGrid()
        {
            #region "Style declaration"
            //headerStyle
            this.gridControl1.DefaultRowHeight = (int)DpiAware.LogicalToDeviceUnits(22.0f);
            GridStyleInfo headerstyle = new GridStyleInfo();
            headerstyle.Font.Size           = 12;
            headerstyle.Font.Bold           = true;
            headerstyle.VerticalAlignment   = GridVerticalAlignment.Middle;
            headerstyle.HorizontalAlignment = GridHorizontalAlignment.Center;
            headerstyle.CellType            = GridCellTypeName.Static;
            //subheaderstyle
            GridStyleInfo subheaderstyle = new GridStyleInfo();
            subheaderstyle.Font.Bold           = true;
            subheaderstyle.VerticalAlignment   = GridVerticalAlignment.Middle;
            subheaderstyle.HorizontalAlignment = GridHorizontalAlignment.Center;
            subheaderstyle.CellType            = GridCellTypeName.Static;

            GridStyleInfo valuestyle = new GridStyleInfo();
            valuestyle.BackColor           = SystemColors.Menu;
            valuestyle.TextColor           = Color.Black;
            valuestyle.VerticalAlignment   = GridVerticalAlignment.Middle;
            valuestyle.HorizontalAlignment = GridHorizontalAlignment.Center;

            gridControl1.FloatCellsMode = GridFloatCellsMode.BeforeDisplayCalculation;
            #endregion

            gridControl1.BeginUpdate();

            #region "CellButton"

            int rowIndex = 1, colIndex = 5;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "Cell Buttons";
            gridControl1.CellModels.Add("DragButton", new DragButtonCellModel(gridControl1.Model));
            rowIndex = 4;
            gridControl1[rowIndex, 2].Text      = "Press and Drag Button";
            gridControl1[rowIndex, 2].Font.Bold = true;
            gridControl1[rowIndex, 4].CellType  = "DragButton";
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 2, rowIndex, 3));

            gridControl1.CellModels.Add("EllipsisText", new EllipsisCellModel(gridControl1.Model));
            gridControl1[rowIndex, 8].Text      = "Browse Me";
            gridControl1[rowIndex, 8].Font.Bold = true;
            gridControl1[rowIndex, 8].CellType  = "EllipsisText";
            //gridControl1.ColWidths.ResizeToFit(GridRangeInfo.Cells(3, 6, 10, 6));



            gridControl1.Model.CellModels.Add("MultipleButton", new MultipleButtonGridCell.MultipleButtonCellModel(gridControl1.Model));
            rowIndex = 6;
            gridControl1[rowIndex, 2].Text      = "MultiButtonCell";
            gridControl1[rowIndex, 2].Font.Bold = true;
            //gridControl1.ColWidths.ResizeToFit(GridRangeInfo.Cells(6, 2, 8, 2));
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(6, 4, 6, 5));
            gridControl1.QueryCellInfo += new GridQueryCellInfoEventHandler(gridControl1_QueryCellInfo);
            #endregion

            #region "OleContainerCell"

            colIndex = 2;
            RegisterCellModel.GridCellType(this.gridControl1, CustomCellTypes.OleContainerCell);
            rowIndex += 3;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1.CellModels.Add("LinkLabelCell", new LinkLabelCellModel(gridControl1.Model));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "OLEContainer Cell";

            rowIndex += 2;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = subheaderstyle;
            gridControl1[rowIndex, 1].Text = "Click the image to open the file with its default file handler";

            rowIndex += 3;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, colIndex, rowIndex + 2, colIndex));
            gridControl1[rowIndex, colIndex].CellType    = CustomCellTypes.OleContainerCell.ToString();
            gridControl1[rowIndex, colIndex].Description = GetIconFile(@"Data\DocIO\SalesInvoiceDemo.doc");

            colIndex = 4;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, colIndex, rowIndex + 2, colIndex));
            gridControl1[rowIndex, colIndex].CellType    = CustomCellTypes.OleContainerCell.ToString();
            gridControl1[rowIndex, colIndex].Description = GetIconFile(@"Data\XlsIO\BudgetPlanner.xls");

            colIndex = 6;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, colIndex, rowIndex + 2, colIndex));
            gridControl1[rowIndex, colIndex].CellType    = CustomCellTypes.OleContainerCell.ToString();
            gridControl1[rowIndex, colIndex].Description = GetIconFile(@"Data\PDF\CaseStudy.pdf");

            colIndex  = 2;
            rowIndex += 4;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, colIndex, rowIndex + 2, colIndex));
            gridControl1[rowIndex, colIndex].CellType    = CustomCellTypes.OleContainerCell.ToString();
            gridControl1[rowIndex, colIndex].Description = GetIconFile(@"Data\DocIO\Arabic.txt");

            colIndex = 4;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, colIndex, rowIndex + 2, colIndex));
            gridControl1[rowIndex, colIndex].CellType    = CustomCellTypes.OleContainerCell.ToString();
            gridControl1[rowIndex, colIndex].Description = GetIconFile(@"Common\Images\Grid\CustomBorder\back3.jpg");

            colIndex = 6;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, colIndex, rowIndex + 2, colIndex));
            gridControl1[rowIndex, colIndex].CellType    = CustomCellTypes.OleContainerCell.ToString();
            gridControl1[rowIndex, colIndex].Description = @"http://www.syncfusion.com/";

            gridControl1[13, 8]           = subheaderstyle;
            gridControl1[13, 8].Text      = "Preview";
            gridControl1[13, 8].BackColor = Color.LightGray;

            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(14, 8, 16, 8));

            gridControl1[17, 8].CellType         = GridCellTypeName.PushButton;
            gridControl1[17, 8].Description      = "Select a file for preview";
            this.gridControl1.Model.ColWidths[8] = (int)DpiAware.LogicalToDeviceUnits(127);
            rowIndex++;

            colIndex = 5;


            #endregion

            #region "SliderCells"
            rowIndex += 3;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "Slider Cells";

            gridControl1.CellModels.Add("Slider", new SliderCellModel(gridControl1.Model));
            rowIndex += 3;

            SliderStyleProperties tsp = new SliderStyleProperties(new GridStyleInfo(gridControl1.TableStyle));
            tsp.Orientation = Orientation.Horizontal;

            GridStyleInfo         style;
            SliderStyleProperties sp;

            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 3, rowIndex + 1, 4));
            style            = gridControl1[rowIndex, 3];
            sp               = new SliderStyleProperties(style);
            style.CellType   = "Slider";
            sp.Maximum       = 60;
            sp.Minimum       = 0;
            sp.TickFrequency = 8;
            sp.LargeChange   = 16;
            sp.SmallChange   = 4;
            sp.Orientation   = Orientation.Horizontal;

            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 5, rowIndex + 1, 5));
            style            = gridControl1[rowIndex, 5];
            sp               = new SliderStyleProperties(style);
            style.CellType   = "Slider";
            sp.Maximum       = 40;
            sp.Minimum       = 0;
            sp.TickFrequency = 8;
            sp.LargeChange   = 16;
            sp.SmallChange   = 4;
            sp.Orientation   = Orientation.Horizontal;

            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 6, rowIndex + 7, 6));
            style            = gridControl1[rowIndex, 6];
            sp               = new SliderStyleProperties(style);
            style.CellType   = "Slider";
            sp.Maximum       = 40;
            sp.Minimum       = 0;
            sp.TickFrequency = 8;
            sp.LargeChange   = 16;
            sp.SmallChange   = 4;
            sp.Orientation   = Orientation.Vertical;
            gridControl1.EndUpdate(true);
            #endregion

            #region "ButtonEdit Cells"
            rowIndex = 31;

#if HELPERCLASS
            // Added from the source of Syncfusion.GridHelperClasses
            RegisterCellModel.GridCellType(gridControl1, CustomCellTypes.ButtonEdit);
#else
            this.gridControl1.CellModels.Add("ButtonEdit", new ButtonEditCellModel(this.gridControl1.Model));
#endif
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "Button Edit Cells";
            rowIndex++; rowIndex++;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = subheaderstyle;
            gridControl1[rowIndex, 1].Text = "ButtonEdit displaying common images and getting from file";
            rowIndex++; rowIndex++;
            gridControl1[rowIndex, 2].FloatCell = true;
            gridControl1[rowIndex, 2].Text      = "Common Images";
            gridControl1[rowIndex, 2].TextColor = Color.Black;
            gridControl1[rowIndex, 4].CellType  = "ButtonEdit";

#if HELPERCLASS
            bsp = new Syncfusion.GridHelperClasses.ButtonEditStyleProperties(this.gridControl1[rowIndex, 4]);
            bsp.ButtonEditInfo.ButtonEditType = Syncfusion.GridHelperClasses.ButtonType.Check;
#else
            bsp = new ButtonEditStyleProperties(gridControl1[rowIndex, 4]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.Check;
#endif

            gridControl1[rowIndex, 5].CellType = "ButtonEdit";

#if HELPERCLASS
            bsp = new Syncfusion.GridHelperClasses.ButtonEditStyleProperties(gridControl1[rowIndex, 5]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.Down;
#else
            bsp = new ButtonEditStyleProperties(gridControl1[rowIndex, 5]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.Down;
#endif
            gridControl1[rowIndex, 6].CellType = "ButtonEdit";

#if HELPERCLASS
            bsp = new Syncfusion.GridHelperClasses.ButtonEditStyleProperties(gridControl1[rowIndex, 6]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.Undo;
#else
            bsp = new ButtonEditStyleProperties(gridControl1[rowIndex, 6]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.Undo;
#endif
            rowIndex++; rowIndex++;
            gridControl1[rowIndex, 2].FloatCell = true;
            gridControl1[rowIndex, 2].Text      = "From File";
            gridControl1[rowIndex, 2].TextColor = Color.Black;
            gridControl1[rowIndex, 4].CellType  = "ButtonEdit";

#if HELPERCLASS
            bsp = new Syncfusion.GridHelperClasses.ButtonEditStyleProperties(gridControl1[rowIndex, 4]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.Image;
#else
            bsp = new ButtonEditStyleProperties(gridControl1[rowIndex, 4]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.Image;
#endif
#if NETCORE
            Image bmp = Image.FromFile(@"..//..//..//delete.png");
#else
            Image bmp = Image.FromFile(@"..//..//delete.png");
#endif
            bsp.ButtonEditInfo.Image = bmp;

            gridControl1[rowIndex, 5].CellType = "ButtonEdit";
#if HELPERCLASS
            bsp = new Syncfusion.GridHelperClasses.ButtonEditStyleProperties(gridControl1[rowIndex, 5]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.Image;
#else
            bsp = new ButtonEditStyleProperties(gridControl1[rowIndex, 5]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.Image;
#endif
#if NETCORE
            bmp = Image.FromFile(@"..//..//..//about.png");
#else
            bmp = Image.FromFile(@"..//..//about.png");
#endif
            bsp.ButtonEditInfo.Image           = bmp;
            gridControl1[rowIndex, 6].CellType = "ButtonEdit";
#if HELPERCLASS
            bsp = new Syncfusion.GridHelperClasses.ButtonEditStyleProperties(gridControl1[rowIndex, 6]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.Image;
#else
            bsp = new ButtonEditStyleProperties(gridControl1[rowIndex, 6]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.Image;
#endif
#if NETCORE
            bmp = Image.FromFile(@"..//..//..//disk_blue.png");
#else
            bmp = Image.FromFile(@"..//..//disk_blue.png");
#endif
            bsp.ButtonEditInfo.Image = bmp;


            rowIndex++; rowIndex++;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = subheaderstyle;
            gridControl1[rowIndex, 1].Text = "ButtonEdit cell with formatting options like textcolor, alignment, borders..";
            rowIndex++; rowIndex++;
            gridControl1[rowIndex, 2].FloatCell = true;
            gridControl1[rowIndex, 2].Text      = "With Colors";
            gridControl1[rowIndex, 2].TextColor = Color.Black;

            gridControl1[rowIndex, 4].CellType = "ButtonEdit";
#if HELPERCLASS
            bsp = new Syncfusion.GridHelperClasses.ButtonEditStyleProperties(gridControl1[rowIndex, 4]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.None;
#else
            bsp = new ButtonEditStyleProperties(gridControl1[rowIndex, 4]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.None;
#endif
            bsp.ButtonEditInfo.ForceBackColor = true;
            bsp.ButtonEditInfo.BackColor      = Color.LightGreen;

            gridControl1[rowIndex, 5].CellType = "ButtonEdit";
#if HELPERCLASS
            bsp = new Syncfusion.GridHelperClasses.ButtonEditStyleProperties(gridControl1[rowIndex, 5]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.None;
#else
            bsp = new ButtonEditStyleProperties(gridControl1[rowIndex, 5]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.None;
#endif
            bsp.ButtonEditInfo.ForceBackColor = true;
            bsp.ButtonEditInfo.BackColor      = Color.LightPink;

            gridControl1[rowIndex, 6].CellType = "ButtonEdit";
#if HELPERCLASS
            bsp = new Syncfusion.GridHelperClasses.ButtonEditStyleProperties(gridControl1[rowIndex, 6]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.None;
#else
            bsp = new ButtonEditStyleProperties(gridControl1[rowIndex, 6]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.None;
#endif
            bsp.ButtonEditInfo.ForceBackColor = true;
            bsp.ButtonEditInfo.BackColor      = Color.LightSkyBlue;

            rowIndex++; rowIndex++;
            gridControl1[rowIndex, 2].FloatCell = true;
            gridControl1[rowIndex, 2].Text      = "Text Alignment";
            gridControl1[rowIndex, 2].TextColor = Color.Black;

            gridControl1[rowIndex, 4].CellType = "ButtonEdit";
#if HELPERCLASS
            bsp = new Syncfusion.GridHelperClasses.ButtonEditStyleProperties(gridControl1[rowIndex, 4]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.None;
#else
            bsp = new ButtonEditStyleProperties(gridControl1[rowIndex, 4]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.None;
#endif
            bsp.ButtonEditInfo.Width = (int)DpiAware.LogicalToDeviceUnits(50);
            bsp.ButtonEditInfo.Text  = "Sync";
            bsp.ButtonEditInfo.HorizontalAlignment = GridHorizontalAlignment.Right;
            bsp.ButtonEditInfo.VerticalAlignment   = GridVerticalAlignment.Top;

            gridControl1[rowIndex, 5].CellType = "ButtonEdit";
#if HELPERCLASS
            bsp = new Syncfusion.GridHelperClasses.ButtonEditStyleProperties(gridControl1[rowIndex, 5]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.None;
#else
            bsp = new ButtonEditStyleProperties(gridControl1[rowIndex, 5]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.None;
#endif
            bsp.ButtonEditInfo.Width = (int)DpiAware.LogicalToDeviceUnits(50);
            bsp.ButtonEditInfo.Text  = "Sync";
            bsp.ButtonEditInfo.HorizontalAlignment = GridHorizontalAlignment.Left;
            bsp.ButtonEditInfo.VerticalAlignment   = GridVerticalAlignment.Bottom;

            gridControl1[rowIndex, 6].CellType = "ButtonEdit";
#if HELPERCLASS
            bsp = new Syncfusion.GridHelperClasses.ButtonEditStyleProperties(gridControl1[rowIndex, 6]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.None;
#else
            bsp = new ButtonEditStyleProperties(gridControl1[rowIndex, 6]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.None;
#endif
            bsp.ButtonEditInfo.Width = (int)DpiAware.LogicalToDeviceUnits(50);
            bsp.ButtonEditInfo.Text  = "Sync";
            bsp.ButtonEditInfo.HorizontalAlignment = GridHorizontalAlignment.Center;
            bsp.ButtonEditInfo.VerticalAlignment   = GridVerticalAlignment.Middle;

            rowIndex++; rowIndex++;
            gridControl1[rowIndex, 2].FloatCell = true;
            gridControl1[rowIndex, 2].Text      = "Button Alignment with Left & Right";
            gridControl1[rowIndex, 2].TextColor = Color.Black;

            gridControl1.Model.RowHeights[rowIndex] = (int)DpiAware.LogicalToDeviceUnits(20);

            gridControl1[rowIndex, 5].CellType = "ButtonEdit";
#if HELPERCLASS
            bsp = new Syncfusion.GridHelperClasses.ButtonEditStyleProperties(gridControl1[rowIndex, 5]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.Leftend;
#else
            bsp = new ButtonEditStyleProperties(gridControl1[rowIndex, 5]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.Leftend;
#endif
            bsp.ButtonEditInfo.IsLeft = true;

            gridControl1[rowIndex, 6].CellType = "ButtonEdit";
#if HELPERCLASS
            bsp = new Syncfusion.GridHelperClasses.ButtonEditStyleProperties(gridControl1[rowIndex, 6]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.Rightend;
#else
            bsp = new ButtonEditStyleProperties(gridControl1[rowIndex, 6]);
            bsp.ButtonEditInfo.ButtonEditType = ButtonType.Rightend;
#endif
            bsp.ButtonEditInfo.IsLeft = false;

            rowIndex++; rowIndex++;
            gridControl1[rowIndex, 2].FloatCell = true;
            gridControl1[rowIndex, 2].Text      = "Border around button";
            gridControl1[rowIndex, 2].TextColor = Color.Black;

            gridControl1[rowIndex, 5].CellType = "ButtonEdit";
#if HELPERCLASS
            bsp = new Syncfusion.GridHelperClasses.ButtonEditStyleProperties(gridControl1[rowIndex, 5]);
#else
            bsp = new ButtonEditStyleProperties(gridControl1[rowIndex, 5]);
#endif
            bsp.ButtonEditInfo.Width = (int)DpiAware.LogicalToDeviceUnits(30);

#if HELPERCLASS
            ((Syncfusion.GridHelperClasses.ButtonEditCellModel) this.gridControl1.CellModels["ButtonEdit"]).GridDrawButtonFace += new Syncfusion.GridHelperClasses.ButtonEditCellModel.GridDrawButtonFaceEventHandler(Form1_GridDrawButtonFace);
#else
            ((ButtonEditCellModel)this.gridControl1.CellModels["ButtonEdit"]).GridDrawButtonFace += new ButtonEditCellModel.GridDrawButtonFaceEventHandler(Form1_GridDrawButtonFace);
#endif
            #endregion

            #region "LinkLabel"

            rowIndex += 3;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            //gridControl1.CellModels.Add("LinkLabelCell", new LinkLabelCellModel(gridControl1.Model));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "Link Label Cells";

            rowIndex += 3;
            gridControl1[rowIndex, colIndex].CellType            = "LinkLabelCell";
            gridControl1[rowIndex, colIndex].Text                = "Syncfusion, Inc.";
            gridControl1[rowIndex, colIndex].Font.Bold           = true;
            gridControl1[rowIndex, colIndex].Tag                 = "http://www.syncfusion.com";
            gridControl1[rowIndex, colIndex].HorizontalAlignment = GridHorizontalAlignment.Center;

            rowIndex++; rowIndex++;
            gridControl1[rowIndex, colIndex].CellType            = "LinkLabelCell";
            gridControl1[rowIndex, colIndex].Text                = "Windows Forms FAQ";
            gridControl1[rowIndex, colIndex].Font.Bold           = true;
            gridControl1[rowIndex, colIndex].Tag                 = "http://www.syncfusion.com/support/forums/grid-windows";
            gridControl1[rowIndex, colIndex].HorizontalAlignment = GridHorizontalAlignment.Center;

            rowIndex++; rowIndex++;
            gridControl1[rowIndex, colIndex].CellType            = "LinkLabelCell";
            gridControl1[rowIndex, colIndex].Text                = "Microsoft Windows Forms";
            gridControl1[rowIndex, colIndex].Font.Bold           = true;
            gridControl1[rowIndex, colIndex].Tag                 = "http://windowsforms.net/";
            gridControl1[rowIndex, colIndex].HorizontalAlignment = GridHorizontalAlignment.Center;

            rowIndex++; rowIndex++;
            gridControl1[rowIndex, colIndex].CellType            = "LinkLabelCell";
            gridControl1[rowIndex, colIndex].Text                = "MSDN";
            gridControl1[rowIndex, colIndex].Font.Bold           = true;
            gridControl1[rowIndex, colIndex].Tag                 = "http://msdn.microsoft.com";
            gridControl1[rowIndex, colIndex].HorizontalAlignment = GridHorizontalAlignment.Center;

            //gridControl1.ColWidths.ResizeToFit(GridRangeInfo.Cells(9, 5, 17, 5));
            #endregion

            this.gridControl1.Model.Options.DisplayEmptyColumns = true;
            this.gridControl1.Model.Options.DisplayEmptyRows    = true;
            gridControl1.EndUpdate(true);
            gridControl1.Refresh();
        }
Ejemplo n.º 18
0
 /// <summary>
 /// Retrive ArcThickness of the RadialGauge
 /// </summary>
 /// <returns>returns Thickness of the Arc based on DPI</returns>
 internal float GetArcThickness()
 {
     return(DpiAware.LogicalToDeviceUnits(this.RadialGauge.ArcThickness));
 }
Ejemplo n.º 19
0
        /// <summary>
        /// GridGrouping control getting started customization.
        /// </summary>
        private void GridSettings()
        {
            #region SetUpGroupingGrid

            DataTable parentTable     = GetParentTable();
            DataTable childTable      = GetChildTable();
            DataTable grandChildTable = GetGrandChildTable();

            //Add Summary row to parent table
            GridSummaryColumnDescriptor gridSummaryColumnDescriptor = new GridSummaryColumnDescriptor();
            gridSummaryColumnDescriptor.DisplayColumn = "GroupID";
            gridSummaryColumnDescriptor.Format        = "  {Count} Records.";
            gridSummaryColumnDescriptor.Name          = "SummaryColumn";
            gridSummaryColumnDescriptor.SummaryType   = Syncfusion.Grouping.SummaryType.Count;
            this.gridGroupingControl1.TableDescriptor.SummaryRows.Add(new GridSummaryRowDescriptor("SummaryRow", new GridSummaryColumnDescriptor[] {
                gridSummaryColumnDescriptor
            }));


            // Manually specify relations in grouping engine. The DataSet does not need to have any DataRelations.
            // This is the same approach that should be used if you want to set up relation ships
            // between independent IList.
            GridRelationDescriptor parentToChildRelationDescriptor = new GridRelationDescriptor();
            parentToChildRelationDescriptor.ChildTableName = "MyChildTable";                // same as SourceListSetEntry.Name for childTable (see below)
            parentToChildRelationDescriptor.RelationKind   = RelationKind.RelatedMasterDetails;
            parentToChildRelationDescriptor.RelationKeys.Add("parentID", "ParentID");

            //Add Summary Row to child table
            gridSummaryColumnDescriptor = new GridSummaryColumnDescriptor();
            gridSummaryColumnDescriptor.DisplayColumn = "ChildGroupID";
            gridSummaryColumnDescriptor.Format        = "  {Count} Records.";
            gridSummaryColumnDescriptor.Name          = "SummaryColumn";
            gridSummaryColumnDescriptor.SummaryType   = Syncfusion.Grouping.SummaryType.Count;
            parentToChildRelationDescriptor.ChildTableDescriptor.SummaryRows.Add(new GridSummaryRowDescriptor("SummaryRow", new Syncfusion.Windows.Forms.Grid.Grouping.GridSummaryColumnDescriptor[] {
                gridSummaryColumnDescriptor
            }));


            this.gridGroupingControl1.TableControl.DpiAware = true;
            // Add relation to ParentTable
            gridGroupingControl1.TableDescriptor.Relations.Add(parentToChildRelationDescriptor);

            GridRelationDescriptor childToGrandChildRelationDescriptor = new GridRelationDescriptor();
            childToGrandChildRelationDescriptor.ChildTableName = "MyGrandChildTable";              // same as SourceListSetEntry.Name for grandChhildTable (see below)
            childToGrandChildRelationDescriptor.RelationKind   = RelationKind.RelatedMasterDetails;
            childToGrandChildRelationDescriptor.RelationKeys.Add("childID", "ChildID");

            //Add Summary row to GrandChildTable
            gridSummaryColumnDescriptor = new GridSummaryColumnDescriptor();
            gridSummaryColumnDescriptor.DisplayColumn = "GrandChildGroupID";
            gridSummaryColumnDescriptor.Format        = "  {Count} Records.";
            gridSummaryColumnDescriptor.Name          = "SummaryColumn";
            gridSummaryColumnDescriptor.SummaryType   = Syncfusion.Grouping.SummaryType.Count;
            childToGrandChildRelationDescriptor.ChildTableDescriptor.SummaryRows.Add(new GridSummaryRowDescriptor("SummaryRow", new GridSummaryColumnDescriptor[] {
                gridSummaryColumnDescriptor
            }));


            // Add relation to ChildTable
            parentToChildRelationDescriptor.ChildTableDescriptor.Relations.Add(childToGrandChildRelationDescriptor);

            // Register any DataTable/IList with SourceListSet, so that RelationDescriptor can resolve the name
            this.gridGroupingControl1.Engine.SourceListSet.Add("MyParentTable", parentTable);
            this.gridGroupingControl1.Engine.SourceListSet.Add("MyChildTable", childTable);
            this.gridGroupingControl1.Engine.SourceListSet.Add("MyGrandChildTable", grandChildTable);

            this.gridGroupingControl1.DataSource        = parentTable;
            this.gridGroupingControl1.ShowGroupDropArea = true;
            this.gridGroupingControl1.AddGroupDropArea("MyChildTable");
            this.gridGroupingControl1.AddGroupDropArea("MyGrandChildTable");


            //Sync the col width with nested table to avoid messing up of RecordPreviewCell

            // The TrackWidthOfParentColumn propetry of a column descriptor ensures that
            // columns are aligned and stay in sync.

            this.gridGroupingControl1.TableDescriptor.Columns[0].Width = 200;
            this.gridGroupingControl1.TableDescriptor.Columns[1].Width = 150;
            this.gridGroupingControl1.TableDescriptor.Columns[2].Width = 150;

            //// synchronize width of columns in child record with width of column in parent record.
            for (int n = 0; n < 3; n++)
            {
                parentToChildRelationDescriptor.ChildTableDescriptor.Columns[n].TrackWidthOfParentColumn = gridGroupingControl1.TableDescriptor.Columns[n].Name;
            }

            ///same for grandchild table.
            for (int n = 0; n < 3; n++)
            {
                childToGrandChildRelationDescriptor.ChildTableDescriptor.Columns[n].TrackWidthOfParentColumn = parentToChildRelationDescriptor.ChildTableDescriptor.Columns[n].Name;
            }


            this.gridGroupingControl1.TableDescriptor.GroupedColumns.Add("GroupID");
            this.gridGroupingControl1.TableOptions.ShowRecordPreviewRow  = true;
            this.gridGroupingControl1.ChildGroupOptions.ShowGroupPreview = true;
            gridGroupingControl1.Appearance.AnyCell.TextColor            = Color.MidnightBlue;
            //this.gridGroupingControl1.TableDescriptor.Columns["GroupID"].Appearance.AnyHeaderCell.HorizontalAlignment = GridHorizontalAlignment.Right;
            //this.gridGroupingControl1.TableDescriptor.Columns["GroupID"].Appearance.AnyHeaderCell.VerticalAlignment = GridVerticalAlignment.Bottom;
            this.gridGroupingControl1.TableDescriptor.Columns["GroupID"].HeaderText    = "Group ID";
            this.gridGroupingControl1.TableDescriptor.Columns["parentID"].HeaderText   = "Parent ID";
            this.gridGroupingControl1.TableDescriptor.Columns["ParentName"].HeaderText = "Parent Name";
            this.gridGroupingControl1.TableDescriptor.Relations[0].ChildTableDescriptor.Columns["childID"].HeaderText      = "Child ID";
            this.gridGroupingControl1.TableDescriptor.Relations[0].ChildTableDescriptor.Columns["ChildGroupID"].HeaderText = "Child Group ID";

            this.gridGroupingControl1.TableDescriptor.Relations[0].ChildTableDescriptor.Relations[0].ChildTableDescriptor.Columns["GrandChildID"].HeaderText      = "Grand Child ID";
            this.gridGroupingControl1.TableDescriptor.Relations[0].ChildTableDescriptor.Relations[0].ChildTableDescriptor.Columns["GrandChildGroupID"].HeaderText = "Grand Child Group ID";
            this.gridGroupingControl1.Table.DefaultColumnHeaderRowHeight = (int)DpiAware.LogicalToDeviceUnits(30.0f);

            #endregion

            this.comboBox1.Items.Add(ConverterOptions.Default);
            this.comboBox1.Items.Add(ConverterOptions.Visible);
            this.comboBox1.SelectedIndex          = 0;
            this.checkBox2.Checked                = true;
            this.checkBox3.Checked                = true;
            this.checkBox5.Checked                = true;
            this.checkBox6.Checked                = true;
            this.colorPickerButton1.SelectedColor = Color.Empty;
            this.colorPickerButton2.SelectedColor = Color.Empty;
            this.comboBox1.SelectedIndexChanged  += new EventHandler(comboBox1_SelectedIndexChanged);

            //Navigate to other control using tabkey navigation
            this.gridGroupingControl1.WantTabKey = false;
        }
Ejemplo n.º 20
0
 /// <summary>
 /// To get thickness of the outer frame
 /// </summary>
 /// <returns>returns the outer frame thickness based on DPI</returns>
 internal int GetFrameThickness()
 {
     return((int)Math.Ceiling(DpiAware.LogicalToDeviceUnits(this.RadialGauge.FrameThickness)));
 }
Ejemplo n.º 21
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));
     this.pivotGridControl1 = new Syncfusion.Windows.Forms.PivotAnalysis.PivotGridControl(this.components);
     this.groupBox1         = new System.Windows.Forms.GroupBox();
     this.buttonAdv1        = new Syncfusion.Windows.Forms.ButtonAdv();
     this.checkBoxAdv2      = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBoxAdv1      = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox3         = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox2         = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox1         = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox1)).BeginInit();
     this.SuspendLayout();
     //
     // pivotGridControl1
     //
     this.pivotGridControl1.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.pivotGridControl1.EditManager      = null;
     this.pivotGridControl1.GridVisualStyles = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.pivotGridControl1.Location         = new System.Drawing.Point(0, 8);
     this.pivotGridControl1.Name             = "pivotGridControl1";
     this.pivotGridControl1.Size             = new System.Drawing.Size(798, 562);
     this.pivotGridControl1.TabIndex         = 0;
     this.pivotGridControl1.Text             = "pivotGridControl1";
     this.pivotGridControl1.ThemeName        = "Metro";
     this.pivotGridControl1.UpdateManager    = null;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.buttonAdv1);
     this.groupBox1.Controls.Add(this.checkBoxAdv2);
     this.groupBox1.Controls.Add(this.checkBoxAdv1);
     this.groupBox1.Controls.Add(this.checkBox3);
     this.groupBox1.Controls.Add(this.checkBox2);
     this.groupBox1.Controls.Add(this.checkBox1);
     this.groupBox1.Dock      = System.Windows.Forms.DockStyle.Right;
     this.groupBox1.Font      = new System.Drawing.Font("Segoe UI Semibold", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.groupBox1.ForeColor = System.Drawing.Color.Black;
     this.groupBox1.Location  = new System.Drawing.Point(806, 0);
     this.groupBox1.Margin    = new System.Windows.Forms.Padding(0);
     this.groupBox1.Name      = "groupBox1";
     this.groupBox1.Padding   = new System.Windows.Forms.Padding(0);
     this.groupBox1.Size      = new System.Drawing.Size(225, 570);
     this.groupBox1.TabIndex  = 1;
     this.groupBox1.TabStop   = false;
     this.groupBox1.Text      = "Options";
     //
     // buttonAdv1
     //
     this.buttonAdv1.Appearance      = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
     this.buttonAdv1.BackColor       = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.buttonAdv1.BeforeTouchSize = new System.Drawing.Size(176, 40);
     this.buttonAdv1.Font            = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.buttonAdv1.ForeColor       = System.Drawing.Color.White;
     this.buttonAdv1.Location        = new System.Drawing.Point(36, 249);
     this.buttonAdv1.MetroColor      = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.buttonAdv1.Name            = "buttonAdv1";
     this.buttonAdv1.Size            = new System.Drawing.Size(176, 40);
     this.buttonAdv1.TabIndex        = 6;
     this.buttonAdv1.Text            = "Collapse Headers";
     this.buttonAdv1.ThemeName       = "Metro";
     this.buttonAdv1.UseVisualStyle  = true;
     this.buttonAdv1.Click          += new System.EventHandler(this.buttonAdv1_Clicked);
     //
     // checkBoxAdv2
     //
     this.checkBoxAdv2.BeforeTouchSize    = new System.Drawing.Size(223, 40);
     this.checkBoxAdv2.Checked            = true;
     this.checkBoxAdv2.CheckState         = System.Windows.Forms.CheckState.Checked;
     this.checkBoxAdv2.DrawFocusRectangle = false;
     this.checkBoxAdv2.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBoxAdv2.ImageCheckBoxSize = new System.Drawing.Size(20, 20);
     this.checkBoxAdv2.Location          = new System.Drawing.Point(15, 188);
     this.checkBoxAdv2.Margin            = new System.Windows.Forms.Padding(0);
     this.checkBoxAdv2.MetroColor        = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBoxAdv2.Name               = "checkBoxAdv2";
     this.checkBoxAdv2.Size               = new System.Drawing.Size(223, 40);
     this.checkBoxAdv2.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBoxAdv2.TabIndex           = 5;
     this.checkBoxAdv2.Text               = "Freeze Headers";
     this.checkBoxAdv2.ThemeName          = "Metro";
     this.checkBoxAdv2.CheckStateChanged += new System.EventHandler(this.checkBoxAdv2_CheckStateChanged);
     //
     // checkBoxAdv1
     //
     this.checkBoxAdv1.BeforeTouchSize    = new System.Drawing.Size(223, 40);
     this.checkBoxAdv1.Checked            = true;
     this.checkBoxAdv1.CheckState         = System.Windows.Forms.CheckState.Checked;
     this.checkBoxAdv1.DrawFocusRectangle = false;
     this.checkBoxAdv1.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBoxAdv1.ImageCheckBoxSize = new System.Drawing.Size(20, 20);
     this.checkBoxAdv1.Location          = new System.Drawing.Point(15, 148);
     this.checkBoxAdv1.Margin            = new System.Windows.Forms.Padding(0);
     this.checkBoxAdv1.MetroColor        = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBoxAdv1.Name               = "checkBoxAdv1";
     this.checkBoxAdv1.Size               = new System.Drawing.Size(223, 40);
     this.checkBoxAdv1.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBoxAdv1.TabIndex           = 4;
     this.checkBoxAdv1.Text               = "Show PivotTableFieldList";
     this.checkBoxAdv1.ThemeName          = "Metro";
     this.checkBoxAdv1.CheckStateChanged += new System.EventHandler(this.checkBoxAdv1_CheckStateChanged);
     //
     // checkBox3
     //
     this.checkBox3.BeforeTouchSize    = new System.Drawing.Size(223, 40);
     this.checkBox3.Checked            = true;
     this.checkBox3.CheckState         = System.Windows.Forms.CheckState.Checked;
     this.checkBox3.DrawFocusRectangle = false;
     this.checkBox3.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox3.ImageCheckBoxSize = new System.Drawing.Size(20, 20);
     this.checkBox3.Location          = new System.Drawing.Point(15, 108);
     this.checkBox3.Margin            = new System.Windows.Forms.Padding(0);
     this.checkBox3.MetroColor        = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox3.Name               = "checkBox3";
     this.checkBox3.Size               = new System.Drawing.Size(223, 40);
     this.checkBox3.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox3.TabIndex           = 3;
     this.checkBox3.Text               = "Show GrandTotals";
     this.checkBox3.ThemeName          = "Metro";
     this.checkBox3.CheckStateChanged += new System.EventHandler(this.checkBox3_CheckStateChanged);
     //
     // checkBox2
     //
     this.checkBox2.BeforeTouchSize    = new System.Drawing.Size(223, 40);
     this.checkBox2.Checked            = true;
     this.checkBox2.CheckState         = System.Windows.Forms.CheckState.Checked;
     this.checkBox2.DrawFocusRectangle = false;
     this.checkBox2.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox2.ImageCheckBoxSize = new System.Drawing.Size(20, 20);
     this.checkBox2.Location          = new System.Drawing.Point(15, 68);
     this.checkBox2.Margin            = new System.Windows.Forms.Padding(0);
     this.checkBox2.MetroColor        = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox2.Name               = "checkBox2";
     this.checkBox2.Size               = new System.Drawing.Size(223, 40);
     this.checkBox2.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox2.TabIndex           = 2;
     this.checkBox2.Text               = "Show Subtotals";
     this.checkBox2.ThemeName          = "Metro";
     this.checkBox2.CheckStateChanged += new System.EventHandler(this.checkBox2_CheckStateChanged);
     //
     // checkBox1
     //
     this.checkBox1.BeforeTouchSize    = new System.Drawing.Size(213, 40);
     this.checkBox1.Checked            = true;
     this.checkBox1.CheckState         = System.Windows.Forms.CheckState.Checked;
     this.checkBox1.DrawFocusRectangle = false;
     this.checkBox1.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox1.ImageCheckBoxSize = new System.Drawing.Size(20, 20);
     this.checkBox1.Location          = new System.Drawing.Point(15, 28);
     this.checkBox1.Margin            = new System.Windows.Forms.Padding(0);
     this.checkBox1.MetroColor        = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox1.Name               = "checkBox1";
     this.checkBox1.Size               = new System.Drawing.Size(213, 40);
     this.checkBox1.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox1.TabIndex           = 1;
     this.checkBox1.Text               = "Show Group Bar";
     this.checkBox1.ThemeName          = "Metro";
     this.checkBox1.CheckStateChanged += new System.EventHandler(this.checkBox1_CheckStateChanged);
     //
     // Form1
     //
     this.AutoScaleDimensions     = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode           = System.Windows.Forms.AutoScaleMode.Font;
     this.BorderColor             = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.CaptionAlign            = System.Windows.Forms.HorizontalAlignment.Left;
     this.CaptionBarColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.CaptionBarHeight        = (int)DpiAware.LogicalToDeviceUnits(50);
     this.CaptionButtonColor      = System.Drawing.Color.White;
     this.CaptionButtonHoverColor = System.Drawing.Color.White;
     this.CaptionFont             = new System.Drawing.Font("Segoe UI Semibold", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.CaptionForeColor        = System.Drawing.Color.White;
     this.ClientSize = new System.Drawing.Size(1031, 570);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.pivotGridControl1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Margin        = new System.Windows.Forms.Padding(0);
     this.MetroColor    = System.Drawing.Color.Transparent;
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Customization";
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox1)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 22
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Syncfusion.WinForms.SmithChart.AxisStyle   axisStyle1   = new Syncfusion.WinForms.SmithChart.AxisStyle();
     Syncfusion.WinForms.SmithChart.LegendStyle legendStyle1 = new Syncfusion.WinForms.SmithChart.LegendStyle();
     Syncfusion.WinForms.SmithChart.AxisStyle   axisStyle2   = new Syncfusion.WinForms.SmithChart.AxisStyle();
     this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
     this.sfSmithChart1     = new Syncfusion.WinForms.SmithChart.SfSmithChart();
     this.panel1            = new System.Windows.Forms.Panel();
     this.comboBox1         = new System.Windows.Forms.ComboBox();
     this.label2            = new System.Windows.Forms.Label();
     this.label1            = new System.Windows.Forms.Label();
     this.tableLayoutPanel1.SuspendLayout();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // tableLayoutPanel1
     //
     this.tableLayoutPanel1.BackColor   = System.Drawing.Color.White;
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 80F));
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
     this.tableLayoutPanel1.Controls.Add(this.sfSmithChart1, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.panel1, 1, 0);
     this.tableLayoutPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 1;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel1.Size     = new System.Drawing.Size(1088, 563);
     this.tableLayoutPanel1.TabIndex = 0;
     //
     // sfSmithChart1
     //
     this.sfSmithChart1.AccessibleName          = "SfSmithChart";
     this.sfSmithChart1.BackColor               = System.Drawing.Color.White;
     this.sfSmithChart1.ColorModel.CustomColors = null;
     this.sfSmithChart1.ColorModel.Palette      = Syncfusion.WinForms.SmithChart.ChartColorPalette.Metro;
     this.sfSmithChart1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.sfSmithChart1.Font = new System.Drawing.Font("Segoe UI", 16F, System.Drawing.FontStyle.Bold);
     this.sfSmithChart1.HorizontalAxis.Style.AxisLineDashStyle       = System.Drawing.Drawing2D.DashStyle.Solid;
     this.sfSmithChart1.HorizontalAxis.Style.AxisLineWidth           = 1F;
     this.sfSmithChart1.HorizontalAxis.Style.LabelFont               = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.sfSmithChart1.HorizontalAxis.Style.MajorGridlinesDashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
     this.sfSmithChart1.HorizontalAxis.Style.MajorGridlinesWidth     = 1F;
     this.sfSmithChart1.HorizontalAxis.Style.MinorGridlinesDashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
     this.sfSmithChart1.HorizontalAxis.Style.MinorGridlinesWidth     = 0.5F;
     this.sfSmithChart1.Legend.Alignment       = System.Drawing.StringAlignment.Center;
     this.sfSmithChart1.Legend.Height          = 0;
     this.sfSmithChart1.Legend.OffsetX         = 0;
     this.sfSmithChart1.Legend.OffsetY         = 0;
     this.sfSmithChart1.Legend.Style.LabelFont = new System.Drawing.Font("Segoe UI Semibold", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.sfSmithChart1.Legend.Width           = 0;
     this.sfSmithChart1.Legend.WrapItems       = false;
     this.sfSmithChart1.Location = new System.Drawing.Point(3, 3);
     this.sfSmithChart1.Name     = "sfSmithChart1";
     this.sfSmithChart1.RadialAxis.Style.AxisLineDashStyle       = System.Drawing.Drawing2D.DashStyle.Solid;
     this.sfSmithChart1.RadialAxis.Style.AxisLineWidth           = 1F;
     this.sfSmithChart1.RadialAxis.Style.LabelFont               = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.sfSmithChart1.RadialAxis.Style.MajorGridlinesDashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
     this.sfSmithChart1.RadialAxis.Style.MajorGridlinesWidth     = 1F;
     this.sfSmithChart1.RadialAxis.Style.MinorGridlinesDashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
     this.sfSmithChart1.RadialAxis.Style.MinorGridlinesWidth     = 0.5F;
     this.sfSmithChart1.Radius                     = 0.95F;
     this.sfSmithChart1.Size                       = new System.Drawing.Size(864, 557);
     this.sfSmithChart1.Style.BackColor            = System.Drawing.Color.White;
     this.sfSmithChart1.Style.ChartAreaBackColor   = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.sfSmithChart1.Style.ChartAreaBorderColor = System.Drawing.Color.White;
     this.sfSmithChart1.Style.ChartAreaBorderWidth = 0;
     this.sfSmithChart1.Style.Font                 = new System.Drawing.Font("Segoe UI", 16F, System.Drawing.FontStyle.Bold);
     axisStyle1.AxisLineDashStyle                  = System.Drawing.Drawing2D.DashStyle.Solid;
     axisStyle1.AxisLineWidth                      = 1F;
     axisStyle1.LabelFont = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     axisStyle1.MajorGridlinesDashStyle           = System.Drawing.Drawing2D.DashStyle.Solid;
     axisStyle1.MajorGridlinesWidth               = 1F;
     axisStyle1.MinorGridlinesDashStyle           = System.Drawing.Drawing2D.DashStyle.Solid;
     axisStyle1.MinorGridlinesWidth               = 0.5F;
     this.sfSmithChart1.Style.HorizontalAxisStyle = axisStyle1;
     legendStyle1.LabelFont = new System.Drawing.Font("Segoe UI Semibold", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.sfSmithChart1.Style.LegendStyle = legendStyle1;
     axisStyle2.AxisLineDashStyle         = System.Drawing.Drawing2D.DashStyle.Solid;
     axisStyle2.AxisLineWidth             = 1F;
     axisStyle2.LabelFont = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     axisStyle2.MajorGridlinesDashStyle       = System.Drawing.Drawing2D.DashStyle.Solid;
     axisStyle2.MajorGridlinesWidth           = 1F;
     axisStyle2.MinorGridlinesDashStyle       = System.Drawing.Drawing2D.DashStyle.Solid;
     axisStyle2.MinorGridlinesWidth           = 0.5F;
     this.sfSmithChart1.Style.RadialAxisStyle = axisStyle2;
     this.sfSmithChart1.TabIndex = 0;
     this.sfSmithChart1.TooltipOptions.BackColor   = System.Drawing.Color.Empty;
     this.sfSmithChart1.TooltipOptions.BorderColor = System.Drawing.Color.Empty;
     this.sfSmithChart1.TooltipOptions.BorderWidth = 1;
     this.sfSmithChart1.TooltipOptions.Font        = new System.Drawing.Font("Segoe UI", 10F);
     this.sfSmithChart1.TooltipOptions.ForeColor   = System.Drawing.Color.Empty;
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.Control;
     this.panel1.Controls.Add(this.comboBox1);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(873, 3);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(212, 557);
     this.panel1.TabIndex = 1;
     //
     // comboBox1
     //
     this.comboBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.comboBox1.FormattingEnabled = true;
     this.comboBox1.Items.AddRange(new object[] {
         "Impedance",
         "Admittance"
     });
     this.comboBox1.Location              = new System.Drawing.Point(27, 145);
     this.comboBox1.Name                  = "comboBox1";
     this.comboBox1.Size                  = new System.Drawing.Size(121, 21);
     this.comboBox1.TabIndex              = 2;
     this.comboBox1.Text                  = "Impedance";
     this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.RenderType);
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Font     = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location = new System.Drawing.Point(23, 101);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(126, 21);
     this.label2.TabIndex = 1;
     this.label2.Text     = "Rendering Mode";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font     = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(21, 48);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(122, 32);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Properties";
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1088, 563);
     this.Controls.Add(this.tableLayoutPanel1);
     this.MinimumSize      = new System.Drawing.Size(1100, 490);
     this.Name             = "Form1";
     this.Text             = "Getting Started";
     this.CaptionBarHeight = (int)DpiAware.LogicalToDeviceUnits(this.CaptionBarHeight);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
 }
Ejemplo n.º 23
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBox1             = new System.Windows.Forms.GroupBox();
     this.exportToPDF           = new System.Windows.Forms.Button();
     this.exportSelectedRecords = new System.Windows.Forms.RadioButton();
     this.exportWholeGrid       = new System.Windows.Forms.RadioButton();
     this.label4 = new System.Windows.Forms.Label();
     this.shouldCustomizeSelectedItems = new System.Windows.Forms.CheckBox();
     this.label3 = new System.Windows.Forms.Label();
     this.shouldCustomizeStyle = new System.Windows.Forms.CheckBox();
     this.sfDataGrid1          = new Syncfusion.WinForms.DataGrid.SfDataGrid();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).BeginInit();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.exportToPDF);
     this.groupBox1.Controls.Add(this.exportSelectedRecords);
     this.groupBox1.Controls.Add(this.exportWholeGrid);
     this.groupBox1.Controls.Add(this.label4);
     this.groupBox1.Controls.Add(this.shouldCustomizeSelectedItems);
     this.groupBox1.Controls.Add(this.label3);
     this.groupBox1.Controls.Add(this.shouldCustomizeStyle);
     this.groupBox1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.groupBox1.Location = new System.Drawing.Point(775, 2);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(193, 273);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Options";
     //
     // exportToPDF
     //
     this.exportToPDF.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.exportToPDF.Location = new System.Drawing.Point(32, 228);
     this.exportToPDF.Name     = "exportToPDF";
     this.exportToPDF.Size     = new System.Drawing.Size(132, 30);
     this.exportToPDF.TabIndex = 11;
     this.exportToPDF.Text     = "Export To PDF";
     this.exportToPDF.UseVisualStyleBackColor = true;
     this.exportToPDF.Click += new System.EventHandler(this.exportToPDF_Click);
     //
     // exportSelectedRecords
     //
     this.exportSelectedRecords.AutoSize = true;
     this.exportSelectedRecords.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.exportSelectedRecords.Location = new System.Drawing.Point(17, 68);
     this.exportSelectedRecords.Name     = "exportSelectedRecords";
     this.exportSelectedRecords.Size     = new System.Drawing.Size(160, 19);
     this.exportSelectedRecords.TabIndex = 10;
     this.exportSelectedRecords.Text     = "Export Selected Records";
     this.exportSelectedRecords.UseVisualStyleBackColor = true;
     this.exportSelectedRecords.CheckedChanged         += new System.EventHandler(this.exportSelectedRecords_CheckedChanged);
     //
     // exportWholeGrid
     //
     this.exportWholeGrid.AutoSize = true;
     this.exportWholeGrid.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.exportWholeGrid.Location = new System.Drawing.Point(17, 32);
     this.exportWholeGrid.Name     = "exportWholeGrid";
     this.exportWholeGrid.Size     = new System.Drawing.Size(125, 19);
     this.exportWholeGrid.TabIndex = 9;
     this.exportWholeGrid.Text     = "Export All Records";
     this.exportWholeGrid.UseVisualStyleBackColor = true;
     this.exportWholeGrid.CheckedChanged         += new System.EventHandler(this.exportWholeGrid_CheckedChanged);
     //
     // label4
     //
     this.label4.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label4.Location = new System.Drawing.Point(41, 168);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(141, 45);
     this.label4.TabIndex = 6;
     this.label4.Text     = "Customize style for \r\nSelected Records\r\n in PDF";
     //
     // shouldCustomizeSelectedItems
     //
     this.shouldCustomizeSelectedItems.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.shouldCustomizeSelectedItems.Location = new System.Drawing.Point(18, 169);
     this.shouldCustomizeSelectedItems.Name     = "shouldCustomizeSelectedItems";
     this.shouldCustomizeSelectedItems.Size     = new System.Drawing.Size(17, 40);
     this.shouldCustomizeSelectedItems.TabIndex = 5;
     this.shouldCustomizeSelectedItems.UseVisualStyleBackColor = true;
     //
     // label3
     //
     this.label3.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.Location = new System.Drawing.Point(42, 106);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(140, 52);
     this.label3.TabIndex = 4;
     this.label3.Text     = "Customize style for \r\nDetailsView Discount \r\nColumn in PDF";
     //
     // shouldCustomizeStyle
     //
     this.shouldCustomizeStyle.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.shouldCustomizeStyle.Location = new System.Drawing.Point(18, 108);
     this.shouldCustomizeStyle.Name     = "shouldCustomizeStyle";
     this.shouldCustomizeStyle.Size     = new System.Drawing.Size(17, 40);
     this.shouldCustomizeStyle.TabIndex = 2;
     this.shouldCustomizeStyle.UseVisualStyleBackColor = true;
     //
     // sfDataGrid1
     //
     this.sfDataGrid1.AccessibleName = "Table";
     this.sfDataGrid1.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.sfDataGrid1.Location  = new System.Drawing.Point(0, 0);
     this.sfDataGrid1.Name      = "sfDataGrid1";
     this.sfDataGrid1.RowHeight = (int)DpiAware.LogicalToDeviceUnits(21.0f);
     this.sfDataGrid1.Size      = new System.Drawing.Size(750, 527);
     this.sfDataGrid1.TabIndex  = 0;
     this.sfDataGrid1.Text      = "sfDataGrid1";
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(980, 527);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.sfDataGrid1);
     this.Name          = "Form1";
     this.Text          = "MasterDetails PDF Exporting";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 24
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.gridGroupingControl1 = new Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl();
     this.textBox1             = new Syncfusion.Windows.Forms.Tools.TextBoxExt();
     this.textBox2             = new Syncfusion.Windows.Forms.Tools.TextBoxExt();
     this.label1 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.gridGroupingControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.textBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.textBox2)).BeginInit();
     this.SuspendLayout();
     //
     // gridGroupingControl1
     //
     this.gridGroupingControl1.BackColor            = System.Drawing.SystemColors.Window;
     this.gridGroupingControl1.FreezeCaption        = false;
     this.gridGroupingControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     this.gridGroupingControl1.GridVisualStyles     = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.gridGroupingControl1.Location             = new System.Drawing.Point(16, 3);
     this.gridGroupingControl1.Name     = "gridGroupingControl1";
     this.gridGroupingControl1.Size     = new System.Drawing.Size(979, 599);
     this.gridGroupingControl1.TabIndex = 0;
     this.gridGroupingControl1.TableDescriptor.AllowNew = false;
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyCell.Font.Facename             = "Segoe UI";
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyCell.TextColor                 = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Borders.Bottom       = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Borders.Right        = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.Interior             = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyGroupCell.TextColor            = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.Borders.Right  = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Borders.Right      = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Borders.Top        = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     this.gridGroupingControl1.TableDescriptor.Appearance.AnySummaryCell.Interior           = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208))))));
     this.gridGroupingControl1.TableDescriptor.Appearance.ColumnHeaderCell.Font.Bold        = true;
     this.gridGroupingControl1.TableDescriptor.Appearance.GroupCaptionCell.CellType         = "ColumnHeader";
     this.gridGroupingControl1.TableDescriptor.TableOptions.ColumnHeaderRowHeight           = (int)DpiAware.LogicalToDeviceUnits(25.0f);
     this.gridGroupingControl1.TableDescriptor.TableOptions.RecordRowHeight                 = (int)DpiAware.LogicalToDeviceUnits(20.0f);
     this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
     this.gridGroupingControl1.Text = "gridGroupingControl1";
     //
     // textBox1
     //
     this.textBox1.Anchor          = System.Windows.Forms.AnchorStyles.Bottom;
     this.textBox1.BeforeTouchSize = new System.Drawing.Size(112, 20);
     this.textBox1.BorderColor     = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.textBox1.Cursor          = System.Windows.Forms.Cursors.IBeam;
     this.textBox1.Location        = new System.Drawing.Point(378, 621);
     this.textBox1.Metrocolor      = System.Drawing.Color.Empty;
     this.textBox1.Name            = "textBox1";
     this.textBox1.Size            = new System.Drawing.Size(112, 20);
     this.textBox1.Style           = Syncfusion.Windows.Forms.Tools.TextBoxExt.theme.Default;
     this.textBox1.TabIndex        = 1;
     this.textBox1.Text            = "textBox1";
     //
     // textBox2
     //
     this.textBox2.Anchor          = System.Windows.Forms.AnchorStyles.Bottom;
     this.textBox2.BeforeTouchSize = new System.Drawing.Size(112, 20);
     this.textBox2.BorderColor     = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.textBox2.Cursor          = System.Windows.Forms.Cursors.IBeam;
     this.textBox2.Location        = new System.Drawing.Point(566, 621);
     this.textBox2.Metrocolor      = System.Drawing.Color.Empty;
     this.textBox2.Name            = "textBox2";
     this.textBox2.Size            = new System.Drawing.Size(112, 20);
     this.textBox2.Style           = Syncfusion.Windows.Forms.Tools.TextBoxExt.theme.Default;
     this.textBox2.TabIndex        = 1;
     this.textBox2.Text            = "textBox2";
     //
     // label1
     //
     this.label1.Anchor   = System.Windows.Forms.AnchorStyles.Bottom;
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(308, 624);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(64, 13);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Col1 Value -";
     //
     // label2
     //
     this.label2.Anchor   = System.Windows.Forms.AnchorStyles.Bottom;
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(496, 624);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(64, 13);
     this.label2.TabIndex = 3;
     this.label2.Text     = "Col2 Value -";
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1012, 653);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.textBox2);
     this.Controls.Add(this.gridGroupingControl1);
     this.MinimumSize = new System.Drawing.Size(364, 200);
     this.Name        = "Form1";
     this.Text        = "Record Binding";
     ((System.ComponentModel.ISupportInitialize)(this.gridGroupingControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.textBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.textBox2)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 25
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.gradientPanel2 = new Syncfusion.Windows.Forms.Tools.GradientPanel();
     this.groupBox1      = new System.Windows.Forms.GroupBox();
     this.radioButton3   = new System.Windows.Forms.RadioButton();
     this.radioButton2   = new System.Windows.Forms.RadioButton();
     this.radioButton1   = new System.Windows.Forms.RadioButton();
     this.gradientPanel3 = new Syncfusion.Windows.Forms.Tools.GradientPanel();
     this.gridControl1   = new Syncfusion.Windows.Forms.Grid.GridControl();
     this.dataSet11      = new SelectionModes.DataSet1();
     this.groupBox2      = new System.Windows.Forms.GroupBox();
     this.checkBox10     = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox9      = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox8      = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox7      = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox6      = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox5      = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox4      = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox3      = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox2      = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox1      = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.groupBox3      = new System.Windows.Forms.GroupBox();
     this.checkBox11     = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox12     = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox13     = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.checkBox14     = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     ((System.ComponentModel.ISupportInitialize)(this.gradientPanel2)).BeginInit();
     this.gradientPanel2.SuspendLayout();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.gradientPanel3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox10)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox9)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox8)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox7)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox6)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox5)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox4)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox1)).BeginInit();
     this.groupBox3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox11)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox12)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox13)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox14)).BeginInit();
     this.SuspendLayout();
     //
     // gradientPanel2
     //
     this.gradientPanel2.BackgroundColor = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Horizontal, System.Drawing.Color.Maroon, System.Drawing.Color.IndianRed);
     this.gradientPanel2.Controls.Add(this.groupBox1);
     this.gradientPanel2.Location = new System.Drawing.Point(2, 46);
     this.gradientPanel2.Name     = "gradientPanel2";
     this.gradientPanel2.Size     = new System.Drawing.Size(0, 0);
     this.gradientPanel2.TabIndex = 1;
     //
     // groupBox1
     //
     this.groupBox1.BackColor = System.Drawing.Color.Transparent;
     this.groupBox1.Controls.Add(this.radioButton3);
     this.groupBox1.Controls.Add(this.radioButton2);
     this.groupBox1.Controls.Add(this.radioButton1);
     this.groupBox1.ForeColor = System.Drawing.Color.White;
     this.groupBox1.Location  = new System.Drawing.Point(8, 8);
     this.groupBox1.Name      = "groupBox1";
     this.groupBox1.Size      = new System.Drawing.Size(184, 120);
     this.groupBox1.TabIndex  = 0;
     this.groupBox1.TabStop   = false;
     this.groupBox1.Text      = "Selection Mode";
     //
     // radioButton3
     //
     this.radioButton3.ForeColor = System.Drawing.Color.White;
     this.radioButton3.Location  = new System.Drawing.Point(8, 88);
     this.radioButton3.Name      = "radioButton3";
     this.radioButton3.Size      = new System.Drawing.Size(104, 24);
     this.radioButton3.TabIndex  = 2;
     this.radioButton3.Text      = "MultiExtended";
     //
     // radioButton2
     //
     this.radioButton2.ForeColor = System.Drawing.Color.White;
     this.radioButton2.Location  = new System.Drawing.Point(8, 56);
     this.radioButton2.Name      = "radioButton2";
     this.radioButton2.Size      = new System.Drawing.Size(104, 24);
     this.radioButton2.TabIndex  = 1;
     this.radioButton2.Text      = "MultiSimple";
     //
     // radioButton1
     //
     this.radioButton1.ForeColor = System.Drawing.Color.White;
     this.radioButton1.Location  = new System.Drawing.Point(8, 24);
     this.radioButton1.Name      = "radioButton1";
     this.radioButton1.Size      = new System.Drawing.Size(104, 24);
     this.radioButton1.TabIndex  = 0;
     this.radioButton1.Text      = "One";
     //
     // gradientPanel3
     //
     this.gradientPanel3.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.gradientPanel3.Border3DStyle = System.Windows.Forms.Border3DStyle.Adjust;
     this.gradientPanel3.Location      = new System.Drawing.Point(9, 32);
     this.gradientPanel3.Name          = "gradientPanel3";
     this.gradientPanel3.Size          = new System.Drawing.Size(607, 126);
     this.gradientPanel3.TabIndex      = 3;
     //
     // gridControl1
     //
     this.gridControl1.DpiAware       = true;
     this.gridControl1.AllowSelection = ((Syncfusion.Windows.Forms.Grid.GridSelectionFlags)(((((((Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Row | Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Table)
                                                                                                 | Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Cell)
                                                                                                | Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Multiple)
                                                                                               | Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Shift)
                                                                                              | Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Keyboard)
                                                                                             | Syncfusion.Windows.Forms.Grid.GridSelectionFlags.AlphaBlend)));
     this.gridControl1.AlphaBlendSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(94)))), ((int)(((byte)(171)))), ((int)(((byte)(222)))));
     this.gridControl1.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.gridControl1.BackColor   = System.Drawing.Color.White;
     this.gridControl1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.gridControl1.ColCount    = 5;
     this.gridControl1.ColWidthEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridColWidth[] {
         new Syncfusion.Windows.Forms.Grid.GridColWidth(0, 35),
         new Syncfusion.Windows.Forms.Grid.GridColWidth(1, 126),
         new Syncfusion.Windows.Forms.Grid.GridColWidth(2, 127),
         new Syncfusion.Windows.Forms.Grid.GridColWidth(3, 113),
         new Syncfusion.Windows.Forms.Grid.GridColWidth(4, 109),
         new Syncfusion.Windows.Forms.Grid.GridColWidth(5, 139)
     });
     this.gridControl1.DefaultGridBorderStyle = Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid;
     this.gridControl1.Font                             = new System.Drawing.Font("Segoe UI", 8.5F);
     this.gridControl1.ForeColor                        = System.Drawing.SystemColors.ControlText;
     this.gridControl1.ThemesEnabled                    = true;
     this.gridControl1.GridOfficeScrollBars             = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     this.gridControl1.GridVisualStyles                 = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.gridControl1.DefaultRowHeight                 = (int)DpiAware.LogicalToDeviceUnits(20.0f);
     this.gridControl1.Location                         = new System.Drawing.Point(14, 7);
     this.gridControl1.MetroScrollBars                  = true;
     this.gridControl1.Name                             = "gridControl1";
     this.gridControl1.NumberedColHeaders               = false;
     this.gridControl1.NumberedRowHeaders               = false;
     this.gridControl1.Properties.BackgroundColor       = System.Drawing.Color.White;
     this.gridControl1.Properties.ForceImmediateRepaint = false;
     this.gridControl1.Properties.GridLineColor         = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
     this.gridControl1.Properties.MarkColHeader         = false;
     this.gridControl1.Properties.MarkRowHeader         = false;
     this.gridControl1.RightToLeft                      = System.Windows.Forms.RightToLeft.No;
     this.gridControl1.RowHeightEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridRowHeight[] {
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(0, 21)
     });
     this.gridControl1.SerializeCellsBehavior = Syncfusion.Windows.Forms.Grid.GridSerializeCellsBehavior.SerializeAsRangeStylesIntoCode;
     this.gridControl1.Size         = new System.Drawing.Size(612, 395);
     this.gridControl1.SmartSizeBox = false;
     this.gridControl1.TabIndex     = 0;
     //
     // dataSet11
     //
     this.dataSet11.DataSetName             = "DataSet1";
     this.dataSet11.Locale                  = new System.Globalization.CultureInfo("en-US");
     this.dataSet11.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox2.BackColor = System.Drawing.Color.White;
     this.groupBox2.Controls.Add(this.checkBox10);
     this.groupBox2.Controls.Add(this.checkBox9);
     this.groupBox2.Controls.Add(this.checkBox8);
     this.groupBox2.Controls.Add(this.checkBox7);
     this.groupBox2.Controls.Add(this.checkBox6);
     this.groupBox2.Controls.Add(this.checkBox5);
     this.groupBox2.Controls.Add(this.checkBox4);
     this.groupBox2.Controls.Add(this.checkBox3);
     this.groupBox2.Controls.Add(this.checkBox2);
     this.groupBox2.Controls.Add(this.checkBox1);
     this.groupBox2.Font      = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.groupBox2.ForeColor = System.Drawing.Color.Black;
     this.groupBox2.Location  = new System.Drawing.Point(641, 1);
     this.groupBox2.Name      = "groupBox2";
     this.groupBox2.Size      = new System.Drawing.Size(241, 203);
     this.groupBox2.TabIndex  = 0;
     this.groupBox2.TabStop   = false;
     this.groupBox2.Text      = "Selection Modes";
     //
     // checkBox10
     //
     this.checkBox10.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox10.Font               = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox10.Location           = new System.Drawing.Point(146, 145);
     this.checkBox10.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox10.Name               = "checkBox10";
     this.checkBox10.Size               = new System.Drawing.Size(89, 24);
     this.checkBox10.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox10.DrawFocusRectangle = true;
     this.checkBox10.TabIndex           = 10;
     this.checkBox10.Text               = "Table";
     this.checkBox10.ThemesEnabled      = false;
     this.checkBox10.CheckStateChanged += new System.EventHandler(this.checkBox10_CheckStateChanged);
     //
     // checkBox9
     //
     this.checkBox9.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox9.Font               = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox9.Location           = new System.Drawing.Point(10, 143);
     this.checkBox9.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox9.Name               = "checkBox9";
     this.checkBox9.Size               = new System.Drawing.Size(104, 24);
     this.checkBox9.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox9.DrawFocusRectangle = true;
     this.checkBox9.TabIndex           = 9;
     this.checkBox9.Text               = "Shift";
     this.checkBox9.ThemesEnabled      = false;
     this.checkBox9.CheckStateChanged += new System.EventHandler(this.checkBox9_CheckStateChanged);
     //
     // checkBox8
     //
     this.checkBox8.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox8.Font               = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox8.Location           = new System.Drawing.Point(146, 115);
     this.checkBox8.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox8.Name               = "checkBox8";
     this.checkBox8.Size               = new System.Drawing.Size(89, 24);
     this.checkBox8.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox8.DrawFocusRectangle = true;
     this.checkBox8.TabIndex           = 8;
     this.checkBox8.Text               = "Row";
     this.checkBox8.ThemesEnabled      = false;
     this.checkBox8.CheckStateChanged += new System.EventHandler(this.checkBox8_CheckStateChanged);
     //
     // checkBox7
     //
     this.checkBox7.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox7.Font               = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox7.Location           = new System.Drawing.Point(146, 83);
     this.checkBox7.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox7.Name               = "checkBox7";
     this.checkBox7.Size               = new System.Drawing.Size(89, 24);
     this.checkBox7.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox7.DrawFocusRectangle = true;
     this.checkBox7.TabIndex           = 6;
     this.checkBox7.Text               = "Multiple";
     this.checkBox7.ThemesEnabled      = false;
     this.checkBox7.CheckStateChanged += new System.EventHandler(this.checkBox7_CheckStateChanged);
     //
     // checkBox6
     //
     this.checkBox6.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox6.Font               = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox6.Location           = new System.Drawing.Point(10, 113);
     this.checkBox6.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox6.Name               = "checkBox6";
     this.checkBox6.Size               = new System.Drawing.Size(119, 24);
     this.checkBox6.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox6.DrawFocusRectangle = true;
     this.checkBox6.TabIndex           = 7;
     this.checkBox6.Text               = "MixRangeType";
     this.checkBox6.ThemesEnabled      = false;
     this.checkBox6.CheckStateChanged += new System.EventHandler(this.checkBox6_CheckStateChanged);
     //
     // checkBox5
     //
     this.checkBox5.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox5.Font               = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox5.Location           = new System.Drawing.Point(10, 83);
     this.checkBox5.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox5.Name               = "checkBox5";
     this.checkBox5.Size               = new System.Drawing.Size(105, 24);
     this.checkBox5.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox5.DrawFocusRectangle = true;
     this.checkBox5.TabIndex           = 5;
     this.checkBox5.Text               = "Keyboard";
     this.checkBox5.ThemesEnabled      = false;
     this.checkBox5.CheckedChanged    += new System.EventHandler(this.checkBox5_CheckedChanged);
     //
     // checkBox4
     //
     this.checkBox4.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox4.Font               = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox4.Location           = new System.Drawing.Point(146, 53);
     this.checkBox4.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox4.Name               = "checkBox4";
     this.checkBox4.Size               = new System.Drawing.Size(89, 24);
     this.checkBox4.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox4.DrawFocusRectangle = true;
     this.checkBox4.TabIndex           = 4;
     this.checkBox4.Text               = "Column";
     this.checkBox4.ThemesEnabled      = false;
     this.checkBox4.CheckedChanged    += new System.EventHandler(this.checkBox4_CheckedChanged);
     //
     // checkBox3
     //
     this.checkBox3.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox3.Font               = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox3.Location           = new System.Drawing.Point(146, 21);
     this.checkBox3.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox3.Name               = "checkBox3";
     this.checkBox3.Size               = new System.Drawing.Size(89, 24);
     this.checkBox3.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox3.DrawFocusRectangle = true;
     this.checkBox3.TabIndex           = 2;
     this.checkBox3.Text               = "Cell";
     this.checkBox3.ThemesEnabled      = false;
     this.checkBox3.CheckedChanged    += new System.EventHandler(this.checkBox3_CheckedChanged);
     //
     // checkBox2
     //
     this.checkBox2.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox2.Font               = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox2.Location           = new System.Drawing.Point(10, 21);
     this.checkBox2.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox2.Name               = "checkBox2";
     this.checkBox2.Size               = new System.Drawing.Size(104, 24);
     this.checkBox2.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox2.DrawFocusRectangle = true;
     this.checkBox2.TabIndex           = 3;
     this.checkBox2.Text               = "Any";
     this.checkBox2.ThemesEnabled      = false;
     this.checkBox2.CheckedChanged    += new System.EventHandler(this.checkBox2_CheckedChanged);
     //
     // checkBox1
     //
     this.checkBox1.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox1.Font               = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox1.Location           = new System.Drawing.Point(10, 53);
     this.checkBox1.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox1.Name               = "checkBox1";
     this.checkBox1.Size               = new System.Drawing.Size(104, 24);
     this.checkBox1.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox1.DrawFocusRectangle = true;
     this.checkBox1.TabIndex           = 1;
     this.checkBox1.Text               = "AlphaBlend";
     this.checkBox1.ThemesEnabled      = false;
     this.checkBox1.CheckedChanged    += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // groupBox3
     //
     this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox3.Controls.Add(this.checkBox11);
     this.groupBox3.Controls.Add(this.checkBox12);
     this.groupBox3.Controls.Add(this.checkBox13);
     this.groupBox3.Controls.Add(this.checkBox14);
     this.groupBox3.Font      = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.groupBox3.ForeColor = System.Drawing.Color.Black;
     this.groupBox3.Location  = new System.Drawing.Point(641, 222);
     this.groupBox3.Name      = "groupBox3";
     this.groupBox3.Size      = new System.Drawing.Size(241, 180);
     this.groupBox3.TabIndex  = 1;
     this.groupBox3.TabStop   = false;
     this.groupBox3.Text      = "ListBox Selection Modes";
     //
     // checkBox11
     //
     this.checkBox11.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox11.Font               = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox11.Location           = new System.Drawing.Point(10, 23);
     this.checkBox11.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox11.Name               = "checkBox11";
     this.checkBox11.Size               = new System.Drawing.Size(119, 24);
     this.checkBox11.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox11.DrawFocusRectangle = true;
     this.checkBox11.TabIndex           = 9;
     this.checkBox11.Text               = "MultiSimple";
     this.checkBox11.ThemesEnabled      = false;
     this.checkBox11.CheckedChanged    += new System.EventHandler(this.checkBox11_CheckedChanged);
     //
     // checkBox12
     //
     this.checkBox12.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox12.Font               = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox12.Location           = new System.Drawing.Point(146, 23);
     this.checkBox12.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox12.Name               = "checkBox12";
     this.checkBox12.Size               = new System.Drawing.Size(75, 24);
     this.checkBox12.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox12.DrawFocusRectangle = true;
     this.checkBox12.TabIndex           = 10;
     this.checkBox12.Text               = "One";
     this.checkBox12.ThemesEnabled      = false;
     this.checkBox12.CheckStateChanged += new System.EventHandler(this.checkBox12_CheckStateChanged);
     //
     // checkBox13
     //
     this.checkBox13.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox13.Font               = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox13.Location           = new System.Drawing.Point(10, 53);
     this.checkBox13.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox13.Name               = "checkBox13";
     this.checkBox13.Size               = new System.Drawing.Size(104, 24);
     this.checkBox13.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox13.DrawFocusRectangle = true;
     this.checkBox13.TabIndex           = 11;
     this.checkBox13.Text               = "MultiExtended";
     this.checkBox13.ThemesEnabled      = false;
     this.checkBox13.CheckedChanged    += new System.EventHandler(this.checkBox13_CheckedChanged);
     //
     // checkBox14
     //
     this.checkBox14.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBox14.Font               = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBox14.Location           = new System.Drawing.Point(146, 53);
     this.checkBox14.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBox14.Name               = "checkBox14";
     this.checkBox14.Size               = new System.Drawing.Size(75, 24);
     this.checkBox14.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBox14.DrawFocusRectangle = true;
     this.checkBox14.TabIndex           = 12;
     this.checkBox14.Text               = "None";
     this.checkBox14.ThemesEnabled      = false;
     this.checkBox14.CheckedChanged    += new System.EventHandler(this.checkBox14_CheckedChanged);
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(893, 414);
     this.Controls.Add(this.gridControl1);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.gradientPanel3);
     this.MinimumSize = new System.Drawing.Size(780, 420);
     this.Name        = "Form1";
     this.Text        = "Selection Mode ";
     ((System.ComponentModel.ISupportInitialize)(this.gradientPanel2)).EndInit();
     this.gradientPanel2.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.gradientPanel3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataSet11)).EndInit();
     this.groupBox2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.checkBox10)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox9)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox8)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox7)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox6)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox5)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox4)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox1)).EndInit();
     this.groupBox3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.checkBox11)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox12)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox13)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.checkBox14)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 26
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.optionLabel       = new System.Windows.Forms.Label();
     this.sfDataGrid        = new Syncfusion.WinForms.DataGrid.SfDataGrid();
     this.frequencyLbl      = new System.Windows.Forms.Label();
     this.timerStatusLbl    = new System.Windows.Forms.Label();
     this.frequencyRangeLbl = new System.Windows.Forms.Label();
     this.maxfrequency      = new System.Windows.Forms.Label();
     this.numOfUpdate       = new System.Windows.Forms.Label();
     this.frequencySlider   = new System.Windows.Forms.TrackBar();
     this.startTimerBtn     = new System.Windows.Forms.Button();
     this.frequencyChanging = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.sfDataGrid)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.frequencySlider)).BeginInit();
     this.SuspendLayout();
     //
     // optionLabel
     //
     this.optionLabel.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.optionLabel.Font     = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold);
     this.optionLabel.Location = new System.Drawing.Point(814, 22);
     this.optionLabel.Name     = "optionLabel";
     this.optionLabel.Size     = new System.Drawing.Size(100, 33);
     this.optionLabel.TabIndex = 4;
     this.optionLabel.Text     = "Options:";
     //
     // sfDataGrid
     //
     this.sfDataGrid.AccessibleName = "Table";
     this.sfDataGrid.AllowEditing   = false;
     this.sfDataGrid.AllowGrouping  = false;
     this.sfDataGrid.AllowSorting   = false;
     this.sfDataGrid.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.sfDataGrid.AutoSizeColumnsMode = Syncfusion.WinForms.DataGrid.Enums.AutoSizeColumnsMode.Fill;
     this.sfDataGrid.BackColor           = System.Drawing.SystemColors.Window;
     this.sfDataGrid.Location            = new System.Drawing.Point(10, 5);
     this.sfDataGrid.Name      = "sfDataGrid";
     this.sfDataGrid.RowHeight = (int)DpiAware.LogicalToDeviceUnits(21.0f);
     this.sfDataGrid.Size      = new System.Drawing.Size(787, 578);
     this.sfDataGrid.TabIndex  = 0;
     //
     // frequencyLbl
     //
     this.frequencyLbl.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.frequencyLbl.Font     = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold);
     this.frequencyLbl.Location = new System.Drawing.Point(842, 55);
     this.frequencyLbl.Name     = "frequencyLbl";
     this.frequencyLbl.Size     = new System.Drawing.Size(141, 29);
     this.frequencyLbl.TabIndex = 5;
     this.frequencyLbl.Text     = "Timer Frequency:";
     //
     // timerStatusLbl
     //
     this.timerStatusLbl.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.timerStatusLbl.Font     = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold);
     this.timerStatusLbl.Location = new System.Drawing.Point(842, 162);
     this.timerStatusLbl.Name     = "timerStatusLbl";
     this.timerStatusLbl.Size     = new System.Drawing.Size(100, 23);
     this.timerStatusLbl.TabIndex = 3;
     this.timerStatusLbl.Text     = "Start /Stop Timer";
     //
     // frequencyRangeLbl
     //
     this.frequencyRangeLbl.Font     = new System.Drawing.Font("Microsoft Sans Serif", 10F);
     this.frequencyRangeLbl.Location = new System.Drawing.Point(21, 9);
     this.frequencyRangeLbl.Name     = "frequencyRangeLbl";
     this.frequencyRangeLbl.Size     = new System.Drawing.Size(125, 20);
     this.frequencyRangeLbl.TabIndex = 6;
     this.frequencyRangeLbl.Text     = "Timer Frequency :";
     //
     // maxfrequency
     //
     this.maxfrequency.Font     = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold);
     this.maxfrequency.Location = new System.Drawing.Point(415, 9);
     this.maxfrequency.Name     = "maxfrequency";
     this.maxfrequency.Size     = new System.Drawing.Size(200, 20);
     this.maxfrequency.TabIndex = 7;
     this.maxfrequency.Text     = "1000";
     //
     // numOfUpdate
     //
     this.numOfUpdate.Font     = new System.Drawing.Font("Microsoft Sans Serif", 10F);
     this.numOfUpdate.Location = new System.Drawing.Point(299, 9);
     this.numOfUpdate.Name     = "numOfUpdate";
     this.numOfUpdate.Size     = new System.Drawing.Size(110, 20);
     this.numOfUpdate.TabIndex = 8;
     this.numOfUpdate.Text     = "No Of Updates :";
     //
     // frequencySlider
     //
     this.frequencySlider.Anchor        = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.frequencySlider.LargeChange   = 100;
     this.frequencySlider.Location      = new System.Drawing.Point(845, 97);
     this.frequencySlider.Maximum       = 1000;
     this.frequencySlider.Minimum       = 100;
     this.frequencySlider.Name          = "frequencySlider";
     this.frequencySlider.Size          = new System.Drawing.Size(104, 45);
     this.frequencySlider.TabIndex      = 2;
     this.frequencySlider.TickFrequency = 200;
     this.frequencySlider.Value         = 100;
     this.frequencySlider.Scroll       += new System.EventHandler(this.FrequencySlider_Scroll);
     //
     // startTimerBtn
     //
     this.startTimerBtn.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.startTimerBtn.Location = new System.Drawing.Point(845, 206);
     this.startTimerBtn.Name     = "startTimerBtn";
     this.startTimerBtn.Size     = new System.Drawing.Size(100, 33);
     this.startTimerBtn.TabIndex = 1;
     this.startTimerBtn.Text     = "Stop Timer";
     this.startTimerBtn.Click   += new System.EventHandler(this.ButtonClick_Click);
     //
     // frequencyChanging
     //
     this.frequencyChanging.Font     = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold);
     this.frequencyChanging.Location = new System.Drawing.Point(152, 9);
     this.frequencyChanging.Name     = "frequencyChanging";
     this.frequencyChanging.Size     = new System.Drawing.Size(150, 20);
     this.frequencyChanging.TabIndex = 9;
     this.frequencyChanging.Text     = "100 ms";
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.SystemColors.Window;
     this.ClientSize          = new System.Drawing.Size(1006, 593);
     this.Controls.Add(this.sfDataGrid);
     this.Controls.Add(this.startTimerBtn);
     this.Controls.Add(this.frequencySlider);
     this.Controls.Add(this.timerStatusLbl);
     this.Controls.Add(this.optionLabel);
     this.Controls.Add(this.frequencyLbl);
     this.Controls.Add(this.frequencyRangeLbl);
     this.Controls.Add(this.maxfrequency);
     this.Controls.Add(this.numOfUpdate);
     this.Controls.Add(this.frequencyChanging);
     this.Margin        = new System.Windows.Forms.Padding(5);
     this.MinimumSize   = new System.Drawing.Size(500, 400);
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Real -Time Update";
     ((System.ComponentModel.ISupportInitialize)(this.sfDataGrid)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.frequencySlider)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 27
0
        private void InitializeGrid()
        {
            #region "Style declaration"
            //headerstyle
            this.gridControl1.DefaultRowHeight = (int)DpiAware.LogicalToDeviceUnits(22.0f);
            GridStyleInfo headerstyle = new GridStyleInfo();
            headerstyle.Font.Size           = 12;
            headerstyle.Font.Bold           = true;
            headerstyle.TextColor           = Color.Black;
            headerstyle.VerticalAlignment   = GridVerticalAlignment.Middle;
            headerstyle.HorizontalAlignment = GridHorizontalAlignment.Center;
            headerstyle.CellType            = GridCellTypeName.Static;
            //subheaderstyle
            GridStyleInfo subheaderstyle = new GridStyleInfo();
            subheaderstyle.Font.Bold           = true;
            subheaderstyle.VerticalAlignment   = GridVerticalAlignment.Middle;
            subheaderstyle.HorizontalAlignment = GridHorizontalAlignment.Center;
            subheaderstyle.CellType            = GridCellTypeName.Static;

            GridStyleInfo valuestyle = new GridStyleInfo();
            valuestyle.BackColor           = SystemColors.Menu;
            valuestyle.TextColor           = Color.Black;
            valuestyle.VerticalAlignment   = GridVerticalAlignment.Middle;
            valuestyle.HorizontalAlignment = GridHorizontalAlignment.Center;

            gridControl1.FloatCellsMode = GridFloatCellsMode.BeforeDisplayCalculation;

            int rowIndex = 1, colIndex = 2;

            #endregion

            #region "Chart in Cell"

            this.InitializeData();
            this.gridControl1.CellModels.Add("ChartCell", new GridChartCellModel(this.gridControl1.Model));
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "ChartControl in GridCells";

            #region "ChartData"

            this.gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(4, 4, 4, 8));
            style                           = this.gridControl1[4, 4];
            style.Text                      = "Chart Data";
            style.Font.Bold                 = true;
            style.Font.Facename             = "Times New Roman";
            style.Font.Size                 = 12.75F;
            style.HorizontalAlignment       = GridHorizontalAlignment.Center;
            this.gridControl1.RowHeights[4] = (int)DpiAware.LogicalToDeviceUnits(21.0f);

            GridRangeStyle rstyle = new GridRangeStyle();
            rstyle.Range = GridRangeInfo.Cell(5, 4);
            rstyle.StyleInfo.BaseStyle     = "Header";
            rstyle.StyleInfo.CellType      = "Header";
            rstyle.StyleInfo.Font.Bold     = true;
            rstyle.StyleInfo.Font.Facename = "Verdana";
            rstyle.StyleInfo.Themed        = true;
            this.gridControl1.RangeStyles.Add(rstyle);

            GridRangeStyle rstyle2 = new GridRangeStyle();
            rstyle2.Range = GridRangeInfo.Cells(5, 5, 5, 8);
            rstyle2.StyleInfo.BaseStyle     = "Column Header";
            rstyle2.StyleInfo.CellType      = "Header";
            rstyle2.StyleInfo.Font.Bold     = true;
            rstyle2.StyleInfo.Font.Facename = "Verdana";
            rstyle2.StyleInfo.Themed        = true;
            this.gridControl1.RangeStyles.Add(rstyle2);
            this.gridControl1[5, 5].Text = "Team1";
            this.gridControl1[5, 6].Text = "Team2";
            this.gridControl1[5, 7].Text = "Team3";
            this.gridControl1[5, 8].Text = "Team4";

            GridRangeStyle rstyle3 = new GridRangeStyle();
            rstyle3.Range = GridRangeInfo.Cells(6, 4, 8, 4);
            rstyle3.StyleInfo.BaseStyle     = "Row Header";
            rstyle3.StyleInfo.CellType      = "Header";
            rstyle3.StyleInfo.Font.Bold     = true;
            rstyle3.StyleInfo.Font.Facename = "Verdana";
            rstyle3.StyleInfo.Themed        = true;
            this.gridControl1.RangeStyles.Add(rstyle3);
            this.gridControl1[6, 4].Text = "Data1";
            this.gridControl1[7, 4].Text = "Data2";
            this.gridControl1[8, 4].Text = "Data3";

            #endregion

            #region "ChartControl"

            //Define the Range where the chart should be displayed (8,2,26,8) 27, 2, 28, 8));
            this.gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(10, 4, 28, 10));
            this.gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(29, 4, 30, 10));
            style                     = this.gridControl1[29, 4];
            style.Text                = "Interactive Chart Cell - Try Changing the ChartData";
            style.Font.Size           = 12;
            style.Font.Bold           = true;
            style.Font.Facename       = "Arial";
            style.HorizontalAlignment = GridHorizontalAlignment.Center;

            style              = this.gridControl1[10, 4];
            style.CellType     = "ChartCell";
            csp                = new ChartStyleProperties(style);
            csp.ChartType      = ChartSeriesType.Column;
            csp.TitleText      = "Chart Cell";
            csp.Series3D       = false;
            csp.TitleAlignment = StringAlignment.Center;

            cm = (GridChartCellModel)this.gridControl1.CellModels["ChartCell"];
            ////Pass the CellValueRange and ChartAreaRange to cell model.
            cm.CellValueRangeInfo = GridRangeInfo.Cells(6, 5, 8, 8);
            cm.ChartAreaRangeInfo = GridRangeInfo.Cells(8, 2, 26, 9);

            #endregion

            #endregion

            #region "Grid in Cell"

            rowIndex = 32; colIndex = 4;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "GridInCells";
            rowIndex += 3;

#if HELPERCLASS
            RegisterCellModel.GridCellType(gridControl1, CustomCellTypes.GridinCell);
#else
            gridControl1.CellModels.Add("GridinCell", new GridInCellModel(gridControl1.Model));
#endif

            GridControl grid;
            this.gridControl1[rowIndex, colIndex].CellType = "GridinCell";
            this.gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, colIndex, rowIndex + 4, 10));
            grid                      = new ContentCellDemo.CellEmbeddedGrid(this.gridControl1);
            grid.DpiAware             = true;
            grid.RowCount             = 20;
            grid.ColCount             = 20;
            grid[1, 1].Text           = "this is a 20x20 grid";
            grid.ThemesEnabled        = true;
            grid.Office2007ScrollBars = true;
            this.gridControl1[rowIndex, colIndex].Control = grid;
            this.gridControl1.Controls.Add(grid);

            this.gridControl1.DefaultRowHeight = (int)DpiAware.LogicalToDeviceUnits(18.0f);
            this.gridControl1.DefaultColWidth  = (int)DpiAware.LogicalToDeviceUnits(75.0f);
            grid.GridVisualStyles = Syncfusion.Windows.Forms.GridVisualStyles.Office2007Blue;
            this.gridControl1.Model.Options.DisplayEmptyColumns = true;
            #endregion

            #region "XHTML Cell"

            rowIndex = 42;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "XHTML Cells";
            rowIndex += 3;
            RegisterCellModel.GridCellType(gridControl1, CustomCellTypes.XhtmlCell);
            string xhtml1 = "<body style=\"font-family:Arial; line-height:1em\"> ";
            xhtml1 += "<h1 style=\"text-align:center; color:#EE7A03 \">XhtmlCells</h1>";  //#008888
            xhtml1 += "<p/>";
            xhtml1 += "<p>XhtmlCells use the RichTextBoxSupportsXHTML control from GotDotNet user samples to display XHTML formatted text inside a cell.</p>";
            xhtml1 += "</body>";

            gridControl1[rowIndex, colIndex].CellType = "XhtmlCell";
            gridControl1[rowIndex, colIndex].Text     = xhtml1;
            gridControl1.RowHeights[rowIndex]         = (int)DpiAware.LogicalToDeviceUnits(50.0f);
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, colIndex, rowIndex + 10, colIndex + 6));
            rowIndex += 10;
            rowIndex++;
            rowIndex++;

            #endregion

            #region "Calendar Cells"

            RegisterCellModel.GridCellType(gridControl1, CustomCellTypes.Calendar);
            rowIndex = 57;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "Calendar Cells";
            rowIndex += 3;

            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 4, rowIndex + 8, 6));
            style          = gridControl1[rowIndex, 4];
            style.CellType = "Calendar";
            style.Control  = new MonthCalendar();

            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 8, rowIndex + 8, 10));
            style          = gridControl1[rowIndex, 8];
            style.CellType = "Calendar";
            style.Control  = new MonthCalendar();

            #endregion

            #region "PictureBoxCells"
            rowIndex = 71;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "PictureBox Cells";
            rowIndex += 3;

            RegisterCellModel.GridCellType(gridControl1, CustomCellTypes.PictureBox);

            Syncfusion.GridHelperClasses.PictureBoxStyleProperties tsp = new Syncfusion.GridHelperClasses.PictureBoxStyleProperties(new GridStyleInfo(gridControl1.TableStyle));
            tsp.SizeMode = PictureBoxSizeMode.StretchImage;
            Syncfusion.GridHelperClasses.PictureBoxStyleProperties sp;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 4, rowIndex + 6, 6));
            style          = gridControl1[rowIndex, 4];
            style.CellType = "PictureBox";
            sp             = new Syncfusion.GridHelperClasses.PictureBoxStyleProperties(style);
            sp.Image       = GetImage("car1.jpg");
            sp.SizeMode    = PictureBoxSizeMode.StretchImage;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 8, rowIndex + 6, 10));
            style          = gridControl1[rowIndex, 8];
            style.CellType = "PictureBox";
            sp             = new Syncfusion.GridHelperClasses.PictureBoxStyleProperties(style);
            sp.Image       = GetImage("car2.jpg");
            sp.SizeMode    = PictureBoxSizeMode.StretchImage;

            #endregion
            this.gridControl1.CurrentCellEditingComplete += new EventHandler(gridControl1_CurrentCellEditingComplete);
        }
        /// <summary>
        /// Updates the renderer method.
        /// </summary>
        /// <param name="e"></param>
        public void UpdateRenderer(PaintEventArgs e)
        {
            int center = this.RadialGauge.Width / 2;

            AdjustFontBounds(e.Graphics, RadialGauge.Font);
            DrawOuterArc(e.Graphics, 135, 270, new Point(center, center), (int)DpiAware.LogicalToDeviceUnits(118));
            DrawNeedle(e.Graphics, 135, 270, (int)DpiAware.LogicalToDeviceUnits(60), 4, new Point(center, center));
            DrawGaugeLabel(e.Graphics, new Point(center, center), (int)DpiAware.LogicalToDeviceUnits(118));
            DrawRanges(e.Graphics, new System.Drawing.Drawing2D.GraphicsPath(), 135, 270, (int)DpiAware.LogicalToDeviceUnits(57), new Point(center, center));
            DrawTickMarks(e.Graphics, new System.Drawing.Drawing2D.GraphicsPath(), (int)DpiAware.LogicalToDeviceUnits(121), 135, 270, 4, new Point(center, center), (int)DpiAware.LogicalToDeviceUnits(95));
        }
Ejemplo n.º 29
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle9  = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();
     Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle10 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();
     Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle11 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();
     Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle12 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();
     Syncfusion.Windows.Forms.Grid.GridCellInfo  gridCellInfo4   = new Syncfusion.Windows.Forms.Grid.GridCellInfo();
     this.gridControl1 = new Syncfusion.Windows.Forms.Grid.GridControl();
     this.panel1       = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // gridControl1
     //
     this.gridControl1.DpiAware = true;
     this.gridControl1.AlphaBlendSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(94)))), ((int)(((byte)(171)))), ((int)(((byte)(222)))));
     this.gridControl1.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)));
     gridBaseStyle9.Name = "Header";
     gridBaseStyle9.StyleInfo.Borders.Bottom    = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle9.StyleInfo.Borders.Left      = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle9.StyleInfo.Borders.Right     = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle9.StyleInfo.Borders.Top       = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle9.StyleInfo.CellType          = "Header";
     gridBaseStyle9.StyleInfo.Font.Bold         = true;
     gridBaseStyle9.StyleInfo.Interior          = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Vertical, System.Drawing.Color.FromArgb(((int)(((byte)(203)))), ((int)(((byte)(199)))), ((int)(((byte)(184))))), System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(234)))), ((int)(((byte)(216))))));
     gridBaseStyle9.StyleInfo.VerticalAlignment = Syncfusion.Windows.Forms.Grid.GridVerticalAlignment.Middle;
     gridBaseStyle10.Name = "Standard";
     gridBaseStyle10.StyleInfo.Font.Facename = "Tahoma";
     gridBaseStyle10.StyleInfo.Interior      = new Syncfusion.Drawing.BrushInfo(System.Drawing.SystemColors.Window);
     gridBaseStyle11.Name = "Column Header";
     gridBaseStyle11.StyleInfo.BaseStyle           = "Header";
     gridBaseStyle11.StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Center;
     gridBaseStyle12.Name = "Row Header";
     gridBaseStyle12.StyleInfo.BaseStyle           = "Header";
     gridBaseStyle12.StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Left;
     gridBaseStyle12.StyleInfo.Interior            = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Horizontal, System.Drawing.Color.FromArgb(((int)(((byte)(203)))), ((int)(((byte)(199)))), ((int)(((byte)(184))))), System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(234)))), ((int)(((byte)(216))))));
     this.gridControl1.BaseStylesMap.AddRange(new Syncfusion.Windows.Forms.Grid.GridBaseStyle[] {
         gridBaseStyle9,
         gridBaseStyle10,
         gridBaseStyle11,
         gridBaseStyle12
     });
     this.gridControl1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.gridControl1.ColCount    = 7;
     this.gridControl1.ColWidthEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridColWidth[] {
         new Syncfusion.Windows.Forms.Grid.GridColWidth(0, 35)
     });
     this.gridControl1.DefaultGridBorderStyle = Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid;
     this.gridControl1.Font                 = new System.Drawing.Font("Segoe UI", 8.5F);
     this.gridControl1.ForeColor            = System.Drawing.Color.MidnightBlue;
     gridCellInfo4.Col                      = -1;
     gridCellInfo4.Row                      = -1;
     gridCellInfo4.StyleInfo.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     gridCellInfo4.StyleInfo.Borders.Right  = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     gridCellInfo4.StyleInfo.Font.Bold      = false;
     gridCellInfo4.StyleInfo.Font.Facename  = "Segoe UI";
     gridCellInfo4.StyleInfo.Font.Italic    = false;
     gridCellInfo4.StyleInfo.Font.Size      = 8.5F;
     gridCellInfo4.StyleInfo.Font.Strikeout = false;
     gridCellInfo4.StyleInfo.Font.Underline = false;
     gridCellInfo4.StyleInfo.Font.Unit      = System.Drawing.GraphicsUnit.Point;
     gridCellInfo4.StyleInfo.Interior       = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.White);
     gridCellInfo4.StyleInfo.TextColor      = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridControl1.GridCells.AddRange(new Syncfusion.Windows.Forms.Grid.GridCellInfo[] {
         gridCellInfo4
     });
     this.gridControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     this.gridControl1.GridVisualStyles     = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.gridControl1.DefaultRowHeight     = (int)DpiAware.LogicalToDeviceUnits(20.0f);
     this.gridControl1.DefaultColWidth      = (int)DpiAware.LogicalToDeviceUnits(70.0f);
     this.gridControl1.Location             = new System.Drawing.Point(10, 12);
     this.gridControl1.MetroScrollBars      = true;
     this.gridControl1.Name = "gridControl1";
     this.gridControl1.Properties.BackgroundColor       = System.Drawing.Color.White;
     this.gridControl1.Properties.ForceImmediateRepaint = false;
     this.gridControl1.Properties.GridLineColor         = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255)))));
     this.gridControl1.Properties.MarkColHeader         = false;
     this.gridControl1.Properties.MarkRowHeader         = false;
     this.gridControl1.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.gridControl1.RowCount    = 20;
     this.gridControl1.RowHeightEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridRowHeight[] {
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(0, 21)
     });
     this.gridControl1.SerializeCellsBehavior = Syncfusion.Windows.Forms.Grid.GridSerializeCellsBehavior.SerializeIntoCode;
     this.gridControl1.Size               = new System.Drawing.Size(996, 629);
     this.gridControl1.SmartSizeBox       = false;
     this.gridControl1.TabIndex           = 1;
     this.gridControl1.ThemesEnabled      = true;
     this.gridControl1.DpiAware           = true;
     this.gridControl1.VerticalThumbTrack = true;
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.White;
     this.panel1.Controls.Add(this.gridControl1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(1012, 653);
     this.panel1.TabIndex = 2;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1012, 653);
     this.Controls.Add(this.panel1);
     this.MinimumSize = new System.Drawing.Size(430, 300);
     this.Name        = "Form1";
     this.Text        = "Getting Started";
     this.Load       += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Ejemplo n.º 30
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Syncfusion.Windows.Forms.Grid.GridCellInfo gridCellInfo4 = new Syncfusion.Windows.Forms.Grid.GridCellInfo();
     Syncfusion.Windows.Forms.Grid.GridCellInfo gridCellInfo5 = new Syncfusion.Windows.Forms.Grid.GridCellInfo();
     Syncfusion.Windows.Forms.Grid.GridCellInfo gridCellInfo6 = new Syncfusion.Windows.Forms.Grid.GridCellInfo();
     this.gridControl1  = new Syncfusion.Windows.Forms.Grid.GridControl();
     this.components    = new Container();
     this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
     this.groupBox1     = new System.Windows.Forms.GroupBox();
     this.checkBoxAdv1  = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     this.label1        = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv1)).BeginInit();
     this.SuspendLayout();
     //
     // gridControl1
     //
     this.gridControl1.DpiAware = true;
     this.gridControl1.AlphaBlendSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(94)))), ((int)(((byte)(171)))), ((int)(((byte)(222)))));
     this.gridControl1.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.gridControl1.BorderStyle            = System.Windows.Forms.BorderStyle.FixedSingle;
     this.gridControl1.ColCount               = 9;
     this.gridControl1.DefaultGridBorderStyle = Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid;
     this.gridControl1.Font                 = new System.Drawing.Font("Segoe UI", 9F);
     gridCellInfo4.Col                      = -1;
     gridCellInfo4.Row                      = -1;
     gridCellInfo4.StyleInfo.Font.Bold      = false;
     gridCellInfo4.StyleInfo.Font.Facename  = "Segoe UI";
     gridCellInfo4.StyleInfo.Font.Italic    = false;
     gridCellInfo4.StyleInfo.Font.Size      = 8.25F;
     gridCellInfo4.StyleInfo.Font.Strikeout = false;
     gridCellInfo4.StyleInfo.Font.Underline = false;
     gridCellInfo4.StyleInfo.Font.Unit      = System.Drawing.GraphicsUnit.Point;
     gridCellInfo5.Col                      = -1;
     gridCellInfo5.Row                      = -1;
     gridCellInfo5.StyleInfo.Font.Bold      = false;
     gridCellInfo5.StyleInfo.Font.Facename  = "Segoe UI";
     gridCellInfo5.StyleInfo.Font.Italic    = false;
     gridCellInfo5.StyleInfo.Font.Size      = 8.25F;
     gridCellInfo5.StyleInfo.Font.Strikeout = false;
     gridCellInfo5.StyleInfo.Font.Underline = false;
     gridCellInfo5.StyleInfo.Font.Unit      = System.Drawing.GraphicsUnit.Point;
     gridCellInfo6.Col                      = -1;
     gridCellInfo6.Row                      = -1;
     gridCellInfo6.StyleInfo.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     gridCellInfo6.StyleInfo.Borders.Right  = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     gridCellInfo6.StyleInfo.Font.Facename  = "Segoe UI";
     gridCellInfo6.StyleInfo.Interior       = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.White);
     gridCellInfo6.StyleInfo.TextColor      = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridControl1.GridCells.AddRange(new Syncfusion.Windows.Forms.Grid.GridCellInfo[] {
         gridCellInfo4,
         gridCellInfo5,
         gridCellInfo6
     });
     //this.gridControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     //this.gridControl1.GridVisualStyles = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.gridControl1.DefaultRowHeight     = (int)DpiAware.LogicalToDeviceUnits(20.0f);
     this.gridControl1.DefaultColWidth      = (int)DpiAware.LogicalToDeviceUnits(70.0f);
     this.gridControl1.HorizontalThumbTrack = true;
     this.gridControl1.Location             = new System.Drawing.Point(12, 12);
     //this.gridControl1.MetroScrollBars = true;
     this.gridControl1.Name = "gridControl1";
     this.gridControl1.Properties.ForceImmediateRepaint = false;
     this.gridControl1.Properties.GridLineColor         = System.Drawing.Color.FromArgb(((int)(((byte)(212)))), ((int)(((byte)(212)))), ((int)(((byte)(212)))));
     this.gridControl1.Properties.MarkColHeader         = false;
     this.gridControl1.Properties.MarkRowHeader         = false;
     this.gridControl1.RowCount = 45;
     this.gridControl1.RowHeightEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridRowHeight[] {
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(0, 29)
     });
     this.gridControl1.Size               = new System.Drawing.Size(640, 504);
     this.gridControl1.SmartSizeBox       = false;
     this.gridControl1.TabIndex           = 0;
     this.gridControl1.ThemesEnabled      = true;
     this.gridControl1.VerticalThumbTrack = true;
     this.gridControl1.SelectionChanged  += new Syncfusion.Windows.Forms.Grid.GridSelectionChangedEventHandler(this.gridControl1_SelectionChanged);
     this.gridControl1.CurrentCellMoved  += new Syncfusion.Windows.Forms.Grid.GridCurrentCellMovedEventHandler(this.gridControl1_CurrentCellMoved);
     //
     // propertyGrid1
     //
     this.propertyGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.propertyGrid1.BackColor         = System.Drawing.Color.White;
     this.propertyGrid1.CommandsBackColor = System.Drawing.Color.White;
     this.propertyGrid1.CommandsLinkColor = System.Drawing.Color.White;
     this.propertyGrid1.HelpBackColor     = System.Drawing.Color.White;
     this.propertyGrid1.LineColor         = System.Drawing.SystemColors.Window;
     this.propertyGrid1.Location          = new System.Drawing.Point(672, 137);
     this.propertyGrid1.Name     = "propertyGrid1";
     this.propertyGrid1.Size     = new System.Drawing.Size(223, 379);
     this.propertyGrid1.TabIndex = 1;
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.checkBoxAdv1);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Location = new System.Drawing.Point(672, 17);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(223, 114);
     this.groupBox1.TabIndex = 2;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "BrowseOnly";
     //
     // checkBoxAdv1
     //
     this.checkBoxAdv1.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.checkBoxAdv1.DrawFocusRectangle = false;
     this.checkBoxAdv1.Font               = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.checkBoxAdv1.Location           = new System.Drawing.Point(51, 70);
     this.checkBoxAdv1.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.checkBoxAdv1.Name               = "checkBoxAdv1";
     this.checkBoxAdv1.Size               = new System.Drawing.Size(106, 29);
     this.checkBoxAdv1.Style              = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
     this.checkBoxAdv1.TabIndex           = 4;
     this.checkBoxAdv1.Text               = "Browse only";
     this.checkBoxAdv1.ThemesEnabled      = false;
     this.checkBoxAdv1.CheckStateChanged += new System.EventHandler(this.checkBoxAdv1_CheckStateChanged);
     //
     // label1
     //
     this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label1.Font      = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location  = new System.Drawing.Point(6, 34);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(211, 33);
     this.label1.TabIndex  = 3;
     this.label1.Text      = "Click the CheckBox to enable the GridControl as read mode(un editable)";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(905, 525);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.propertyGrid1);
     this.Controls.Add(this.gridControl1);
     this.MinimumSize = new System.Drawing.Size(500, 400);
     this.Name        = "Form1";
     this.Text        = "Editor Cell";
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.checkBoxAdv1)).EndInit();
     this.ResumeLayout(false);
 }