示例#1
0
 public Form1()
 {
     InitializeComponent();
     this.autoLabel1.Text = this.cardLayout1.SelectedCard;
     this.MinimumSize     = new Size(800, this.panelTop.Height + this.Imagespanel.Height + (int)DpiAware.LogicalToDeviceUnits(100));
     InitializeLayout();
     this.SizeChanged += Form1_SizeChanged;
 }
示例#2
0
        private void SinglegridDataBoundGridForm_Load(object sender, System.EventArgs e)
        {
            #region create a DataTable

            this.dt = new DataTable("MyTable");

            int nCols = 5;
            int nRows = 7;

            for (int i = 0; i < nCols; i++)
            {
                this.dt.Columns.Add(new DataColumn(string.Format("{0}", (char)((int)'A' + i))));
            }

            Random r = new Random();

            for (int i = 0; i < nRows; ++i)
            {
                DataRow dr = this.dt.NewRow();

                for (int j = 0; j < nCols; j++)
                {
                    if (j == 0)
                    {
                        dr[j] = (i + 1).ToString();
                    }
                    else if (j == 1)
                    {
                        if (i == 0)
                        {
                            dr[j] = 1;
                        }
                        else
                        {
                            dr[j] = string.Format("=B{0} + {0}", i);
                        }
                    }
                    else
                    {
                        dr[j] = r.Next(100).ToString();
                    }
                }
                this.dt.Rows.Add(dr);
            }
            #endregion

            this.gridDataBoundGrid1.DataSource       = this.dt;
            this.gridDataBoundGrid1.AllowResizeToFit = false;
            this.gridDataBoundGrid1.DefaultColWidth  = (int)DpiAware.LogicalToDeviceUnits(60.0f);
            this.gridDataBoundGrid1.DpiAware         = true;
            //Call this to reset static members in case other form is loaded first:
            Syncfusion.Calculate.CalcEngine.ResetSheetFamilyID();
            //Create a CalcEngine object, tie it to the gridDataBoundGrid that implements ICalcData:
            engine = new Syncfusion.Calculate.CalcEngine(this.gridDataBoundGrid1);
            //Set the CalcEngine to track dependencies required for auto updating:
            engine.UseDependencies = true;

            //Call RecalculateRange so any formulas in the data can be initially computed.
            //Code for all cells:
            //engine.RecalculateRange(RangeInfo.Cells(1, 1, dt.Rows.Count, dt.Columns.Count), this.gridDataBoundGrid1);

            //We only have formulas in column two, so just recalc that range:
            engine.RecalculateRange(RangeInfo.Cells(1, 2, dt.Rows.Count, 2), this.gridDataBoundGrid1);

            this.gridDataBoundGrid1.GridVisualStyles                     = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
            this.gridDataBoundGrid1.Properties.BackgroundColor           = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(239)), ((System.Byte)(255)));
            this.gridDataBoundGrid1.Properties.GridLineColor             = System.Drawing.Color.FromArgb(((System.Byte)(208)), ((System.Byte)(215)), ((System.Byte)(229)));
            this.gridDataBoundGrid1.Model.Options.DefaultGridBorderStyle = GridBorderStyle.Solid;
            this.gridDataBoundGrid1.ForeColor      = System.Drawing.Color.MidnightBlue;
            this.gridDataBoundGrid1.Font           = new System.Drawing.Font("Verdana", 8.5F);
            this.gridDataBoundGrid1.Model.RowCount = 25;
            this.gridDataBoundGrid1.AllowProportionalColumnSizing = true;

            #region Adding a formula to the formula library - step 2
            //Adding formula to the CalcEngine Library.
            //Step 2: Call the AddFunction member of the engine.

            //Add formula name Min to the Library:
            engine.AddFunction("MyMin", new Syncfusion.Calculate.CalcEngine.LibraryFunction(ComputeMyMin));
            #endregion
        }
示例#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.Grouping.GridColumnDescriptor           gridColumnDescriptor1           = new Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor           gridColumnDescriptor2           = new Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor           gridColumnDescriptor3           = new Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor           gridColumnDescriptor4           = new Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor           gridColumnDescriptor5           = new Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor           gridColumnDescriptor6           = new Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor           gridColumnDescriptor7           = new Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridRelationDescriptor         gridRelationDescriptor1         = new Syncfusion.Windows.Forms.Grid.Grouping.GridRelationDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor           gridColumnDescriptor8           = new Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor           gridColumnDescriptor9           = new Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor           gridColumnDescriptor10          = new Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor           gridColumnDescriptor11          = new Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor           gridColumnDescriptor12          = new Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor           gridColumnDescriptor13          = new Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderRowDescriptor gridStackedHeaderRowDescriptor1 = new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderRowDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderDescriptor    gridStackedHeaderDescriptor1    = new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderDescriptor    gridStackedHeaderDescriptor2    = new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderDescriptor    gridStackedHeaderDescriptor3    = new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderDescriptor    gridStackedHeaderDescriptor4    = new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderDescriptor();
     Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderDescriptor    gridStackedHeaderDescriptor5    = new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderDescriptor();
     this.gridGroupingControl1 = new Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl();
     this.dataset11            = new GroupingEvents.Dataset1();
     this.contextMenu1         = new System.Windows.Forms.ContextMenu();
     this.menuItem1            = new System.Windows.Forms.MenuItem();
     this.panel1                   = new System.Windows.Forms.Panel();
     this.button1                  = new Syncfusion.Windows.Forms.ButtonAdv();
     this.label1                   = new System.Windows.Forms.Label();
     this.label2                   = new System.Windows.Forms.Label();
     this.listView1                = new System.Windows.Forms.ListView();
     this.columnHeader1            = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader2            = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.freezeCaptioncheckBoxAdv = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
     ((System.ComponentModel.ISupportInitialize)(this.gridGroupingControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataset11)).BeginInit();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.freezeCaptioncheckBoxAdv)).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.DataMember    = "Employees";
     this.gridGroupingControl1.DataSource    = this.dataset11;
     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.Location      = new System.Drawing.Point(2, 0);
     this.gridGroupingControl1.Name          = "gridGroupingControl1";
     this.gridGroupingControl1.NestedTableGroupOptions.ShowAddNewRecordBeforeDetails = false;
     this.gridGroupingControl1.ShowGroupDropArea = true;
     this.gridGroupingControl1.Size             = new System.Drawing.Size(883, 355);
     this.gridGroupingControl1.TabIndex         = 0;
     gridColumnDescriptor1.HeaderImage          = null;
     gridColumnDescriptor1.HeaderImageAlignment = Syncfusion.Windows.Forms.Grid.Grouping.HeaderImageAlignment.Left;
     gridColumnDescriptor1.HeaderText           = "Employee ID";
     gridColumnDescriptor1.MappingName          = "EmployeeID";
     gridColumnDescriptor1.SerializedImageArray = "";
     gridColumnDescriptor2.HeaderImage          = null;
     gridColumnDescriptor2.HeaderImageAlignment = Syncfusion.Windows.Forms.Grid.Grouping.HeaderImageAlignment.Left;
     gridColumnDescriptor2.HeaderText           = "First Name";
     gridColumnDescriptor2.MappingName          = "FirstName";
     gridColumnDescriptor2.SerializedImageArray = "";
     gridColumnDescriptor3.HeaderImage          = null;
     gridColumnDescriptor3.HeaderImageAlignment = Syncfusion.Windows.Forms.Grid.Grouping.HeaderImageAlignment.Left;
     gridColumnDescriptor3.HeaderText           = "Last Name";
     gridColumnDescriptor3.MappingName          = "LastName";
     gridColumnDescriptor3.SerializedImageArray = "";
     gridColumnDescriptor4.HeaderImage          = null;
     gridColumnDescriptor4.HeaderImageAlignment = Syncfusion.Windows.Forms.Grid.Grouping.HeaderImageAlignment.Left;
     gridColumnDescriptor4.MappingName          = "Title";
     gridColumnDescriptor4.SerializedImageArray = "";
     gridColumnDescriptor5.HeaderImage          = null;
     gridColumnDescriptor5.HeaderImageAlignment = Syncfusion.Windows.Forms.Grid.Grouping.HeaderImageAlignment.Left;
     gridColumnDescriptor5.MappingName          = "Address";
     gridColumnDescriptor5.SerializedImageArray = "";
     gridColumnDescriptor6.HeaderImage          = null;
     gridColumnDescriptor6.HeaderImageAlignment = Syncfusion.Windows.Forms.Grid.Grouping.HeaderImageAlignment.Left;
     gridColumnDescriptor6.MappingName          = "City";
     gridColumnDescriptor6.SerializedImageArray = "";
     gridColumnDescriptor7.HeaderImage          = null;
     gridColumnDescriptor7.HeaderImageAlignment = Syncfusion.Windows.Forms.Grid.Grouping.HeaderImageAlignment.Left;
     gridColumnDescriptor7.MappingName          = "Country";
     gridColumnDescriptor7.SerializedImageArray = "";
     this.gridGroupingControl1.TableDescriptor.Columns.AddRange(new Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor[] {
         gridColumnDescriptor1,
         gridColumnDescriptor2,
         gridColumnDescriptor3,
         gridColumnDescriptor4,
         gridColumnDescriptor5,
         gridColumnDescriptor6,
         gridColumnDescriptor7
     });
     gridColumnDescriptor8.HeaderImage           = null;
     gridColumnDescriptor8.HeaderImageAlignment  = Syncfusion.Windows.Forms.Grid.Grouping.HeaderImageAlignment.Left;
     gridColumnDescriptor8.HeaderText            = "Customer ID";
     gridColumnDescriptor8.MappingName           = "CustomerID";
     gridColumnDescriptor8.SerializedImageArray  = "";
     gridColumnDescriptor9.HeaderImage           = null;
     gridColumnDescriptor9.HeaderImageAlignment  = Syncfusion.Windows.Forms.Grid.Grouping.HeaderImageAlignment.Left;
     gridColumnDescriptor9.HeaderText            = "Order Date";
     gridColumnDescriptor9.MappingName           = "OrderDate";
     gridColumnDescriptor9.SerializedImageArray  = "";
     gridColumnDescriptor10.HeaderImage          = null;
     gridColumnDescriptor10.HeaderImageAlignment = Syncfusion.Windows.Forms.Grid.Grouping.HeaderImageAlignment.Left;
     gridColumnDescriptor10.HeaderText           = "Order ID";
     gridColumnDescriptor10.MappingName          = "OrderID";
     gridColumnDescriptor10.SerializedImageArray = "";
     gridColumnDescriptor11.HeaderImage          = null;
     gridColumnDescriptor11.HeaderImageAlignment = Syncfusion.Windows.Forms.Grid.Grouping.HeaderImageAlignment.Left;
     gridColumnDescriptor11.HeaderText           = "Ship Address";
     gridColumnDescriptor11.MappingName          = "ShipAddress";
     gridColumnDescriptor11.SerializedImageArray = "";
     gridColumnDescriptor12.HeaderImage          = null;
     gridColumnDescriptor12.HeaderImageAlignment = Syncfusion.Windows.Forms.Grid.Grouping.HeaderImageAlignment.Left;
     gridColumnDescriptor12.HeaderText           = "Ship Name";
     gridColumnDescriptor12.MappingName          = "ShipName";
     gridColumnDescriptor12.SerializedImageArray = "";
     gridColumnDescriptor13.HeaderImage          = null;
     gridColumnDescriptor13.HeaderImageAlignment = Syncfusion.Windows.Forms.Grid.Grouping.HeaderImageAlignment.Left;
     gridColumnDescriptor13.HeaderText           = "Shipped Date";
     gridColumnDescriptor13.MappingName          = "ShippedDate";
     gridColumnDescriptor13.SerializedImageArray = "";
     gridRelationDescriptor1.ChildTableDescriptor.Columns.AddRange(new Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor[] {
         gridColumnDescriptor8,
         gridColumnDescriptor9,
         gridColumnDescriptor10,
         gridColumnDescriptor11,
         gridColumnDescriptor12,
         gridColumnDescriptor13
     });
     gridRelationDescriptor1.ChildTableDescriptor.StackedHeaderRows.Add(new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderRowDescriptor("Row 1", new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderDescriptor[] {
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderDescriptor("Header 1", new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor[] {
             new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("CustomerID"),
             new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("OrderDate"),
             new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("OrderID"),
             new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("ShipAddress"),
             new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("ShipName"),
             new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("ShippedDate")
         })
     }));
     gridRelationDescriptor1.MappingName = "EmployeesOrders";
     this.gridGroupingControl1.TableDescriptor.Relations.AddRange(new Syncfusion.Windows.Forms.Grid.Grouping.GridRelationDescriptor[] {
         gridRelationDescriptor1
     });
     gridStackedHeaderRowDescriptor1.Appearance.StackedHeaderCell.Interior = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.White);
     gridStackedHeaderDescriptor1.Appearance.StackedHeaderCell.Interior    = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))));
     gridStackedHeaderDescriptor1.Name = "Header 1";
     gridStackedHeaderDescriptor1.VisibleColumns.AddRange(new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor[] {
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("EmployeeID"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("FirstName"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("LastName")
     });
     gridStackedHeaderDescriptor2.Appearance.StackedHeaderCell.Interior = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))));
     gridStackedHeaderDescriptor2.Name = "Header 2";
     gridStackedHeaderDescriptor2.VisibleColumns.AddRange(new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor[] {
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("Title"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("Address")
     });
     gridStackedHeaderDescriptor3.Appearance.StackedHeaderCell.Interior = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.Blue);
     gridStackedHeaderDescriptor3.Name = "Header 3";
     gridStackedHeaderDescriptor3.VisibleColumns.AddRange(new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor[] {
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("City"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("Country"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("TitleOfCourtesy"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("BirthDate"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("HireDate")
     });
     gridStackedHeaderDescriptor4.Appearance.StackedHeaderCell.Interior = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))));
     gridStackedHeaderDescriptor4.Name = "Header 4";
     gridStackedHeaderDescriptor4.VisibleColumns.AddRange(new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor[] {
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("Region"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("PostalCode"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("HomePhone")
     });
     gridStackedHeaderDescriptor5.Appearance.StackedHeaderCell.Interior = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))));
     gridStackedHeaderDescriptor5.Name = "Header 5";
     gridStackedHeaderDescriptor5.VisibleColumns.AddRange(new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor[] {
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("Extension"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("Photo"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("SmallPhoto"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("Notes"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderVisibleColumnDescriptor("ReportsTo")
     });
     gridStackedHeaderRowDescriptor1.Headers.AddRange(new Syncfusion.Windows.Forms.Grid.Grouping.GridStackedHeaderDescriptor[] {
         gridStackedHeaderDescriptor1,
         gridStackedHeaderDescriptor2,
         gridStackedHeaderDescriptor3,
         gridStackedHeaderDescriptor4,
         gridStackedHeaderDescriptor5
     });
     gridStackedHeaderRowDescriptor1.Name = "Row 1";
     this.gridGroupingControl1.TableDescriptor.StackedHeaderRows.Add(gridStackedHeaderRowDescriptor1);
     this.gridGroupingControl1.TableDescriptor.TableOptions.CaptionRowHeight      = (int)DpiAware.LogicalToDeviceUnits(25.0f);
     this.gridGroupingControl1.TableDescriptor.TableOptions.ColumnHeaderRowHeight = (int)DpiAware.LogicalToDeviceUnits(30.0f);
     this.gridGroupingControl1.TableDescriptor.TableOptions.RecordRowHeight       = (int)DpiAware.LogicalToDeviceUnits(22.0f);
     this.gridGroupingControl1.TableDescriptor.VisibleColumns.AddRange(new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor[] {
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("EmployeeID"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("FirstName"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("LastName"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("Title"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("Address"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("City"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("Country"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("TitleOfCourtesy"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("BirthDate"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("HireDate"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("Region"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("PostalCode"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("HomePhone"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("Extension"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("Photo"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("SmallPhoto"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("Notes"),
         new Syncfusion.Windows.Forms.Grid.Grouping.GridVisibleColumnDescriptor("ReportsTo")
     });
     this.gridGroupingControl1.Text = "y";
     this.gridGroupingControl1.TopLevelGroupOptions.ShowAddNewRecordBeforeDetails = false;
     this.gridGroupingControl1.VersionInfo = "4.301.0.0";
     //
     // dataset11
     //
     this.dataset11.DataSetName             = "Dataset1";
     this.dataset11.Locale                  = new System.Globalization.CultureInfo("en-US");
     this.dataset11.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // contextMenu1
     //
     this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1
     });
     //
     // menuItem1
     //
     this.menuItem1.Enabled = false;
     this.menuItem1.Index   = 0;
     this.menuItem1.Text    = "Clear Window";
     this.menuItem1.Click  += new System.EventHandler(this.menuItem1_Click);
     //
     // 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.gridGroupingControl1);
     this.panel1.Location = new System.Drawing.Point(28, 23);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(888, 355);
     this.panel1.TabIndex = 6;
     //
     // button1
     //
     this.button1.Anchor            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.Appearance        = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
     this.button1.FlatStyle         = 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(128, 24);
     this.button1.BorderStyleAdv    = Syncfusion.Windows.Forms.ButtonAdvBorderStyle.RaisedInner;
     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(790, 394);
     this.button1.Name              = "button1";
     this.button1.Size              = new System.Drawing.Size(128, 24);
     this.button1.TabIndex          = 12;
     this.button1.Text              = "Trace Events";
     this.button1.Click            += new System.EventHandler(this.button1_Click_1);
     //
     // label1
     //
     this.label1.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label1.Font      = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.DimGray;
     this.label1.Location  = new System.Drawing.Point(25, 402);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(80, 16);
     this.label1.TabIndex  = 7;
     this.label1.Text      = "Event Tracer:";
     //
     // label2
     //
     this.label2.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label2.Font      = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.ForeColor = System.Drawing.Color.DimGray;
     this.label2.Location  = new System.Drawing.Point(93, 402);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(218, 16);
     this.label2.TabIndex  = 8;
     this.label2.Text      = "(Right click to clear the output window)";
     //
     // listView1
     //
     this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.listView1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader1,
         this.columnHeader2
     });
     this.listView1.ContextMenu = this.contextMenu1;
     this.listView1.Font        = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.listView1.ForeColor   = System.Drawing.Color.DimGray;
     this.listView1.Location    = new System.Drawing.Point(25, 428);
     this.listView1.Name        = "listView1";
     this.listView1.Size        = new System.Drawing.Size(893, 201);
     this.listView1.TabIndex    = 9;
     this.listView1.TabStop     = false;
     this.listView1.UseCompatibleStateImageBehavior = false;
     this.listView1.View = System.Windows.Forms.View.Details;
     //
     // columnHeader1
     //
     this.columnHeader1.Text  = "Event";
     this.columnHeader1.Width = 186;
     //
     // columnHeader2
     //
     this.columnHeader2.Text  = "Details";
     this.columnHeader2.Width = 759;
     //
     // freezeCaptioncheckBoxAdv
     //
     this.freezeCaptioncheckBoxAdv.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.freezeCaptioncheckBoxAdv.BeforeTouchSize    = new System.Drawing.Size(150, 21);
     this.freezeCaptioncheckBoxAdv.BorderColor        = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.freezeCaptioncheckBoxAdv.Location           = new System.Drawing.Point(618, 396);
     this.freezeCaptioncheckBoxAdv.MetroColor         = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));
     this.freezeCaptioncheckBoxAdv.Name               = "freezeCaptioncheckBoxAdv";
     this.freezeCaptioncheckBoxAdv.Size               = new System.Drawing.Size(150, 21);
     this.freezeCaptioncheckBoxAdv.TabIndex           = 11;
     this.freezeCaptioncheckBoxAdv.Text               = "Freeze Caption";
     this.freezeCaptioncheckBoxAdv.ThemesEnabled      = true;
     this.freezeCaptioncheckBoxAdv.CheckStateChanged += new System.EventHandler(this.freezeCaptioncheckBoxAdv_CheckStateChanged);
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(940, 656);
     this.Controls.Add(this.freezeCaptioncheckBoxAdv);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.listView1);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.panel1);
     this.MinimumSize = new System.Drawing.Size(800, 600);
     this.Name        = "Form1";
     this.Text        = "Grouping Events";
     ((System.ComponentModel.ISupportInitialize)(this.gridGroupingControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataset11)).EndInit();
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.freezeCaptioncheckBoxAdv)).EndInit();
     this.ResumeLayout(false);
 }
示例#4
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.GridRangeStyle gridRangeStyle1 = new Syncfusion.Windows.Forms.Grid.GridRangeStyle();
     Syncfusion.Windows.Forms.Grid.GridRangeStyle gridRangeStyle2 = new Syncfusion.Windows.Forms.Grid.GridRangeStyle();
     Syncfusion.Windows.Forms.Grid.GridRangeStyle gridRangeStyle3 = new Syncfusion.Windows.Forms.Grid.GridRangeStyle();
     Syncfusion.Windows.Forms.Grid.GridRangeStyle gridRangeStyle4 = new Syncfusion.Windows.Forms.Grid.GridRangeStyle();
     this.gridControl1 = new Syncfusion.Windows.Forms.Grid.GridControl();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).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.Dock                   = System.Windows.Forms.DockStyle.Fill;
     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);
     //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.ColWidths[0]     = (int)DpiAware.LogicalToDeviceUnits(30.0f);
     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;
     gridRangeStyle1.Range = Syncfusion.Windows.Forms.Grid.GridRangeInfo.Table();
     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;
     gridRangeStyle2.Range = Syncfusion.Windows.Forms.Grid.GridRangeInfo.Table();
     gridRangeStyle2.StyleInfo.Font.Bold      = false;
     gridRangeStyle2.StyleInfo.Font.Facename  = "Segoe UI";
     gridRangeStyle2.StyleInfo.Font.Italic    = false;
     gridRangeStyle2.StyleInfo.Font.Size      = 8.25F;
     gridRangeStyle2.StyleInfo.Font.Strikeout = false;
     gridRangeStyle2.StyleInfo.Font.Underline = false;
     gridRangeStyle2.StyleInfo.Font.Unit      = System.Drawing.GraphicsUnit.Point;
     gridRangeStyle3.Range = Syncfusion.Windows.Forms.Grid.GridRangeInfo.Table();
     gridRangeStyle3.StyleInfo.Font.Bold      = false;
     gridRangeStyle3.StyleInfo.Font.Facename  = "Segoe UI";
     gridRangeStyle3.StyleInfo.Font.Italic    = false;
     gridRangeStyle3.StyleInfo.Font.Size      = 8.25F;
     gridRangeStyle3.StyleInfo.Font.Strikeout = false;
     gridRangeStyle3.StyleInfo.Font.Underline = false;
     gridRangeStyle3.StyleInfo.Font.Unit      = System.Drawing.GraphicsUnit.Point;
     gridRangeStyle4.Range = Syncfusion.Windows.Forms.Grid.GridRangeInfo.Table();
     gridRangeStyle4.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);
     gridRangeStyle4.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);
     gridRangeStyle4.StyleInfo.Font.Facename  = "Segoe UI";
     gridRangeStyle4.StyleInfo.Interior       = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.White);
     gridRangeStyle4.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,
         gridRangeStyle2,
         gridRangeStyle3,
         gridRangeStyle4
     });
     this.gridControl1.RowCount = 42;
     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(988, 629);
     this.gridControl1.SmartSizeBox  = false;
     this.gridControl1.TabIndex      = 0;
     this.gridControl1.Text          = "gridControl1";
     this.gridControl1.ThemesEnabled = true;
     this.gridControl1.UseRightToLeftCompatibleTextBox = true;
     //
     // 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.gridControl1);
     this.MinimumSize = new System.Drawing.Size(500, 500);
     this.Name        = "Form1";
     this.Text        = "DropDown Cell";
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     this.ResumeLayout(false);
 }
示例#5
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.panel1        = new DemoCommon.Diagram.Expander();
     this.dataGridView1 = new System.Windows.Forms.DataGridView();
     this.panel2        = new System.Windows.Forms.Panel();
     this.diagram1      = new Syncfusion.Windows.Forms.Diagram.Controls.Diagram(this.components);
     this.model2        = new Syncfusion.Windows.Forms.Diagram.Model(this.components);
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.diagram1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.model2)).BeginInit();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251)))));
     this.panel1.Caption   = "Table";
     this.panel1.Controls.Add(this.dataGridView1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Right;
     this.panel1.Location = new System.Drawing.Point((int)DpiAware.LogicalToDeviceUnits(790), (int)DpiAware.LogicalToDeviceUnits(72));
     this.panel1.Name     = "panel1";
     this.panel1.Padding  = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(10));
     this.panel1.Size     = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(446), (int)DpiAware.LogicalToDeviceUnits(496));
     this.panel1.TabIndex = 8;
     //
     // dataGridView1
     //
     this.dataGridView1.AllowUserToAddRows          = false;
     this.dataGridView1.AllowUserToDeleteRows       = false;
     this.dataGridView1.AllowUserToResizeColumns    = false;
     this.dataGridView1.AllowUserToResizeRows       = false;
     this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.Enabled  = false;
     this.dataGridView1.Location = new System.Drawing.Point((int)DpiAware.LogicalToDeviceUnits(0), (int)DpiAware.LogicalToDeviceUnits(49));
     this.dataGridView1.Name     = "dataGridView1";
     this.dataGridView1.Size     = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(443), (int)DpiAware.LogicalToDeviceUnits(245));
     this.dataGridView1.TabIndex = 1;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.diagram1);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel2.Location = new System.Drawing.Point((int)DpiAware.LogicalToDeviceUnits(2), (int)DpiAware.LogicalToDeviceUnits(72));
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(788), (int)DpiAware.LogicalToDeviceUnits(496));
     this.panel2.TabIndex = 9;
     //
     // diagram1
     //
     this.diagram1.Controller.PasteOffset = new System.Drawing.SizeF(DpiAware.LogicalToDeviceUnits(10F), DpiAware.LogicalToDeviceUnits(10F));
     this.diagram1.Dock                = System.Windows.Forms.DockStyle.Fill;
     this.diagram1.HScroll             = true;
     this.diagram1.LayoutManager       = null;
     this.diagram1.Location            = new System.Drawing.Point(0, 0);
     this.diagram1.MetroScrollBars     = true;
     this.diagram1.Model               = this.model2;
     this.diagram1.Name                = "diagram1";
     this.diagram1.ScrollVirtualBounds = ((System.Drawing.RectangleF)(resources.GetObject("diagram1.ScrollVirtualBounds")));
     this.diagram1.Size                = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(788), (int)DpiAware.LogicalToDeviceUnits(496));
     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.VScroll = true;
     //
     // model2
     //
     this.model2.BackgroundStyle.PathBrushStyle = Syncfusion.Windows.Forms.Diagram.PathGradientBrushStyle.RectangleCenter;
     this.model2.DocumentScale.DisplayName      = "No Scale";
     this.model2.DocumentScale.Height           = 1F;
     this.model2.DocumentScale.Width            = 1F;
     this.model2.DocumentSize.Height            = DpiAware.LogicalToDeviceUnits(1169F);
     this.model2.DocumentSize.Width             = DpiAware.LogicalToDeviceUnits(1000F);
     this.model2.LineStyle.DashPattern          = null;
     this.model2.LineStyle.LineColor            = System.Drawing.Color.Black;
     this.model2.LineStyle.LineWidth            = 0F;
     this.model2.LogicalSize           = new System.Drawing.SizeF(DpiAware.LogicalToDeviceUnits(1000F), DpiAware.LogicalToDeviceUnits(1169F));
     this.model2.ShadowStyle.Color     = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(105)))), ((int)(((byte)(105)))), ((int)(((byte)(105)))));
     this.model2.ShadowStyle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(105)))), ((int)(((byte)(105)))), ((int)(((byte)(105)))));
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(DpiAware.LogicalToDeviceUnits(6F), DpiAware.LogicalToDeviceUnits(13F));
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(1238), (int)DpiAware.LogicalToDeviceUnits(570));
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Database Binding";
     this.Load         += new System.EventHandler(this.Form1_Load);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     this.panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.diagram1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.model2)).EndInit();
     this.ResumeLayout(false);
 }
        /// <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
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.sfDataGrid1 = new Syncfusion.WinForms.DataGrid.SfDataGrid();
     this.groupBox1   = new System.Windows.Forms.GroupBox();
     this.label1      = new System.Windows.Forms.Label();
     this.button1     = new System.Windows.Forms.Button();
     this.comboBox1   = new System.Windows.Forms.ComboBox();
     this.panel1      = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // sfDataGrid1
     //
     this.sfDataGrid1.AccessibleName           = "Table";
     this.sfDataGrid1.AllowEditing             = false;
     this.sfDataGrid1.AllowGrouping            = false;
     this.sfDataGrid1.Dock                     = DockStyle.Fill;
     this.sfDataGrid1.AutoSizeColumnsMode      = Syncfusion.WinForms.DataGrid.Enums.AutoSizeColumnsMode.Fill;
     this.sfDataGrid1.EnableDataVirtualization = true;
     this.sfDataGrid1.Location                 = new System.Drawing.Point(15, 8);
     this.sfDataGrid1.Margin                   = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.sfDataGrid1.Name                     = "sfDataGrid1";
     this.sfDataGrid1.RowHeight                = (int)DpiAware.LogicalToDeviceUnits(21.0f);
     this.sfDataGrid1.Size                     = new System.Drawing.Size(1217, 891);
     this.sfDataGrid1.TabIndex                 = 0;
     this.sfDataGrid1.Text                     = "sfDataGrid1";
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.button1);
     this.groupBox1.Controls.Add(this.comboBox1);
     this.groupBox1.Location = new System.Drawing.Point(22, 20);
     this.groupBox1.Margin   = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Padding  = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.groupBox1.Size     = new System.Drawing.Size(248, 195);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Options";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(9, 28);
     this.label1.Margin   = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(141, 20);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Data Souce Count";
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(14, 108);
     this.button1.Margin   = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(165, 35);
     this.button1.TabIndex = 1;
     this.button1.Text     = "Load Data Source";
     this.button1.UseVisualStyleBackColor = true;
     //
     // comboBox1
     //
     this.comboBox1.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox1.FormattingEnabled = true;
     this.comboBox1.Items.AddRange(new object[] {
         "100K",
         "200K",
         "300K",
         "500K",
         "1 Million"
     });
     this.comboBox1.Location = new System.Drawing.Point(14, 58);
     this.comboBox1.Margin   = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.comboBox1.Name     = "comboBox1";
     this.comboBox1.Size     = new System.Drawing.Size(166, 28);
     this.comboBox1.TabIndex = 0;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.groupBox1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Right;
     this.panel1.Location = new System.Drawing.Point(1224, 0);
     this.panel1.Margin   = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(285, 912);
     this.panel1.TabIndex = 5;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.White;
     this.ClientSize          = new System.Drawing.Size(1509, 912);
     this.Controls.Add(this.sfDataGrid1);
     this.Controls.Add(this.panel1);
     this.Margin        = new System.Windows.Forms.Padding(8, 8, 8, 8);
     this.MinimumSize   = new System.Drawing.Size(739, 585);
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Data Virtualization ";
     ((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#8
0
        /// <summary>
        /// Used to draw the  label of the gauge
        /// </summary>
        /// <param name="e">paint event arguement</param>
        /// <param name="m_Center">Center point of the gauge</param>
        public void DrawGaugeLabel(Graphics e, Point Center, int GaugeRadius)
        {
            string     additionalString = string.Empty;
            SolidBrush br = new SolidBrush(RadialGauge.GaugeLableColor);
            SizeF      s  = e.MeasureString(RadialGauge.GaugeLabel, RadialGauge.GaugeLableFont);

            if (RadialGauge.GaugeLabel == "Food")
            {
                additionalString = "/3000 Kcal";
                Image newImage = Image.FromFile("1_food.png");
                e.DrawImage(newImage, new Point(Center.X - (newImage.Size.Width / 2) - (int)DpiAware.LogicalToDeviceUnits(15), Center.Y - (newImage.Size.Height / 2) - (int)DpiAware.LogicalToDeviceUnits(15)));
            }
            if (RadialGauge.GaugeLabel == "Floor")
            {
                additionalString = "/100";
                Image newImage = Image.FromFile("1_floor.png");
                e.DrawImage(newImage, new Point(Center.X - (newImage.Size.Width / 2) - (int)DpiAware.LogicalToDeviceUnits(15), Center.Y - (newImage.Size.Height / 2) - (int)DpiAware.LogicalToDeviceUnits(15)));
            }
            if (RadialGauge.GaugeLabel == "Steps")
            {
                additionalString = "/100";
                Image newImage = Image.FromFile("1_steps.png");
                e.DrawImage(newImage, new Point(Center.X - (newImage.Size.Width / 2) - (int)DpiAware.LogicalToDeviceUnits(15), Center.Y - (newImage.Size.Height / 2) - (int)DpiAware.LogicalToDeviceUnits(15)));
            }

            e.DrawString(RadialGauge.GaugeLabel, RadialGauge.GaugeLableFont, br,
                         new Point((int)((Center.X) - (s.Width / 2)), (int)(Center.Y + GaugeRadius / 2) + (int)DpiAware.LogicalToDeviceUnits(15)));

            using (Font f = new Font(RadialGauge.GaugeValueFont.Name, RadialGauge.GaugeValueFont.Size + 4))
            {
                additionalString = RadialGauge.Value.ToString() + additionalString;
                s = e.MeasureString(additionalString, f);
                Point p = new Point((int)((Center.X) - (s.Width / 2)), (int)(Center.Y + this.GaugeRadius / 3));
                br = new SolidBrush(this.RadialGauge.GaugeValueColor);
                e.DrawString(additionalString, f, br, p);
            }
            br.Dispose();
        }
示例#9
0
 /// <summary>
 /// Retrive ArcThickness of the RadialGauge
 /// </summary>
 /// <returns>returns Thickness of the Arc based on DPI</returns>
 internal float GetArcThickness()
 {
     return((int)Math.Ceiling(DpiAware.LogicalToDeviceUnits(this.RadialGauge.ArcThickness)));
 }
示例#10
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();
     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.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;
     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       = "Segoe UI";
     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.ColCount    = 55;
     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;
     gridCellInfo1.Col                      = -1;
     gridCellInfo1.Row                      = -1;
     gridCellInfo1.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);
     gridCellInfo1.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);
     gridCellInfo1.StyleInfo.Font.Bold      = false;
     gridCellInfo1.StyleInfo.Font.Facename  = "Segoe UI";
     gridCellInfo1.StyleInfo.Font.Italic    = false;
     gridCellInfo1.StyleInfo.Font.Size      = 8.5F;
     gridCellInfo1.StyleInfo.Font.Strikeout = false;
     gridCellInfo1.StyleInfo.Font.Underline = false;
     gridCellInfo1.StyleInfo.Font.Unit      = System.Drawing.GraphicsUnit.Point;
     gridCellInfo1.StyleInfo.Interior       = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.White);
     gridCellInfo1.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[] {
         gridCellInfo1
     });
     //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.HorizontalThumbTrack = true;
     this.gridControl1.Location             = new System.Drawing.Point(21, 12);
     //this.gridControl1.MetroScrollBars = true;
     this.gridControl1.Name = "gridControl1";
     this.gridControl1.Properties.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255)))));
     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.RowCount    = 100;
     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(750, 404);
     this.gridControl1.SmartSizeBox       = false;
     this.gridControl1.TabIndex           = 1;
     this.gridControl1.ThemesEnabled      = true;
     this.gridControl1.VerticalThumbTrack = true;
     //
     // 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.Controls.Add(this.gridControl1);
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(792, 437);
     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(792, 437);
     this.Controls.Add(this.panel1);
     this.MinimumSize = new System.Drawing.Size(300, 200);
     this.Name        = "Form1";
     this.Text        = "Virtual Grid";
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     Syncfusion.Windows.Forms.Diagram.Binding       binding1  = new Syncfusion.Windows.Forms.Diagram.Binding();
     this.paletteGroupView1            = new Syncfusion.Windows.Forms.Diagram.Controls.PaletteGroupView(this.components);
     this.pdfdocument_menu             = new System.Windows.Forms.ToolStripMenuItem();
     this.menuItemFileExit             = new System.Windows.Forms.ToolStripMenuItem();
     this.contextMenu2                 = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.menuExportImg                = new System.Windows.Forms.ToolStripMenuItem();
     this.menuExportSvg                = new System.Windows.Forms.ToolStripMenuItem();
     this.menuExportEmf                = new System.Windows.Forms.ToolStripMenuItem();
     this.imageList1                   = new System.Windows.Forms.ImageList(this.components);
     this.menuExportPdf                = new System.Windows.Forms.ToolStripMenuItem();
     this.menuItem3                    = new System.Windows.Forms.ToolStripMenuItem();
     this.menuItem1                    = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolBarButton_PropertyEditor = new System.Windows.Forms.ToolStripButton();
     this.toolBarButton1               = new System.Windows.Forms.ToolStripButton();
     this.ToolBarButton_Palette        = new System.Windows.Forms.ToolStripButton();
     this.Model          = new Syncfusion.Windows.Forms.Diagram.Model(this.components);
     this.menuItem2      = new System.Windows.Forms.ToolStripMenuItem();
     this.toolBarButton2 = new System.Windows.Forms.ToolStripButton();
     this.menuItem4      = new System.Windows.Forms.ToolStripMenuItem();
     this.menuItem5      = new System.Windows.Forms.ToolStripMenuItem();
     this.menuItem6      = new System.Windows.Forms.ToolStripMenuItem();
     this.toolBarButton3 = new System.Windows.Forms.ToolStripButton();
     this.toolBarButton4 = new System.Windows.Forms.ToolStripButton();
     this.toolBarButton5 = new System.Windows.Forms.ToolStripButton();
     this.toolBarButton6 = new System.Windows.Forms.ToolStripButton();
     this.toolBarButton7 = new System.Windows.Forms.ToolStripButton();
     this.toolBarButton8 = new System.Windows.Forms.ToolStripButton();
     this.menuStrip1     = new System.Windows.Forms.MenuStrip();
     this.exportAsImageToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.exportAsSVGToolStripMenuItem1   = new System.Windows.Forms.ToolStripMenuItem();
     this.exportAsEmfToolStripMenuItem1   = new System.Windows.Forms.ToolStripMenuItem();
     this.diagram1 = new Syncfusion.Windows.Forms.Diagram.Controls.Diagram(this.components);
     this.contextMenu2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Model)).BeginInit();
     this.menuStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.diagram1)).BeginInit();
     this.SuspendLayout();
     //
     // paletteGroupView1
     //
     this.paletteGroupView1.BeforeTouchSize = new System.Drawing.Size(140, 451);
     this.paletteGroupView1.ButtonView      = true;
     this.paletteGroupView1.Diagram         = null;
     this.paletteGroupView1.Location        = new System.Drawing.Point(2, 24);
     this.paletteGroupView1.Name            = "paletteGroupView1";
     this.paletteGroupView1.PaletteItemSize = new System.Drawing.Size(0, 0);
     this.paletteGroupView1.Size            = new System.Drawing.Size(140, 451);
     this.paletteGroupView1.TabIndex        = 0;
     this.paletteGroupView1.Text            = "paletteGroupView1";
     //
     // pdfdocument_menu
     //
     this.pdfdocument_menu.Name = "pdfdocument_menu";
     this.pdfdocument_menu.Size = new System.Drawing.Size(32, 19);
     this.pdfdocument_menu.Text = "Export As PDF Document...";
     //
     // menuItemFileExit
     //
     this.menuItemFileExit.Name = "menuItemFileExit";
     this.menuItemFileExit.Size = new System.Drawing.Size(32, 19);
     this.menuItemFileExit.Text = "&Exit";
     //
     // contextMenu2
     //
     this.contextMenu2.ImageScalingSize = new System.Drawing.Size(24, 24);
     this.contextMenu2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.menuExportImg,
         this.menuExportSvg,
         this.menuExportEmf
     });
     this.contextMenu2.Name = "contextMenu2";
     this.contextMenu2.Size = new System.Drawing.Size(228, 100);
     //
     // menuExportImg
     //
     this.menuExportImg.Name   = "menuExportImg";
     this.menuExportImg.Size   = new System.Drawing.Size(227, 32);
     this.menuExportImg.Text   = "Export As Image...";
     this.menuExportImg.Click += new System.EventHandler(this.menuExportImg_Click);
     //
     // menuExportSvg
     //
     this.menuExportSvg.Name   = "menuExportSvg";
     this.menuExportSvg.Size   = new System.Drawing.Size(227, 32);
     this.menuExportSvg.Text   = "Export As Svg...";
     this.menuExportSvg.Click += new System.EventHandler(this.menuExportSvg_Click);
     //
     // menuExportEmf
     //
     this.menuExportEmf.Name   = "menuExportEmf";
     this.menuExportEmf.Size   = new System.Drawing.Size(227, 32);
     this.menuExportEmf.Text   = "Export As Emf...";
     this.menuExportEmf.Click += new System.EventHandler(this.menuExportEmf_Click);
     //
     // imageList1
     //
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Fuchsia;
     this.imageList1.Images.SetKeyName(0, "");
     this.imageList1.Images.SetKeyName(1, "");
     this.imageList1.Images.SetKeyName(2, "");
     this.imageList1.Images.SetKeyName(3, "");
     this.imageList1.Images.SetKeyName(4, "");
     this.imageList1.Images.SetKeyName(5, "");
     this.imageList1.Images.SetKeyName(6, "");
     this.imageList1.Images.SetKeyName(7, "");
     this.imageList1.Images.SetKeyName(8, "palette_groupbar.png");
     this.imageList1.Images.SetKeyName(9, "property_editor.png");
     this.imageList1.Images.SetKeyName(10, "export.png");
     //
     // menuExportPdf
     //
     this.menuExportPdf.Name = "menuExportPdf";
     this.menuExportPdf.Size = new System.Drawing.Size(32, 19);
     this.menuExportPdf.Text = "Export As Pdf...";
     //
     // menuItem3
     //
     this.menuItem3.Name = "menuItem3";
     this.menuItem3.Size = new System.Drawing.Size(32, 19);
     this.menuItem3.Text = "-";
     //
     // menuItem1
     //
     this.menuItem1.Name = "menuItem1";
     this.menuItem1.Size = new System.Drawing.Size(32, 19);
     this.menuItem1.Text = "-";
     //
     // ToolBarButton_PropertyEditor
     //
     this.ToolBarButton_PropertyEditor.Name = "ToolBarButton_PropertyEditor";
     this.ToolBarButton_PropertyEditor.Size = new System.Drawing.Size(23, 23);
     //
     // toolBarButton1
     //
     this.toolBarButton1.Name = "toolBarButton1";
     this.toolBarButton1.Size = new System.Drawing.Size(23, 23);
     //
     // ToolBarButton_Palette
     //
     this.ToolBarButton_Palette.Name = "ToolBarButton_Palette";
     this.ToolBarButton_Palette.Size = new System.Drawing.Size(23, 23);
     //
     // Model
     //
     this.Model.AlignmentType = Syncfusion.Windows.Forms.Diagram.AlignmentType.SelectedNode;
     this.Model.BackgroundStyle.PathBrushStyle = Syncfusion.Windows.Forms.Diagram.PathGradientBrushStyle.RectangleCenter;
     this.Model.DocumentScale.DisplayName      = "No Scale";
     this.Model.DocumentScale.Height           = 1F;
     this.Model.DocumentScale.Width            = 1F;
     this.Model.DocumentSize.Height            = 1169F;
     this.Model.DocumentSize.Width             = 827F;
     this.Model.LineStyle.DashPattern          = null;
     this.Model.LineStyle.LineColor            = System.Drawing.Color.Black;
     this.Model.LogicalSize                      = new System.Drawing.SizeF(827F, 1169F);
     this.Model.Padding                          = new System.Windows.Forms.Padding(0, 0, 0, 0);
     this.Model.ShadowStyle.Color                = System.Drawing.Color.DimGray;
     this.Model.ShadowStyle.ColorAlphaFactor     = 255;
     this.Model.ShadowStyle.ForeColor            = System.Drawing.Color.DimGray;
     this.Model.ShadowStyle.ForeColorAlphaFactor = 255;
     //
     // menuItem2
     //
     this.menuItem2.Name = "menuItem2";
     this.menuItem2.Size = new System.Drawing.Size(32, 19);
     this.menuItem2.Text = "&Exit";
     //
     // toolBarButton2
     //
     this.toolBarButton2.Name = "toolBarButton2";
     this.toolBarButton2.Size = new System.Drawing.Size(23, 23);
     //
     // menuItem4
     //
     this.menuItem4.Name = "menuItem4";
     this.menuItem4.Size = new System.Drawing.Size(32, 19);
     this.menuItem4.Text = "Export As PDF Document...";
     //
     // menuItem5
     //
     this.menuItem5.Name = "menuItem5";
     this.menuItem5.Size = new System.Drawing.Size(32, 19);
     this.menuItem5.Text = "&File";
     //
     // menuItem6
     //
     this.menuItem6.Name = "menuItem6";
     this.menuItem6.Size = new System.Drawing.Size(32, 19);
     this.menuItem6.Text = "Export As Image...";
     //
     // toolBarButton3
     //
     this.toolBarButton3.Name = "toolBarButton3";
     this.toolBarButton3.Size = new System.Drawing.Size(23, 23);
     //
     // toolBarButton4
     //
     this.toolBarButton4.Name = "toolBarButton4";
     this.toolBarButton4.Size = new System.Drawing.Size(23, 23);
     //
     // toolBarButton5
     //
     this.toolBarButton5.Name = "toolBarButton5";
     this.toolBarButton5.Size = new System.Drawing.Size(23, 23);
     //
     // toolBarButton6
     //
     this.toolBarButton6.Name = "toolBarButton6";
     this.toolBarButton6.Size = new System.Drawing.Size(23, 23);
     //
     // toolBarButton7
     //
     this.toolBarButton7.Name = "toolBarButton7";
     this.toolBarButton7.Size = new System.Drawing.Size(23, 23);
     //
     // toolBarButton8
     //
     this.toolBarButton8.Name = "toolBarButton8";
     this.toolBarButton8.Size = new System.Drawing.Size(23, 23);
     //
     // menuStrip1
     //
     this.menuStrip1.BackColor        = System.Drawing.SystemColors.Control;
     this.menuStrip1.Font             = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.menuStrip1.GripMargin       = new System.Windows.Forms.Padding(2, 2, 0, 2);
     this.menuStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.exportAsImageToolStripMenuItem1,
         this.exportAsSVGToolStripMenuItem1,
         this.exportAsEmfToolStripMenuItem1
     });
     this.menuStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
     this.menuStrip1.Location    = new System.Drawing.Point(0, 0);
     this.menuStrip1.Margin      = new System.Windows.Forms.Padding(2);
     this.menuStrip1.Name        = "menuStrip1";
     this.menuStrip1.Padding     = new System.Windows.Forms.Padding(2);
     this.menuStrip1.RenderMode  = System.Windows.Forms.ToolStripRenderMode.System;
     this.menuStrip1.Size        = new System.Drawing.Size(702, 36);
     this.menuStrip1.TabIndex    = 8;
     this.menuStrip1.Text        = "menuStrip1";
     //
     // exportAsImageToolStripMenuItem1
     //
     this.exportAsImageToolStripMenuItem1.Name   = "exportAsImageToolStripMenuItem1";
     this.exportAsImageToolStripMenuItem1.Size   = new System.Drawing.Size(143, 32);
     this.exportAsImageToolStripMenuItem1.Text   = "Export as Image";
     this.exportAsImageToolStripMenuItem1.Click += new System.EventHandler(this.exportAsImageToolStripMenuItem1_Click);
     //
     // exportAsSVGToolStripMenuItem1
     //
     this.exportAsSVGToolStripMenuItem1.Name   = "exportAsSVGToolStripMenuItem1";
     this.exportAsSVGToolStripMenuItem1.Size   = new System.Drawing.Size(125, 32);
     this.exportAsSVGToolStripMenuItem1.Text   = "Export as Svg";
     this.exportAsSVGToolStripMenuItem1.Click += new System.EventHandler(this.exportAsSVGToolStripMenuItem1_Click);
     //
     // exportAsEmfToolStripMenuItem1
     //
     this.exportAsEmfToolStripMenuItem1.Name   = "exportAsEmfToolStripMenuItem1";
     this.exportAsEmfToolStripMenuItem1.Size   = new System.Drawing.Size(127, 32);
     this.exportAsEmfToolStripMenuItem1.Text   = "Export as Emf";
     this.exportAsEmfToolStripMenuItem1.Click += new System.EventHandler(this.exportAsEmfToolStripMenuItem1_Click);
     //
     // diagram1
     //
     this.diagram1.BackColor   = System.Drawing.Color.Transparent;
     binding1.DefaultConnector = null;
     binding1.DefaultNode      = null;
     binding1.Diagram          = this.diagram1;
     binding1.Id           = null;
     binding1.Label        = ((System.Collections.Generic.List <string>)(resources.GetObject("binding1.Label")));
     binding1.ParentId     = null;
     this.diagram1.Binding = binding1;
     this.diagram1.Controller.Constraint           = Syncfusion.Windows.Forms.Diagram.Constraints.PageEditable;
     this.diagram1.Controller.DefaultConnectorTool = Syncfusion.Windows.Forms.Diagram.ConnectorTool.OrgLineConnectorTool;
     this.diagram1.Controller.PasteOffset          = new System.Drawing.SizeF(10F, 10F);
     this.diagram1.Dock                 = System.Windows.Forms.DockStyle.Fill;
     this.diagram1.EnableTouchMode      = false;
     this.diagram1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Office2007;
     this.diagram1.LayoutManager        = null;
     this.diagram1.Location             = new System.Drawing.Point(0, 36);
     this.diagram1.Margin               = new System.Windows.Forms.Padding(0);
     this.diagram1.Model                = null;
     this.diagram1.Name                 = "diagram1";
     this.diagram1.Office2007ScrollBars = true;
     this.diagram1.ScrollVirtualBounds  = ((System.Drawing.RectangleF)(resources.GetObject("diagram1.ScrollVirtualBounds")));
     this.diagram1.Size                 = new System.Drawing.Size(702, 627);
     this.diagram1.SmartSizeBox         = false;
     this.diagram1.TabIndex             = 157;
     this.diagram1.Text                 = "diagram1";
     //
     //
     //
     this.diagram1.View.BackgroundColor      = System.Drawing.Color.Transparent;
     this.diagram1.View.ClientRectangle      = new System.Drawing.Rectangle(0, 0, 0, 0);
     this.diagram1.View.Controller           = this.diagram1.Controller;
     this.diagram1.View.Grid.Color           = System.Drawing.Color.White;
     this.diagram1.View.Grid.MinPixelSpacing = 4F;
     this.diagram1.View.PasteOffsetX         = 0;
     this.diagram1.View.PasteOffsetY         = 0;
     this.diagram1.View.ScrollVirtualBounds  = ((System.Drawing.RectangleF)(resources.GetObject("resource.ScrollVirtualBounds")));
     this.diagram1.View.ZoomType             = Syncfusion.Windows.Forms.Diagram.ZoomType.Center;
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 20F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.White;
     this.ClientSize          = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(702), (int)DpiAware.LogicalToDeviceUnits(663));
     this.Controls.Add(this.diagram1);
     this.Controls.Add(this.menuStrip1);
     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          = "Export Image";
     this.Load         += new System.EventHandler(this.MainForm_Load);
     this.contextMenu2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Model)).EndInit();
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.diagram1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#12
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("ContentCellDemo.gridform.ico"));
            imageList.Images.Add(icon.ToBitmap());

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

            //imageList.Images.Add(Image.FromFile(@"..\..\Resources\Car1.jpg"));
            //imageList.Images.Add(Image.FromFile(@"..\..\Resources\car2.jpg"));
            //imageList.Images.Add(Image.FromFile(@"..\..\Resources\camera.ico"));
            #endregion

            #region Codes to apply celltypes in Grid
            this.gridControl1.BeginUpdate();

            #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;

            gridControl1.Model.ColWidths[4] = 90;
            gridControl1.Model.ColWidths[6] = 100;
            if (DpiAware.GetCurrentDpi() > 96)
            {
                gridControl1.Model.ColWidths[4] = (int)DpiAware.LogicalToDeviceUnits(90.0f);;
                gridControl1.Model.ColWidths[6] = (int)DpiAware.LogicalToDeviceUnits(100.0f);;
            }
            #endregion

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

            int rowIndex = 3, colIndex = 4;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = subheaderstyle;
            gridControl1[rowIndex, 1].Text = "Static Cells - cannot be edited which represented as a read-only cell";
            rowIndex++;
            gridControl1[rowIndex, colIndex].Text           = "Static cell";
            gridControl1[rowIndex, colIndex].CellType       = GridCellTypeName.Static;
            gridControl1[rowIndex, colIndex + 2].Text       = "Static cell";
            gridControl1[rowIndex, colIndex + 2].CellType   = GridCellTypeName.Static;
            gridControl1[rowIndex, colIndex + 2].ImageIndex = 8;
            #endregion

            #region ImageCells with PictureBox
            rowIndex = 7;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "Image Cells";

            rowIndex = 10;
            gridControl1[rowIndex, colIndex].CellType   = GridCellTypeName.Image;
            gridControl1[rowIndex, colIndex].ImageList  = imageList;
            gridControl1[rowIndex, colIndex].ImageIndex = 2;

            gridControl1[rowIndex, colIndex + 1].CellType   = GridCellTypeName.Image;
            gridControl1[rowIndex, colIndex + 1].ImageList  = imageList;
            gridControl1[rowIndex, colIndex + 1].ImageIndex = 4;

            //gridControl1[rowIndex, colIndex + 2].CellType = GridCellTypeName.Image;
            //gridControl1[rowIndex, colIndex + 2].ImageList = imageList;
            //gridControl1[rowIndex, colIndex + 2].ImageIndex = 8;

            rowIndex++;
            rowIndex++;
            gridControl1[rowIndex, colIndex].CellType   = GridCellTypeName.Image;
            gridControl1[rowIndex, colIndex].ImageList  = imageList;
            gridControl1[rowIndex, colIndex].ImageIndex = 5;

            gridControl1[rowIndex, colIndex + 1].CellType   = GridCellTypeName.Image;
            gridControl1[rowIndex, colIndex + 1].ImageList  = imageList;
            gridControl1[rowIndex, colIndex + 1].ImageIndex = 7;

            //gridControl1[rowIndex, colIndex + 2].CellType = GridCellTypeName.Image;
            //gridControl1[rowIndex, colIndex + 2].ImageList = imageList;
            //gridControl1[rowIndex, colIndex + 2].ImageIndex = 10;
            #region ApplyImages
            //            GridStyleInfo style;
            //            style = gridControl1[9, 2];
            //            style.CellType = "PictureBox";
            //#if HELPERCLASS
            //            sp = new Syncfusion.GridHelperClasses.PictureBoxStyleProperties(style);
            //#else
            //            sp = new PictureBoxStyleProperties(style);
            //#endif
            //            sp.Image = Image.FromFile(@"..\..\Resources\Car1.jpg");
            //            sp.SizeMode = PictureBoxSizeMode.StretchImage;

            //            style = gridControl1[9, 6];
            //            style.CellType = "PictureBox";


            //#if HELPERCLASS
            //            sp = new Syncfusion.GridHelperClasses.PictureBoxStyleProperties(style);
            //#else
            //            sp = new PictureBoxStyleProperties(style);
            //#endif
            //            sp.Image = Image.FromFile(@"..\..\Resources\car2.jpg");
            //            sp.SizeMode = PictureBoxSizeMode.StretchImage;

            #endregion

            #endregion

            #region HeaderCells
            rowIndex = 14;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, 15, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = headerstyle;
            gridControl1[rowIndex, 1].Text = "Header Cells";

            rowIndex = 16;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex, gridControl1.ColCount));
            gridControl1[rowIndex, 1]      = subheaderstyle;
            gridControl1[rowIndex, 1].Text = "Header Cells - Used as Column Header and RowHeader cells";
            rowIndex++;
            rowIndex++;
            gridControl1[rowIndex, colIndex].Text         = "Header Text";
            gridControl1[rowIndex, colIndex].CellType     = GridCellTypeName.Header;
            gridControl1[rowIndex, colIndex + 2].Text     = "Header Text";
            gridControl1[rowIndex, colIndex + 2].CellType = GridCellTypeName.Header;
            #endregion

            #region ProgressBar Cells

            rowIndex = 21;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 1, rowIndex + 1, gridControl1.ColCount));
            gridControl1[rowIndex, 1]             = subheaderstyle;
            gridControl1[rowIndex, 1].Font.Size   = 10;
            gridControl1[rowIndex, 1].CellType    = GridCellTypeName.CheckBox;
            gridControl1[rowIndex, 1].Description = "ProgressBar Cells";


            rowIndex = 24;
            GridStyleInfo       style1 = gridControl1[rowIndex, 2];
            GridProgressBarInfo progressBarEx1 = style1.ProgressBar;
            style1.CellType       = "ProgressBar";
            style1.Themed         = false;
            style1.BackColor      = System.Drawing.SystemColors.Control;
            style1.CellAppearance = GridCellAppearance.Raised;

            progressBarEx1.BackGradientEndColor   = System.Drawing.SystemColors.ControlLightLight;
            progressBarEx1.BackGradientStartColor = System.Drawing.SystemColors.ControlDark;
            progressBarEx1.BackgroundStyle        = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.VerticalGradient;
            progressBarEx1.BackMultipleColors     = new System.Drawing.Color[] {
                System.Drawing.SystemColors.ControlDark,
                System.Drawing.SystemColors.ControlLightLight,
                System.Drawing.SystemColors.Control
            };
            progressBarEx1.BackSegments       = false;
            progressBarEx1.BackTubeEndColor   = System.Drawing.SystemColors.ControlLightLight;
            progressBarEx1.BackTubeStartColor = System.Drawing.SystemColors.ControlDark;
            //progressBarEx1.Border3DStyle = System.Windows.Forms.Border3DStyle.RaisedOuter;
            //progressBarEx1.BorderColor = System.Drawing.Color.Black;
            progressBarEx1.FontColor          = System.Drawing.SystemColors.HighlightText;
            progressBarEx1.ForeColor          = System.Drawing.Color.MediumBlue;
            progressBarEx1.ForegroundImage    = null;
            progressBarEx1.GradientEndColor   = System.Drawing.Color.Lime;
            progressBarEx1.GradientStartColor = System.Drawing.Color.Red;
            progressBarEx1.MultipleColors     = new System.Drawing.Color[] {
                System.Drawing.Color.DarkRed,
                System.Drawing.Color.Red,
                System.Drawing.Color.Black
            };
            progressBarEx1.ProgressStyle   = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Tube;
            progressBarEx1.SegmentWidth    = 20;
            progressBarEx1.StretchImage    = false;
            progressBarEx1.StretchMultGrad = false;
            progressBarEx1.TextShadow      = false;
            progressBarEx1.TubeEndColor    = System.Drawing.SystemColors.Control;
            progressBarEx1.TubeStartColor  = System.Drawing.SystemColors.ControlDark;
            progressBarEx1.ProgressValue   = 79;

            gridControl1.RowHeights[rowIndex] = 23;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 2, rowIndex, 6));


            int rowIndex1 = rowIndex;
            int colIndex1 = 2;
            gridControl1.ColWidths[8] = 23;


            // Vertical
            rowIndex += 2;

            GridStyleInfo       stylev3         = gridControl1[rowIndex, 8];
            GridProgressBarInfo progressBarExv3 = stylev3.ProgressBar;
            stylev3.CellType = "ProgressBar";
            stylev3.Themed   = false;

            progressBarExv3.ProgressOrientation    = Orientation.Vertical;
            progressBarExv3.BackGradientEndColor   = System.Drawing.Color.White;
            progressBarExv3.BackGradientStartColor = System.Drawing.Color.LightGray;
            progressBarExv3.BackgroundStyle        = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.System;
            progressBarExv3.BackSegments           = false;
            progressBarExv3.BackTubeEndColor       = System.Drawing.Color.White;
            progressBarExv3.BackTubeStartColor     = System.Drawing.Color.LightGray;
            progressBarExv3.FontColor          = System.Drawing.Color.White;
            progressBarExv3.ForegroundImage    = null;
            progressBarExv3.GradientEndColor   = System.Drawing.Color.Lime;
            progressBarExv3.GradientStartColor = System.Drawing.Color.Red;
            progressBarExv3.MultipleColors     = new System.Drawing.Color[0];
            progressBarExv3.ProgressStyle      = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.System;
            progressBarExv3.SegmentWidth       = 12;
            progressBarExv3.TubeEndColor       = System.Drawing.Color.Black;
            progressBarExv3.TubeStartColor     = System.Drawing.Color.Red;
            progressBarExv3.ProgressValue      = 75;

            gridControl1.RowHeights[rowIndex] = 23;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 8, rowIndex + 8, 8));



            // Horizontal
            GridStyleInfo       style3         = gridControl1[rowIndex, colIndex1];
            GridProgressBarInfo progressBarEx3 = style3.ProgressBar;
            style3.CellType = "ProgressBar";
            style3.Themed   = false;

            progressBarEx3.BackGradientEndColor   = System.Drawing.Color.RosyBrown;
            progressBarEx3.BackGradientStartColor = System.Drawing.Color.DarkRed;
            progressBarEx3.BackgroundStyle        = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.VerticalGradient;
            progressBarEx3.BackMultipleColors     = new System.Drawing.Color[0];
            progressBarEx3.BackSegments           = false;
            progressBarEx3.BackTubeEndColor       = System.Drawing.SystemColors.Control;
            progressBarEx3.BackTubeStartColor     = System.Drawing.Color.LightGray;
            progressBarEx3.FontColor          = System.Drawing.Color.Lime;
            progressBarEx3.ForegroundImage    = null;
            progressBarEx3.GradientEndColor   = System.Drawing.Color.Lime;
            progressBarEx3.GradientStartColor = System.Drawing.Color.Red;
            progressBarEx3.MultipleColors     = new System.Drawing.Color[] {
                System.Drawing.SystemColors.ControlDarkDark,
                System.Drawing.SystemColors.ControlLight,
                System.Drawing.SystemColors.ControlDark,
                System.Drawing.SystemColors.Control
            };
            progressBarEx3.ProgressStyle  = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Tube;
            progressBarEx3.TextVisible    = false;
            progressBarEx3.TubeEndColor   = System.Drawing.Color.Black;
            progressBarEx3.TubeStartColor = System.Drawing.Color.Red;
            progressBarEx3.ProgressValue  = 75;

            gridControl1.RowHeights[rowIndex] = 23;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 2, rowIndex, 6));



            // Horizontal
            rowIndex += 2;

            GridStyleInfo       style4         = gridControl1[rowIndex, colIndex1];
            GridProgressBarInfo progressBarEx4 = style4.ProgressBar;
            style4.CellType = "ProgressBar";
            style4.Themed   = false;

            //
            // progressBarEx4
            //
            progressBarEx4.BackGradientEndColor   = System.Drawing.Color.White;
            progressBarEx4.BackGradientStartColor = System.Drawing.Color.LightGray;
            progressBarEx4.ForegroundImage        = GetBitmap("Coffee Bean.bmp");
            progressBarEx4.BackgroundStyle        = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.Image;
            progressBarEx4.BackMultipleColors     = new System.Drawing.Color[0];
            progressBarEx4.BackSegments           = false;
            progressBarEx4.BackTubeEndColor       = System.Drawing.Color.White;
            progressBarEx4.BackTubeStartColor     = System.Drawing.Color.LightGray;
            progressBarEx4.FontColor          = System.Drawing.SystemColors.Control;
            progressBarEx4.BackgroundImage    = GetBitmap("Soap-Bubbles.jpg");;
            progressBarEx4.GradientEndColor   = System.Drawing.Color.Lime;
            progressBarEx4.GradientStartColor = System.Drawing.Color.Red;
            progressBarEx4.MultipleColors     = new System.Drawing.Color[0];
            progressBarEx4.ProgressStyle      = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Image;
            progressBarEx4.SegmentWidth       = 12;
            progressBarEx4.StretchImage       = false;
            progressBarEx4.TubeEndColor       = System.Drawing.Color.Black;
            progressBarEx4.TubeStartColor     = System.Drawing.Color.Red;
            progressBarEx4.ProgressValue      = 75;

            gridControl1.RowHeights[rowIndex] = 23;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 2, rowIndex, 6));


            // Horizontal
            rowIndex += 2;

            GridStyleInfo       style7         = gridControl1[rowIndex, colIndex1];
            GridProgressBarInfo progressBarEx7 = style7.ProgressBar;
            style7.CellType = "ProgressBar";
            style7.Themed   = false;

            //
            // progressBarEx7
            //
            progressBarEx7.BackGradientEndColor   = System.Drawing.SystemColors.ControlLightLight;
            progressBarEx7.BackGradientStartColor = System.Drawing.SystemColors.ControlDark;
            progressBarEx7.BackgroundStyle        = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.VerticalGradient;
            progressBarEx7.BackMultipleColors     = new System.Drawing.Color[0];
            progressBarEx7.BackSegments           = false;
            progressBarEx7.BackTubeEndColor       = System.Drawing.Color.Silver;
            progressBarEx7.BackTubeStartColor     = System.Drawing.Color.White;
            progressBarEx7.FontColor          = System.Drawing.Color.White;
            progressBarEx7.ForegroundImage    = null;
            progressBarEx7.GradientEndColor   = System.Drawing.Color.Lime;
            progressBarEx7.GradientStartColor = System.Drawing.Color.Red;
            progressBarEx7.MultipleColors     = new System.Drawing.Color[] {
                System.Drawing.SystemColors.ControlDarkDark,
                System.Drawing.SystemColors.ControlLightLight,
                System.Drawing.SystemColors.ActiveCaption
            };
            progressBarEx7.ProgressStyle  = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Tube;
            progressBarEx7.SegmentWidth   = 8;
            progressBarEx7.StretchImage   = false;
            progressBarEx7.TextVisible    = false;
            progressBarEx7.TubeEndColor   = System.Drawing.Color.Honeydew;
            progressBarEx7.TubeStartColor = System.Drawing.Color.Green;
            progressBarEx7.ProgressValue  = 75;

            gridControl1.RowHeights[rowIndex] = 23;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 2, rowIndex, 6));



            // Horizontal
            rowIndex += 2;

            GridStyleInfo       style9         = gridControl1[rowIndex, colIndex1];
            GridProgressBarInfo progressBarEx9 = style9.ProgressBar;
            style9.CellType = "ProgressBar";
            style9.Themed   = false;

            //
            // progressBarEx9
            //
            progressBarEx9.BackGradientEndColor   = System.Drawing.Color.White;
            progressBarEx9.BackGradientStartColor = System.Drawing.Color.LightGray;
            progressBarEx9.BackgroundStyle        = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.Tube;
            progressBarEx9.BackMultipleColors     = new System.Drawing.Color[0];
            progressBarEx9.BackSegments           = false;
            progressBarEx9.BackTubeEndColor       = System.Drawing.Color.White;
            progressBarEx9.BackTubeStartColor     = System.Drawing.Color.LightGray;
            progressBarEx9.ForegroundImage        = null;
            progressBarEx9.GradientEndColor       = System.Drawing.Color.Yellow;
            progressBarEx9.GradientStartColor     = System.Drawing.Color.Red;
            progressBarEx9.MultipleColors         = new System.Drawing.Color[0];
            progressBarEx9.ProgressStyle          = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Gradient;
            progressBarEx9.SegmentWidth           = 12;
            progressBarEx9.TubeEndColor           = System.Drawing.Color.Black;
            progressBarEx9.TubeStartColor         = System.Drawing.Color.Red;
            progressBarEx9.ProgressValue          = 75;

            gridControl1.RowHeights[rowIndex] = 23;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 2, rowIndex, 6));


            // Horizontal
            rowIndex += 2;

            GridStyleInfo       style14         = gridControl1[rowIndex, colIndex1];
            GridProgressBarInfo progressBarEx14 = style14.ProgressBar;
            style14.CellType = "ProgressBar";
            style14.Themed   = true;

            //
            // progressBarEx14
            //
            progressBarEx14.BackGradientEndColor   = System.Drawing.Color.White;
            progressBarEx14.BackGradientStartColor = System.Drawing.Color.LightGray;
            progressBarEx14.BackgroundStyle        = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.System;
            progressBarEx14.BackSegments           = false;
            progressBarEx14.BackTubeEndColor       = System.Drawing.Color.White;
            progressBarEx14.BackTubeStartColor     = System.Drawing.Color.LightGray;
            progressBarEx14.FontColor          = System.Drawing.Color.White;
            progressBarEx14.ForegroundImage    = null;
            progressBarEx14.GradientEndColor   = System.Drawing.Color.FromArgb(255, 187, 111);
            progressBarEx14.GradientStartColor = System.Drawing.Color.FromArgb(0, 21, 84);
            progressBarEx14.MultipleColors     = new System.Drawing.Color[0];
            progressBarEx14.ProgressStyle      = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.WaitingGradient;
            progressBarEx14.SegmentWidth       = 12;
            progressBarEx14.TubeEndColor       = System.Drawing.Color.Black;
            progressBarEx14.TubeStartColor     = System.Drawing.Color.Red;
            progressBarEx14.ProgressValue      = 75;

            gridControl1.RowHeights[rowIndex] = 23;
            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(rowIndex, 2, rowIndex, 6));

            rowIndex += 2;
            GridStyleInfo styleCheckBox = gridControl1[rowIndex, colIndex1];
            styleCheckBox.CellType    = "CheckBox";
            styleCheckBox.Description = "Animate";
            styleCheckBox.Themed      = true;
            styleCheckBox.CellValue   = "False";
            styleCheckBox.CheckBoxOptions.UncheckedValue = "False";
            styleCheckBox.CheckBoxOptions.CheckedValue   = "True";
            styleCheckBox.FloatCell = true;
            //gridControl1.CurrentCellChanged += new EventHandler(gridControl1_CurrentCellChanged);
            gridControl1.CheckBoxClick += new GridCellClickEventHandler(gridControl1_CheckBoxClick);
            for (int i = 23; i <= 36; i++)
            {
                gridControl1.HideRows[i] = true;
            }
            #endregion

            this.gridControl1.EndUpdate(true);

            #endregion
        }
示例#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.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.gridPanel          = new System.Windows.Forms.Panel();
            this.panel1             = new System.Windows.Forms.Panel();
            this.label1             = new System.Windows.Forms.Label();
            this.formulaPanel       = new System.Windows.Forms.Panel();
            this.tableLayoutPanel1  = new System.Windows.Forms.TableLayoutPanel();
            this.syntaxtitle        = new System.Windows.Forms.Label();
            this.syntaxLable        = new System.Windows.Forms.Label();
            this.descrLable         = new System.Windows.Forms.Label();
            this.textBox1           = new System.Windows.Forms.TextBox();
            this.functionCountLable = new System.Windows.Forms.Label();
            this.descTitle          = new System.Windows.Forms.Label();
            this.buttonAdv1         = new Syncfusion.Windows.Forms.ButtonAdv();
            this.formlabel          = new System.Windows.Forms.Label();
            this.formulaCombo       = new Syncfusion.Windows.Forms.Tools.ComboBoxAdv();
            this.resultPanel        = new System.Windows.Forms.Panel();
            this.resultLable        = new System.Windows.Forms.Label();
            this.resulttile         = new System.Windows.Forms.Label();
            this.gridPanel.SuspendLayout();
            this.formulaPanel.SuspendLayout();
            this.tableLayoutPanel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.formulaCombo)).BeginInit();
            this.resultPanel.SuspendLayout();
            this.SuspendLayout();
            //
            // gridPanel
            //
            this.gridPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(59)))), ((int)(((byte)(81)))));
            this.gridPanel.Controls.Add(this.label1);
            this.gridPanel.Location = new System.Drawing.Point(6, 5);
            this.gridPanel.Margin   = new System.Windows.Forms.Padding(4, 5, 50, 50);
            this.gridPanel.Name     = "gridPanel";
            this.gridPanel.Size     = new System.Drawing.Size(873, 840);
            this.gridPanel.TabIndex = 0;
            //
            // label1
            //
            this.label1.Dock      = System.Windows.Forms.DockStyle.Top;
            this.label1.Font      = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label1.ForeColor = System.Drawing.Color.LightSteelBlue;
            this.label1.Location  = new System.Drawing.Point(76, 0);
            this.label1.Margin    = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.label1.Name      = "label1";
            this.label1.Size      = new System.Drawing.Size(938, 42);
            this.label1.TabIndex  = 4;
            this.label1.Text      = "Sample Data Set";
            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            //
            // formulaPanel
            //

            this.formulaPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(59)))), ((int)(((byte)(81)))));
            this.formulaPanel.Controls.Add(this.tableLayoutPanel1);
            this.formulaPanel.Controls.Add(this.textBox1);
            this.formulaPanel.Controls.Add(this.functionCountLable);
            this.formulaPanel.Controls.Add(this.descTitle);
            this.formulaPanel.Controls.Add(this.buttonAdv1);
            this.formulaPanel.Controls.Add(this.formlabel);
            this.formulaPanel.Controls.Add(this.formulaCombo);
            this.formulaPanel.Location = new System.Drawing.Point(1109, 43);
            this.formulaPanel.Margin   = new System.Windows.Forms.Padding(4, 5, 75, 5);
            this.formulaPanel.Name     = "formulaPanel";
            this.formulaPanel.Size     = new System.Drawing.Size(570, 706);
            this.formulaPanel.TabIndex = 1;
            //
            // tableLayoutPanel1
            //
            this.tableLayoutPanel1.ColumnCount = 1;
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel1.Controls.Add(this.syntaxtitle, 0, 1);
            this.tableLayoutPanel1.Controls.Add(this.syntaxLable, 0, 2);
            this.tableLayoutPanel1.Controls.Add(this.descrLable, 0, 0);
            this.tableLayoutPanel1.Location = new System.Drawing.Point(20, 255);
            this.tableLayoutPanel1.Margin   = new System.Windows.Forms.Padding(4, 5, 4, 5);
            this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
            this.tableLayoutPanel1.RowCount = 3;
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, (int)DpiAware.LogicalToDeviceUnits(45.0f)));
            //this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 38F));
            //this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 58F));
            this.tableLayoutPanel1.Size     = new System.Drawing.Size(326, 426);
            this.tableLayoutPanel1.TabIndex = 10;
            //
            // syntaxtitle
            //
            this.syntaxtitle.Font      = new System.Drawing.Font("Segoe UI Semibold", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.syntaxtitle.ForeColor = System.Drawing.Color.White;
            this.syntaxtitle.Location  = new System.Drawing.Point(4, 208);
            this.syntaxtitle.Margin    = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.syntaxtitle.Name      = "syntaxtitle";
            this.syntaxtitle.Size      = new System.Drawing.Size(150, 30);
            this.syntaxtitle.TabIndex  = 6;
            this.syntaxtitle.Text      = "SYNTAX";
            this.syntaxtitle.Click    += new System.EventHandler(this.Form1_Click);
            //
            // syntaxLable
            //
            this.syntaxLable.Font      = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.syntaxLable.ForeColor = System.Drawing.Color.LightSteelBlue;
            this.syntaxLable.Location  = new System.Drawing.Point(26, 238);
            this.syntaxLable.Margin    = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.syntaxLable.Name      = "syntaxLable";
            this.syntaxLable.Size      = new System.Drawing.Size(474, 188);
            this.syntaxLable.TabIndex  = 7;
            this.syntaxLable.Click    += new System.EventHandler(this.Form1_Click);
            //
            // descrLable
            //
            this.descrLable.Font      = new System.Drawing.Font("Segoe UI", 12F);
            this.descrLable.ForeColor = System.Drawing.Color.LightSteelBlue;
            this.descrLable.Location  = new System.Drawing.Point(42, 0);
            this.descrLable.Margin    = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.descrLable.Name      = "descrLable";
            this.descrLable.Size      = new System.Drawing.Size(480, 200);
            this.descrLable.TabIndex  = 3;
            this.descrLable.Click    += new System.EventHandler(this.Form1_Click);
            //
            // textBox1
            //
            this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.textBox1.Font        = new System.Drawing.Font("Segoe UI Semibold", 14.25F, System.Drawing.FontStyle.Bold);
            this.textBox1.Location    = new System.Drawing.Point(190, 72);
            this.textBox1.Margin      = new System.Windows.Forms.Padding(4, 5, 4, 5);
            this.textBox1.Multiline   = true;
            this.textBox1.Name        = "textBox1";
            this.textBox1.Size        = new System.Drawing.Size(154, 27);
            this.textBox1.TabIndex    = 9;
            this.textBox1.TextAlign   = System.Windows.Forms.HorizontalAlignment.Center;
            //
            // functionCountLable
            //
            this.functionCountLable.AutoSize  = true;
            this.functionCountLable.Font      = new System.Drawing.Font("Segoe UI Light", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.functionCountLable.ForeColor = System.Drawing.Color.LightSteelBlue;
            this.functionCountLable.Location  = new System.Drawing.Point(10, 15);
            this.functionCountLable.Margin    = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.functionCountLable.Name      = "functionCountLable";
            this.functionCountLable.Size      = new System.Drawing.Size(173, 21);
            this.functionCountLable.TabIndex  = 6;
            this.functionCountLable.Text      = "It Supports 407 formulas";
            this.functionCountLable.Click    += new System.EventHandler(this.Form1_Click);
            //
            // descTitle
            //
            this.descTitle.Font      = new System.Drawing.Font("Segoe UI Semibold", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.descTitle.ForeColor = System.Drawing.Color.White;
            this.descTitle.Location  = new System.Drawing.Point(27, 237);
            this.descTitle.Margin    = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.descTitle.Name      = "descTitle";
            this.descTitle.Size      = new System.Drawing.Size(200, 226);
            this.descTitle.TabIndex  = 3;
            this.descTitle.Text      = "DESCRIPTION";
            this.descTitle.Click    += new System.EventHandler(this.Form1_Click);
            //
            // buttonAdv1
            //
            this.buttonAdv1.Appearance                = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
            this.buttonAdv1.BackColor                 = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(126)))), ((int)(((byte)(156)))));
            this.buttonAdv1.BeforeTouchSize           = new System.Drawing.Size(213, 51);
            this.buttonAdv1.FlatAppearance.BorderSize = 0;
            this.buttonAdv1.FlatStyle                 = System.Windows.Forms.FlatStyle.Flat;
            this.buttonAdv1.Font       = new System.Drawing.Font("Segoe UI Semibold", 14.75F, System.Drawing.FontStyle.Bold);
            this.buttonAdv1.ForeColor  = System.Drawing.Color.White;
            this.buttonAdv1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.buttonAdv1.Location   = new System.Drawing.Point(22, 139);
            this.buttonAdv1.Margin     = new System.Windows.Forms.Padding(4, 5, 4, 5);
            this.buttonAdv1.Name       = "buttonAdv1";
            this.buttonAdv1.Text       = "Calculate";
            this.buttonAdv1.Size       = new System.Drawing.Size(150, 31);
            this.buttonAdv1.TabIndex   = 7;
            this.buttonAdv1.Text       = "Calculate";
            this.buttonAdv1.Click     += new System.EventHandler(this.buttonAdv1_Click);
            //
            // formlabel
            //
            this.formlabel.ForeColor = System.Drawing.Color.White;
            this.formlabel.Location  = new System.Drawing.Point(15, -38);
            this.formlabel.Margin    = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.formlabel.Name      = "formlabel";
            this.formlabel.Size      = new System.Drawing.Size(150, 18);
            this.formlabel.TabIndex  = 1;
            this.formlabel.Text      = "Choose Formula";
            //
            // formulaCombo
            //
            this.formulaCombo.AllowNewText     = false;
            this.formulaCombo.BackColor        = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(59)))), ((int)(((byte)(81)))));
            this.formulaCombo.BeforeTouchSize  = new System.Drawing.Size(214, 27);
            this.formulaCombo.Border3DStyle    = System.Windows.Forms.Border3DStyle.Flat;
            this.formulaCombo.FlatBorderColor  = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(59)))), ((int)(((byte)(100)))));
            this.formulaCombo.FlatStyle        = Syncfusion.Windows.Forms.Tools.ComboFlatStyle.Flat;
            this.formulaCombo.Font             = new System.Drawing.Font("Segoe UI Semibold", 12.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.formulaCombo.ForeColor        = System.Drawing.Color.LightSteelBlue;
            this.formulaCombo.Location         = new System.Drawing.Point(21, 72);
            this.formulaCombo.Margin           = new System.Windows.Forms.Padding(4, 5, 4, 5);
            this.formulaCombo.MaxDropDownItems = 5;
            this.formulaCombo.Name             = "formulaCombo";
            this.formulaCombo.Padding          = new System.Windows.Forms.Padding(64, 68, 64, 68);
            this.formulaCombo.Size             = new System.Drawing.Size(154, 27);
            this.formulaCombo.Style            = Syncfusion.Windows.Forms.VisualStyle.Metro;
            this.formulaCombo.TabIndex         = 0;
            this.formulaCombo.ThemeName        = "Metro";
            this.formulaCombo.UseBackColor     = true;
            //
            // resultPanel
            //
            this.resultPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(59)))), ((int)(((byte)(81)))));
            this.resultPanel.Controls.Add(this.resultLable);
            this.resultPanel.Controls.Add(this.resulttile);
            this.resultPanel.Location = new System.Drawing.Point(1109, 759);
            this.resultPanel.Margin   = new System.Windows.Forms.Padding(4, 5, 10, 10);
            this.resultPanel.Name     = "resultPanel";
            this.resultPanel.Size     = new System.Drawing.Size(570, 125);
            this.resultPanel.TabIndex = 3;
            //
            // resultLable
            //
            this.resultLable.BackColor = System.Drawing.Color.Transparent;
            this.resultLable.Font      = new System.Drawing.Font("Segoe UI", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.resultLable.ForeColor = System.Drawing.Color.LightSteelBlue;
            this.resultLable.Location  = new System.Drawing.Point(0, 42);
            this.resultLable.Margin    = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.resultLable.Name      = "resultLable";
            this.resultLable.Size      = new System.Drawing.Size(496, 68);
            this.resultLable.TabIndex  = 6;
            this.resultLable.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.resultLable.Click    += new System.EventHandler(this.Form1_Click);
            //
            // resulttile
            //
            this.resulttile.Font      = new System.Drawing.Font("Segoe UI Semibold", 11.25F, System.Drawing.FontStyle.Bold);
            this.resulttile.ForeColor = System.Drawing.Color.White;
            this.resulttile.Location  = new System.Drawing.Point(14, 15);
            this.resulttile.Margin    = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.resulttile.Name      = "resulttile";
            this.resulttile.Size      = new System.Drawing.Size(150, 28);
            this.resulttile.TabIndex  = 5;
            this.resulttile.Text      = "RESULT";
            this.resulttile.Click    += new System.EventHandler(this.Form1_Click);
            //
            // panle1
            //
            this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.panel1.Location = new System.Drawing.Point(0, 0);
            this.panel1.Size     = new System.Drawing.Size(1370, 527);
            //
            // Form1
            //
            this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor           = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(89)))), ((int)(((byte)(123)))));
            this.ClientSize          = new System.Drawing.Size(1370, 527);
            this.panel1.Controls.Add(this.resultPanel);
            this.panel1.Controls.Add(this.formulaPanel);
            this.panel1.Controls.Add(this.gridPanel);
            this.Controls.Add(this.panel1);
            this.FormBorderStyle             = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.Margin                      = new System.Windows.Forms.Padding(4, 5, 4, 5);
            this.Name                        = "Form1";
            this.Style.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(89)))), ((int)(((byte)(123)))));
            this.Style.InactiveShadowOpacity = ((byte)(0));
            //this.Style.MdiChild.IconHorizontalAlignment = System.Windows.Forms.HorizontalAlignment.Center;
            //this.Style.MdiChild.IconVerticalAlignment = System.Windows.Forms.VisualStyles.VerticalAlignment.Center;
            this.Style.ShadowOpacity                    = ((byte)(0));
            this.Style.TitleBar.BackColor               = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(89)))), ((int)(((byte)(123)))));
            this.Style.TitleBar.CaptionImage            = ((System.Drawing.Image)(resources.GetObject("resource.CaptionImage")));
            this.Style.TitleBar.CaptionImageLocation    = new System.Drawing.Point(12, 23);
            this.Style.TitleBar.CloseButtonForeColor    = System.Drawing.Color.White;
            this.Style.TitleBar.Font                    = new System.Drawing.Font("Segoe UI", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Style.TitleBar.ForeColor               = System.Drawing.Color.White;
            this.Style.TitleBar.Height                  = 75;
            this.Style.TitleBar.MaximizeButtonForeColor = System.Drawing.Color.White;
            this.Style.TitleBar.MinimizeButtonForeColor = System.Drawing.Color.White;
            this.Text        = "Essential Calculate";
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.gridPanel.ResumeLayout(false);
            this.formulaPanel.ResumeLayout(false);
            this.formulaPanel.PerformLayout();
            this.tableLayoutPanel1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.formulaCombo)).EndInit();
            this.resultPanel.ResumeLayout(false);
            this.ResumeLayout(false);
        }
示例#14
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.gridControl1 = new Syncfusion.Windows.Forms.Grid.GridControl();
            this.checkBox1    = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
            this.panel1       = new System.Windows.Forms.Panel();
            ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.checkBox1)).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)));
            this.gridControl1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.gridControl1.ColCount    = 11;
            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, 176),
                new Syncfusion.Windows.Forms.Grid.GridColWidth(2, 66)
            });
            this.gridControl1.DefaultGridBorderStyle = Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid;
            this.gridControl1.Font                             = new System.Drawing.Font("Segoe UI", 9F);
            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(-2, -2);
            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.RightToLeft                      = System.Windows.Forms.RightToLeft.No;
            this.gridControl1.RowHeightEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridRowHeight[] {
                new Syncfusion.Windows.Forms.Grid.GridRowHeight(0, 21),
                new Syncfusion.Windows.Forms.Grid.GridRowHeight(1, 17),
                new Syncfusion.Windows.Forms.Grid.GridRowHeight(2, 18),
                new Syncfusion.Windows.Forms.Grid.GridRowHeight(3, 17),
                new Syncfusion.Windows.Forms.Grid.GridRowHeight(4, 18)
            });
            this.gridControl1.SerializeCellsBehavior = Syncfusion.Windows.Forms.Grid.GridSerializeCellsBehavior.SerializeAsRangeStylesIntoCode;
            this.gridControl1.Size         = new System.Drawing.Size(866, 489);
            this.gridControl1.SmartSizeBox = false;
            this.gridControl1.TabIndex     = 0;

            //
            // 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("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.checkBox1.Location        = new System.Drawing.Point(511, 511);
            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(90, 24);
            this.checkBox1.Style           = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro;
            this.checkBox1.TabIndex        = 1;
            this.checkBox1.Text            = "Resize To Fit";
            this.checkBox1.ThemesEnabled   = false;
            this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
            //
            // 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.SystemColors.Control;
            this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.panel1.Controls.Add(this.gridControl1);
            this.panel1.Location = new System.Drawing.Point(12, 12);
            this.panel1.Name     = "panel1";
            this.panel1.Size     = new System.Drawing.Size(864, 493);
            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(888, 543);
            this.Controls.Add(this.panel1);
            this.MinimumSize = new System.Drawing.Size(600, 500);
            this.Name        = "Form1";
            this.Text        = "Custom Cell Autosizing";
            this.Load       += new System.EventHandler(this.Form1_Load);
            ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.checkBox1)).EndInit();
            this.panel1.ResumeLayout(false);
            this.ResumeLayout(false);
        }
示例#15
0
        /// <summary>
        /// Form Constructor
        /// </summary>
        public MultipleViewForm()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            if (DpiAware.GetCurrentDpi() > 96)
            {
                this.CaptionBarHeight = (int)DpiAware.LogicalToDeviceUnits(this.CaptionBarHeight);
            }

            this.GridSettings();

            #region Buffer text
            gridControl1.Model.TextDataExchange.PasteTextFromBuffer(
                "1\tDavolio	Nancy\r\n" +
                "2\tFuller	Andrew\r\n"+
                "3\tLeverling	Janet\r\n"+
                "4\tPeacock	Margaret\r\n" +
                "5\tBuchanan	Steven\r\n"+
                "6\tSuyama	Michael\r\n"+
                "7\tKing	Robert\r\n"+
                "8\tCallahan	Laura\r\n"+
                "9\tDodsworth	Anne\r\n",
                GridRangeInfo.Cell(1, 1), int.MaxValue);
            #endregion

            #region Style Info
            GridStyleInfo standard = gridControl1.BaseStylesMap["Standard"].StyleInfo;
            //System.IO.Stream strm = null;
            ImageList imageList = new ImageList();

            System.IO.Stream strm     = null;
            string           iconName = "MultipleViews.user.ico";
            strm = this.GetType().Assembly.GetManifestResourceStream(iconName);
            Icon icon = new Icon(strm);
            imageList.Images.Add(icon.ToBitmap());

            iconName = "MultipleViews.userH.ico";
            strm     = this.GetType().Assembly.GetManifestResourceStream(iconName);
            icon     = new Icon(strm);
            imageList.Images.Add(icon.ToBitmap());

            iconName = "MultipleViews.userJ.ico";
            strm     = this.GetType().Assembly.GetManifestResourceStream(iconName);
            icon     = new Icon(strm);
            imageList.Images.Add(icon.ToBitmap());

            standard.ImageList = imageList;

            int rowIndex = 1;
            int colIndex = 2;
            gridControl1[rowIndex++, colIndex].ImageIndex = 1;
            gridControl1[rowIndex++, colIndex].ImageIndex = 2;
            gridControl1[rowIndex++, colIndex].ImageIndex = 0;
            gridControl1[rowIndex++, colIndex].ImageIndex = 1;
            gridControl1[rowIndex++, colIndex].ImageIndex = 1;
            gridControl1[rowIndex++, colIndex].ImageIndex = 2;
            gridControl1[rowIndex++, colIndex].ImageIndex = 2;
            gridControl1[rowIndex++, colIndex].ImageIndex = 0;
            gridControl1[rowIndex++, colIndex].ImageIndex = 1;

            //gridControl1.Model.Options.DataObjectConsumerOptions = GridDataObjectConsumerOptions.Styles;
            gridControl1.DataObjectConsumerOptions = GridDataObjectConsumerOptions.All;

            GridStyleInfo style;
            style           = new GridStyleInfo();
            style.Interior  = new BrushInfo(Color.White);
            style.TextColor = Color.FromArgb(0x82, 0x2e, 0x1b);
            gridControl1.ChangeCells(GridRangeInfo.Cells(1, 1, 9, 3), style);

            style = new GridStyleInfo();
            style.HorizontalAlignment = GridHorizontalAlignment.Right;
            style.CellValueType       = typeof(int);
            style.Format = "000";
            gridControl1.ChangeCells(GridRangeInfo.Cells(1, 1, 9, 1), style);

            gridControl1.ColWidths.ResizeToFit(GridRangeInfo.Cells(1, 1, 9, 3));

            gridControl1.CommandStack.Enabled = true;

            // Make second grid controls share the same model.
            #endregion

            #region Properties
            this.gridControl1.DefaultRowHeight         = (int)DpiAware.LogicalToDeviceUnits(18.0f);
            this.gridControl1.DefaultColWidth          = (int)DpiAware.LogicalToDeviceUnits(70.0f);
            this.gridControl1.GridVisualStyles         = Syncfusion.Windows.Forms.GridVisualStyles.Office2007Blue;
            this.gridControl1.Properties.GridLineColor = Color.FromArgb(208, 215, 229);
            this.gridControl1.DefaultGridBorderStyle   = Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid;
            style               = this.gridControl1.BaseStylesMap["Header"].StyleInfo;
            style.TextColor     = System.Drawing.Color.MidnightBlue;
            style.Font.Facename = "Verdana";
            style               = this.gridControl1.BaseStylesMap["Standard"].StyleInfo;
            style.TextColor     = System.Drawing.Color.MidnightBlue;
            style.Font.Facename = "Verdana";
            gridControl2.Model  = gridControl1.Model;
            this.gridControl1.GridVisualStyles = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
            this.gridControl1.Model.ColWidths.ResizeToFit(GridRangeInfo.Table());
            this.gridControl2.GridVisualStyles = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
            #endregion
        }
示例#16
0
 /// <summary>
 /// To get thickness of the outer frame
 /// </summary>
 /// <returns>returns the outer frame thickness based on DPI</returns>
 private int GetFrameThickness()
 {
     return((int)Math.Ceiling(DpiAware.LogicalToDeviceUnits(this.RadialGauge.FrameThickness)));
 }
示例#17
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.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.WindowState         = FormWindowState.Maximized;
            export_groupbox          = new GroupBox();
            htmlradiobtn             = new RadioButton();
            imageradiobtn            = new RadioButton();
            pdfradiobtn = new RadioButton();
            exportbtn   = new Button();
            spreadsheet = new Spreadsheet();
            this.panel1 = new System.Windows.Forms.Panel();

            this.export_groupbox.SuspendLayout();
            this.SuspendLayout();
            this.panel1.SuspendLayout();
            #region Spreadsheet
            this.spreadsheet.AllowCellContextMenu       = true;
            this.spreadsheet.AllowExtendRowColumnCount  = true;
            this.spreadsheet.AllowFormulaRangeSelection = true;
            this.spreadsheet.AllowTabItemContextMenu    = true;
            this.spreadsheet.AllowZooming = true;
            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;
            spreadsheet.Location             = new System.Drawing.Point(0, 0);
            spreadsheet.Size                 = new System.Drawing.Size(560, 376);
            spreadsheet.FormulaBarVisibility = false;
            spreadsheet.TabIndex             = 0;
#if !NETCORE
            spreadsheet.Open(@"..\..\..\..\..\Common\Data\Spreadsheet\Export.xlsx");
#else
            spreadsheet.Open(@"..\..\..\..\..\..\Common\Data\Spreadsheet\Export.xlsx");
#endif


            //
            //html checkbox
            //
            htmlradiobtn.Location = new Point((int)DpiAware.LogicalToDeviceUnits(10), 35);
            htmlradiobtn.Size     = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(150), 35);
            htmlradiobtn.Text     = "Export to HTML";

            //
            //image checkbox
            //
            imageradiobtn.Location = new Point((int)DpiAware.LogicalToDeviceUnits(10), 90);
            imageradiobtn.Size     = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(150), 35);
            imageradiobtn.Text     = "Export to Image";

            //
            //pdf checkbox
            pdfradiobtn.Location = new Point((int)DpiAware.LogicalToDeviceUnits(10), 150);
            pdfradiobtn.Size     = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(150), 35);
            pdfradiobtn.Text     = "Export to PDF";

            //
            //Export button
            //
            this.exportbtn.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.exportbtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(165)))), ((int)(((byte)(220)))));
            this.exportbtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.exportbtn.Font      = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.exportbtn.ForeColor = System.Drawing.Color.White;
            exportbtn.Location       = new Point(50, 220);
            exportbtn.Size           = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(100), 35);
            exportbtn.Text           = "Export";
            exportbtn.Click         += exportbtn_Click;

            //
            // groupBox1
            //
            export_groupbox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                           | System.Windows.Forms.AnchorStyles.Right)));
            export_groupbox.Controls.Add(htmlradiobtn);
            export_groupbox.Controls.Add(imageradiobtn);
            export_groupbox.Controls.Add(pdfradiobtn);
            export_groupbox.Controls.Add(exportbtn);
            export_groupbox.Location = new System.Drawing.Point(575, 1);
            export_groupbox.Size     = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(180), 360);
            export_groupbox.TabIndex = 3;
            export_groupbox.Font     = new System.Drawing.Font(export_groupbox.Font, FontStyle.Bold);
            export_groupbox.TabStop  = false;
            export_groupbox.Text     = "Export Options";
            //
            // 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(560, 376);
            this.panel1.TabIndex  = 4;
            //
            // Form1
            //
            AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            ClientSize          = new System.Drawing.Size(793, 403);
            Controls.Add(export_groupbox);
            Controls.Add(panel1);
            MinimumSize        = new System.Drawing.Size(600, 350);
            this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Font          = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            Text = "Exporting";
            this.panel1.ResumeLayout(false);
            this.export_groupbox.ResumeLayout(false);
            this.ResumeLayout(false);

            #endregion
        }
示例#18
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.sfDataGrid1        = new Syncfusion.WinForms.DataGrid.SfDataGrid();
     this.panel1             = new System.Windows.Forms.Panel();
     this.label2             = new System.Windows.Forms.Label();
     this.dataSourceComboBox = new System.Windows.Forms.ComboBox();
     this.groupBox1          = new System.Windows.Forms.GroupBox();
     ((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // sfDataGrid1
     //
     this.sfDataGrid1.AccessibleName       = "Table";
     this.sfDataGrid1.AllowFiltering       = true;
     this.sfDataGrid1.AllowResizingColumns = true;
     this.sfDataGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.sfDataGrid1.AutoSizeColumnsMode = Syncfusion.WinForms.DataGrid.Enums.AutoSizeColumnsMode.Fill;
     this.sfDataGrid1.Location            = new System.Drawing.Point(10, 5);
     this.sfDataGrid1.Margin            = new System.Windows.Forms.Padding(5);
     this.sfDataGrid1.Name              = "sfDataGrid1";
     this.sfDataGrid1.ShowGroupDropArea = true;
     this.sfDataGrid1.RowHeight         = (int)DpiAware.LogicalToDeviceUnits(21.0f);
     this.sfDataGrid1.Size              = new System.Drawing.Size(778, 543);
     this.sfDataGrid1.TabIndex          = 0;
     this.sfDataGrid1.Text              = "sfDataGrid1";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Font     = new System.Drawing.Font("Segoe UI", 9F);
     this.label2.Location = new System.Drawing.Point(5, 38);
     this.label2.Margin   = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(118, 20);
     this.label2.TabIndex = 2;
     this.label2.Text     = "Collection Type :";
     //
     // dataSourceComboBox
     //
     this.dataSourceComboBox.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(242)))), ((int)(((byte)(242)))));
     this.dataSourceComboBox.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.dataSourceComboBox.Font              = new System.Drawing.Font("Segoe UI", 9F);
     this.dataSourceComboBox.ForeColor         = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
     this.dataSourceComboBox.FormattingEnabled = true;
     this.dataSourceComboBox.Items.AddRange(new object[] {
         "BindingList",
         "DataTable",
         "ObservableCollection"
     });
     this.dataSourceComboBox.Location              = new System.Drawing.Point(4, 67);
     this.dataSourceComboBox.Margin                = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.dataSourceComboBox.Name                  = "dataSourceComboBox";
     this.dataSourceComboBox.Size                  = new System.Drawing.Size(190, 28);
     this.dataSourceComboBox.TabIndex              = 3;
     this.dataSourceComboBox.SelectedIndexChanged += new System.EventHandler(this.dataSourceComboBox_SelectedIndexChanged);
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.dataSourceComboBox);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Font      = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold);
     this.groupBox1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
     this.groupBox1.Location  = new System.Drawing.Point(10, 8);
     this.groupBox1.Margin    = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.groupBox1.Name      = "groupBox1";
     this.groupBox1.Padding   = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.groupBox1.Size      = new System.Drawing.Size(214, 120);
     this.groupBox1.TabIndex  = 4;
     this.groupBox1.TabStop   = false;
     this.groupBox1.Text      = "Options";
     //
     //panel
     //
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Right;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(235, 60);
     this.panel1.Controls.Add(this.groupBox1);
     this.panel1.TabIndex = 7;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.White;
     this.ClientSize          = new System.Drawing.Size(1024, 553);
     this.Controls.Add(this.sfDataGrid1);
     this.Controls.Add(this.panel1);
     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          = "Data Binding";
     ((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.ResumeLayout(false);
 }
示例#19
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.sfDataGrid1 = new Syncfusion.WinForms.DataGrid.SfDataGrid();
     this.label1      = new System.Windows.Forms.Label();
     this.textBox1    = new System.Windows.Forms.TextBox();
     this.textBox2    = new System.Windows.Forms.TextBox();
     this.textBox3    = new System.Windows.Forms.TextBox();
     this.label2      = new System.Windows.Forms.Label();
     this.label3      = new System.Windows.Forms.Label();
     this.label4      = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).BeginInit();
     this.SuspendLayout();
     //
     // 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";
     //
     // label1
     //
     this.label1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.AutoSize = true;
     this.label1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(777, 42);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(69, 20);
     this.label1.TabIndex = 1;
     this.label1.Text     = "Legend";
     //
     // textBox1
     //
     this.textBox1.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.textBox1.BackColor = System.Drawing.Color.Aquamarine;
     this.textBox1.Location  = new System.Drawing.Point(781, 85);
     this.textBox1.Name      = "textBox1";
     this.textBox1.Size      = new System.Drawing.Size(21, 20);
     this.textBox1.TabIndex  = 2;
     //
     // textBox2
     //
     this.textBox2.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.textBox2.BackColor = System.Drawing.Color.OrangeRed;
     this.textBox2.Location  = new System.Drawing.Point(781, 133);
     this.textBox2.Name      = "textBox2";
     this.textBox2.Size      = new System.Drawing.Size(21, 20);
     this.textBox2.TabIndex  = 3;
     //
     // textBox3
     //
     this.textBox3.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.textBox3.BackColor = System.Drawing.Color.Maroon;
     this.textBox3.Location  = new System.Drawing.Point(781, 182);
     this.textBox3.Name      = "textBox3";
     this.textBox3.Size      = new System.Drawing.Size(21, 20);
     this.textBox3.TabIndex  = 4;
     //
     // label2
     //
     this.label2.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label2.AutoSize = true;
     this.label2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location = new System.Drawing.Point(812, 85);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(146, 15);
     this.label2.TabIndex = 5;
     this.label2.Text     = "Unit Price greater than 50";
     //
     // label3
     //
     this.label3.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label3.AutoSize = true;
     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(812, 134);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(124, 15);
     this.label3.TabIndex = 6;
     this.label3.Text     = "Qunatity less than 6";
     //
     // label4
     //
     this.label4.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label4.AutoSize = true;
     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(812, 183);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(113, 15);
     this.label4.TabIndex = 7;
     this.label4.Text     = "Discount less than 10";
     //
     // 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.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.textBox3);
     this.Controls.Add(this.textBox2);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.sfDataGrid1);
     this.MinimumSize   = new System.Drawing.Size(992, 577);
     this.Name          = "Form1";
     this.Text          = "DetailsView Conditional Formatting";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     ((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#20
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);
        }
示例#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.panel1                   = new System.Windows.Forms.Panel();
     this.toolStrip1               = new System.Windows.Forms.ToolStrip();
     this.rectToolStripButton      = new System.Windows.Forms.ToolStripButton();
     this.ellpToolStripButton      = new System.Windows.Forms.ToolStripButton();
     this.rrectToolStripButton     = new System.Windows.Forms.ToolStripButton();
     this.polyToolStripButton      = new System.Windows.Forms.ToolStripButton();
     this.semiStripButton12        = new System.Windows.Forms.ToolStripButton();
     this.carcToolStripButton      = new System.Windows.Forms.ToolStripButton();
     this.bmpToolStripButton       = new System.Windows.Forms.ToolStripButton();
     this.textToolStripButton      = new System.Windows.Forms.ToolStripButton();
     this.rchtxtToolStripButton    = new System.Windows.Forms.ToolStripButton();
     this.lineToolStripButton      = new System.Windows.Forms.ToolStripButton();
     this.polylneToolStripButton   = new System.Windows.Forms.ToolStripButton();
     this.curveToolStripButton     = new System.Windows.Forms.ToolStripButton();
     this.closdCurvToolStripButton = new System.Windows.Forms.ToolStripButton();
     this.splineToolStripButton    = new System.Windows.Forms.ToolStripButton();
     this.bezierToolStripButton    = new System.Windows.Forms.ToolStripButton();
     this.pencilToolStripButton    = new System.Windows.Forms.ToolStripButton();
     this.panel2                   = new System.Windows.Forms.Panel();
     this.propertyEditor1          = new Syncfusion.Windows.Forms.Diagram.Controls.PropertyEditor(this.components);
     this.diagram1                 = new Syncfusion.Windows.Forms.Diagram.Controls.Diagram(this.components);
     this.model1                   = new Syncfusion.Windows.Forms.Diagram.Model(this.components);
     this.panel3                   = new System.Windows.Forms.Panel();
     this.panel1.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.diagram1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.model1)).BeginInit();
     this.panel3.SuspendLayout();
     this.SuspendLayout();
     //
     // 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(1028, 62);
     this.panel1.TabIndex = 0;
     //
     // toolStrip1
     //
     this.toolStrip1.BackColor = System.Drawing.Color.Transparent;
     this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.rectToolStripButton,
         this.ellpToolStripButton,
         this.rrectToolStripButton,
         this.polyToolStripButton,
         this.semiStripButton12,
         this.carcToolStripButton,
         this.bmpToolStripButton,
         this.textToolStripButton,
         this.rchtxtToolStripButton,
         this.lineToolStripButton,
         this.polylneToolStripButton,
         this.curveToolStripButton,
         this.closdCurvToolStripButton,
         this.splineToolStripButton,
         this.bezierToolStripButton,
         this.pencilToolStripButton
     });
     this.toolStrip1.Location     = new System.Drawing.Point(0, 0);
     this.toolStrip1.Name         = "toolStrip1";
     this.toolStrip1.Size         = new System.Drawing.Size(1028, 63);
     this.toolStrip1.TabIndex     = 0;
     this.toolStrip1.Text         = "toolStrip1";
     this.toolStrip1.ItemClicked += this.toolStrip1_ItemClicked;
     //
     // rectToolStripButton
     //
     this.rectToolStripButton.AutoSize              = false;
     this.rectToolStripButton.BackColor             = System.Drawing.Color.Transparent;
     this.rectToolStripButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.rectToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("rectToolStripButton.Image")));
     this.rectToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.rectToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.rectToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.rectToolStripButton.Name              = "rectToolStripButton";
     this.rectToolStripButton.Padding           = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(20), 0, (int)DpiAware.LogicalToDeviceUnits(20), 0);
     this.rectToolStripButton.Size              = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(84), (int)DpiAware.LogicalToDeviceUnits(60));
     this.rectToolStripButton.Text              = "Rectangle ";
     this.rectToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.rectToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.rectToolStripButton.ToolTipText       = "Rectangle Tool";
     this.rectToolStripButton.Click            += new System.EventHandler(this.rectToolStripButton_Click);
     //
     // ellpToolStripButton
     //
     this.ellpToolStripButton.AutoSize = false;
     this.ellpToolStripButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.ellpToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("ellpToolStripButton.Image")));
     this.ellpToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.ellpToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.ellpToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.ellpToolStripButton.Name              = "ellpToolStripButton";
     this.ellpToolStripButton.Padding           = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(20), 0, (int)DpiAware.LogicalToDeviceUnits(20), 0);
     this.ellpToolStripButton.Size              = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(70), (int)DpiAware.LogicalToDeviceUnits(60));
     this.ellpToolStripButton.Text              = "Ellipse ";
     this.ellpToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.ellpToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.ellpToolStripButton.ToolTipText       = "Ellipse Tool";
     this.ellpToolStripButton.Click            += new System.EventHandler(this.ellpToolStripButton_Click);
     //
     // rrectToolStripButton
     //
     this.rrectToolStripButton.AutoSize = false;
     this.rrectToolStripButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.rrectToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("rrectToolStripButton.Image")));
     this.rrectToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.rrectToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.rrectToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.rrectToolStripButton.Name              = "rrectToolStripButton";
     this.rrectToolStripButton.Padding           = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(20), 0, (int)DpiAware.LogicalToDeviceUnits(20), 0);
     this.rrectToolStripButton.Size              = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(90), (int)DpiAware.LogicalToDeviceUnits(60));
     this.rrectToolStripButton.Text              = "RoundRect";
     this.rrectToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.rrectToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.rrectToolStripButton.ToolTipText       = "RoundRect Tool";
     this.rrectToolStripButton.Click            += new System.EventHandler(this.rrectToolStripButton_Click);
     //
     // polyToolStripButton
     //
     this.polyToolStripButton.AutoSize              = false;
     this.polyToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("polyToolStripButton.Image")));
     this.polyToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.polyToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.polyToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.polyToolStripButton.Name              = "polyToolStripButton";
     this.polyToolStripButton.Padding           = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(20), 0, (int)DpiAware.LogicalToDeviceUnits(20), 0);
     this.polyToolStripButton.Size              = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(86), (int)DpiAware.LogicalToDeviceUnits(60));
     this.polyToolStripButton.Text              = "Polygon ";
     this.polyToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.polyToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.polyToolStripButton.ToolTipText       = "Polygon Tool";
     this.polyToolStripButton.Click            += new System.EventHandler(this.polyToolStripButton_Click);
     //
     // semiStripButton12
     //
     this.semiStripButton12.AutoSize              = false;
     this.semiStripButton12.Image                 = ((System.Drawing.Image)(resources.GetObject("semiStripButton12.Image")));
     this.semiStripButton12.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.semiStripButton12.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.semiStripButton12.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.semiStripButton12.Name              = "semiStripButton12";
     this.semiStripButton12.Padding           = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(20), 0, (int)DpiAware.LogicalToDeviceUnits(20), 0);
     this.semiStripButton12.Size              = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(80), (int)DpiAware.LogicalToDeviceUnits(60));
     this.semiStripButton12.Text              = "SemiCircle";
     this.semiStripButton12.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.semiStripButton12.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.semiStripButton12.ToolTipText       = "SemiCircle Tool";
     this.semiStripButton12.Click            += new System.EventHandler(this.semiStripButton12_Click);
     //
     // carcToolStripButton
     //
     this.carcToolStripButton.AutoSize              = false;
     this.carcToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("carcToolStripButton.Image")));
     this.carcToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.carcToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.carcToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.carcToolStripButton.Name              = "carcToolStripButton";
     this.carcToolStripButton.Padding           = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(20), 0, (int)DpiAware.LogicalToDeviceUnits(20), 0);
     this.carcToolStripButton.Size              = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(80), (int)DpiAware.LogicalToDeviceUnits(60));
     this.carcToolStripButton.Text              = "CircularArc";
     this.carcToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.carcToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.carcToolStripButton.ToolTipText       = "CircularArc Tool";
     this.carcToolStripButton.Click            += new System.EventHandler(this.carcToolStripButton_Click);
     //
     // bmpToolStripButton
     //
     this.bmpToolStripButton.AutoSize = false;
     this.bmpToolStripButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.bmpToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("bmpToolStripButton.Image")));
     this.bmpToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.bmpToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.bmpToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.bmpToolStripButton.Name              = "bmpToolStripButton";
     this.bmpToolStripButton.Padding           = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(20), 0, (int)DpiAware.LogicalToDeviceUnits(20), 0);
     this.bmpToolStripButton.Size              = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(70), (int)DpiAware.LogicalToDeviceUnits(60));
     this.bmpToolStripButton.Text              = "Bitmap";
     this.bmpToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.bmpToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.bmpToolStripButton.ToolTipText       = "Bitmap  Tool";
     this.bmpToolStripButton.Click            += new System.EventHandler(this.bmpToolStripButton_Click);
     //
     // textToolStripButton
     //
     this.textToolStripButton.AutoSize = false;
     this.textToolStripButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.textToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("textToolStripButton.Image")));
     this.textToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.textToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.textToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.textToolStripButton.Name              = "textToolStripButton";
     this.textToolStripButton.Padding           = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(20), 0, (int)DpiAware.LogicalToDeviceUnits(20), 0);
     this.textToolStripButton.Size              = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(75), (int)DpiAware.LogicalToDeviceUnits(60));
     this.textToolStripButton.Text              = "TextTool";
     this.textToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.textToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.textToolStripButton.ToolTipText       = "TextNode Tool";
     this.textToolStripButton.Click            += new System.EventHandler(this.textToolStripButton_Click);
     //
     // rchtxtToolStripButton
     //
     this.rchtxtToolStripButton.AutoSize = false;
     this.rchtxtToolStripButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.rchtxtToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("rchtxtToolStripButton.Image")));
     this.rchtxtToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.rchtxtToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.rchtxtToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.rchtxtToolStripButton.Name              = "rchtxtToolStripButton";
     this.rchtxtToolStripButton.Padding           = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(20), 0, (int)DpiAware.LogicalToDeviceUnits(20), 0);
     this.rchtxtToolStripButton.Size              = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(95), (int)DpiAware.LogicalToDeviceUnits(60));
     this.rchtxtToolStripButton.Text              = "RichTextTool";
     this.rchtxtToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.rchtxtToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.rchtxtToolStripButton.ToolTipText       = "RichText Tool";
     this.rchtxtToolStripButton.Click            += new System.EventHandler(this.rchtxtToolStripButton_Click);
     //
     // lineToolStripButton
     //
     this.lineToolStripButton.AutoSize = false;
     this.lineToolStripButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.lineToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("lineToolStripButton.Image")));
     this.lineToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.lineToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.lineToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.lineToolStripButton.Name              = "lineToolStripButton";
     this.lineToolStripButton.Padding           = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(20), 0, (int)DpiAware.LogicalToDeviceUnits(20), 0);
     this.lineToolStripButton.Size              = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(70), (int)DpiAware.LogicalToDeviceUnits(60));
     this.lineToolStripButton.Text              = "Line ";
     this.lineToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.lineToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.lineToolStripButton.ToolTipText       = "Line Tool";
     this.lineToolStripButton.Click            += new System.EventHandler(this.lineToolStripButton_Click);
     //
     // polylneToolStripButton
     //
     this.polylneToolStripButton.AutoSize = false;
     this.polylneToolStripButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.polylneToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("polylneToolStripButton.Image")));
     this.polylneToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.polylneToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.polylneToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.polylneToolStripButton.Name              = "polylneToolStripButton";
     this.polylneToolStripButton.Padding           = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(20), 0, (int)DpiAware.LogicalToDeviceUnits(20), 0);
     this.polylneToolStripButton.Size              = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(84), (int)DpiAware.LogicalToDeviceUnits(60));
     this.polylneToolStripButton.Text              = "PolyLine ";
     this.polylneToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.polylneToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.polylneToolStripButton.ToolTipText       = "PolyLine Tool";
     this.polylneToolStripButton.Click            += new System.EventHandler(this.polylneToolStripButton_Click);
     //
     // curveToolStripButton
     //
     this.curveToolStripButton.AutoSize = false;
     this.curveToolStripButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.curveToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("curveToolStripButton.Image")));
     this.curveToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.curveToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.curveToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.curveToolStripButton.Name              = "curveToolStripButton";
     this.curveToolStripButton.Padding           = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(20), 0, (int)DpiAware.LogicalToDeviceUnits(20), 0);
     this.curveToolStripButton.Size              = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(70), (int)DpiAware.LogicalToDeviceUnits(60));
     this.curveToolStripButton.Text              = "Curve ";
     this.curveToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.curveToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.curveToolStripButton.ToolTipText       = "Curve Tool";
     this.curveToolStripButton.Click            += new System.EventHandler(this.curveToolStripButton_Click);
     //
     // closdCurvToolStripButton
     //
     this.closdCurvToolStripButton.AutoSize              = false;
     this.closdCurvToolStripButton.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(237)))), ((int)(((byte)(240)))));
     this.closdCurvToolStripButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
     this.closdCurvToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("closdCurvToolStripButton.Image")));
     this.closdCurvToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.closdCurvToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.closdCurvToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.closdCurvToolStripButton.Name              = "closdCurvToolStripButton";
     this.closdCurvToolStripButton.Padding           = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(20), 0, (int)DpiAware.LogicalToDeviceUnits(20), 0);
     this.closdCurvToolStripButton.Size              = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(90), (int)DpiAware.LogicalToDeviceUnits(60));
     this.closdCurvToolStripButton.Text              = "ClosedCurve";
     this.closdCurvToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.closdCurvToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.closdCurvToolStripButton.ToolTipText       = "ClosedCurve tool";
     this.closdCurvToolStripButton.Click            += new System.EventHandler(this.closdCurvToolStripButton_Click);
     //
     // splineToolStripButton
     //
     this.splineToolStripButton.AutoSize              = false;
     this.splineToolStripButton.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(237)))), ((int)(((byte)(240)))));
     this.splineToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("splineToolStripButton.Image")));
     this.splineToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.splineToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.splineToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.splineToolStripButton.Name              = "splineToolStripButton";
     this.splineToolStripButton.Padding           = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(20), 0, (int)DpiAware.LogicalToDeviceUnits(20), 0);
     this.splineToolStripButton.Size              = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(90), (int)DpiAware.LogicalToDeviceUnits(60));
     this.splineToolStripButton.Text              = "Spline ";
     this.splineToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.splineToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.splineToolStripButton.ToolTipText       = "Spline Tool";
     this.splineToolStripButton.Click            += new System.EventHandler(this.splineToolStripButton_Click);
     //
     // bezierToolStripButton
     //
     this.bezierToolStripButton.AutoSize              = false;
     this.bezierToolStripButton.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(237)))), ((int)(((byte)(240)))));
     this.bezierToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("bezierToolStripButton.Image")));
     this.bezierToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.bezierToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.bezierToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.bezierToolStripButton.Name              = "bezierToolStripButton";
     this.bezierToolStripButton.Padding           = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(20), 0, (int)DpiAware.LogicalToDeviceUnits(20), 0);
     this.bezierToolStripButton.Size              = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(90), (int)DpiAware.LogicalToDeviceUnits(60));
     this.bezierToolStripButton.Text              = "Bezier ";
     this.bezierToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.bezierToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.bezierToolStripButton.ToolTipText       = "Bezier Tool";
     this.bezierToolStripButton.Click            += new System.EventHandler(this.bezierToolStripButton_Click);
     //
     // pencilToolStripButton
     //
     this.pencilToolStripButton.AutoSize              = false;
     this.pencilToolStripButton.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(237)))), ((int)(((byte)(240)))));
     this.pencilToolStripButton.Image                 = ((System.Drawing.Image)(resources.GetObject("pencilToolStripButton.Image")));
     this.pencilToolStripButton.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.pencilToolStripButton.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.pencilToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.pencilToolStripButton.Name              = "pencilToolStripButton";
     this.pencilToolStripButton.Padding           = new System.Windows.Forms.Padding((int)DpiAware.LogicalToDeviceUnits(20), 0, (int)DpiAware.LogicalToDeviceUnits(20), 0);
     this.pencilToolStripButton.Size              = new System.Drawing.Size((int)DpiAware.LogicalToDeviceUnits(90), (int)DpiAware.LogicalToDeviceUnits(60));
     this.pencilToolStripButton.Text              = "PencilTool";
     this.pencilToolStripButton.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.pencilToolStripButton.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;
     this.pencilToolStripButton.ToolTipText       = "Bezier Tool";
     this.pencilToolStripButton.Click            += new System.EventHandler(this.pencilToolStripButton_Click);
     //
     // panel2
     //
     this.panel2.Controls.Add(this.propertyEditor1);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Right;
     this.panel2.Location = new System.Drawing.Point(779, 62);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(249, 547);
     this.panel2.TabIndex = 1;
     //
     // propertyEditor1
     //
     this.propertyEditor1.Diagram  = this.diagram1;
     this.propertyEditor1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.propertyEditor1.Font     = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.propertyEditor1.Location = new System.Drawing.Point(0, 0);
     this.propertyEditor1.Name     = "propertyEditor1";
     this.propertyEditor1.Size     = new System.Drawing.Size(249, 547);
     this.propertyEditor1.TabIndex = 0;
     //
     // 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(779, 547);
     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             = 900F;
     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(900F, 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)))));
     //
     // panel3
     //
     this.panel3.Controls.Add(this.diagram1);
     this.panel3.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel3.Location = new System.Drawing.Point(0, 62);
     this.panel3.Name     = "panel3";
     this.panel3.Size     = new System.Drawing.Size(779, 547);
     this.panel3.TabIndex = 2;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1028, 609);
     this.Controls.Add(this.panel3);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Nodes";
     this.Load         += new System.EventHandler(this.Form1_Load);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.diagram1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.model1)).EndInit();
     this.panel3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#22
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.sfDataGrid = new Syncfusion.WinForms.DataGrid.SfDataGrid();
     this.groupBox1  = new System.Windows.Forms.GroupBox();
     this.calculationUnitComboBox = new System.Windows.Forms.ComboBox();
     this.label1 = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.sfDataGrid)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // sfDataGrid
     //
     this.sfDataGrid.AccessibleName = "Table";
     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.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.AutoSizeColumnsMode = AutoSizeColumnsMode.Fill;
     this.sfDataGrid.SelectionMode       = GridSelectionMode.Extended;
     this.sfDataGrid.Size                = new System.Drawing.Size(766, 538);
     this.sfDataGrid.TabIndex            = 0;
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.calculationUnitComboBox);
     this.groupBox1.Controls.Add(this.label1);
     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(794, 12);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(186, 84);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Options";
     //
     // calculationUnitComboBox
     //
     this.calculationUnitComboBox.Anchor            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.calculationUnitComboBox.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.calculationUnitComboBox.Font              = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.calculationUnitComboBox.FormattingEnabled = true;
     this.calculationUnitComboBox.Items.AddRange(new object[] {
         "All Rows",
         "Selected Rows",
         "Mixed"
     });
     this.calculationUnitComboBox.Location              = new System.Drawing.Point(15, 48);
     this.calculationUnitComboBox.Name                  = "calculationUnitComboBox";
     this.calculationUnitComboBox.Size                  = new System.Drawing.Size(121, 21);
     this.calculationUnitComboBox.TabIndex              = 1;
     this.calculationUnitComboBox.SelectedIndexChanged += new System.EventHandler(this.OnCalculationUnitComboBoxSelectedIndexChanged);
     //
     // label1
     //
     this.label1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.AutoSize = true;
     this.label1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(6, 27);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(155, 13);
     this.label1.TabIndex = 0;
     this.label1.Text     = " Summary Calculation Unit";
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Size       = new System.Drawing.Size(1006, 552);
     this.BackColor  = System.Drawing.SystemColors.Window;
     this.ClientSize = new System.Drawing.Size(1006, 552);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.sfDataGrid);
     this.StartPosition = FormStartPosition.CenterScreen;
     this.Margin        = new System.Windows.Forms.Padding(5);
     this.MinimumSize   = new System.Drawing.Size(500, 400);
     this.Name          = "Form1";
     this.Text          = "Summaries";
     ((System.ComponentModel.ISupportInitialize)(this.sfDataGrid)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.ResumeLayout(false);
 }
示例#23
0
        /// <summary>
        /// Sets the sample customization settings.
        /// </summary>
        private void SampleCustomization()
        {
            #region SfDataGrid settings
            sfDataGrid1.ThemeName                = "Office2016Colorful";
            sfDataGrid1.ShowRowHeader            = true;
            sfDataGrid1.AllowFiltering           = true;
            this.sfDataGrid1.AllowGrouping       = true;
            this.sfDataGrid1.ShowGroupDropArea   = true;
            this.sfDataGrid1.AutoGenerateColumns = false;
            this.sfDataGrid1.AutoSizeColumnsMode = AutoSizeColumnsMode.Fill;

            OrderInfoRepository orderInfo = new OrderInfoRepository();
            this.sfDataGrid1.DataSource = orderInfo.GetOrdersDetails(30);
            this.sfDataGrid1.Columns.Add(new GridTextColumn()
            {
                MappingName = "OrderID", HeaderText = "Order ID"
            });
            this.sfDataGrid1.Columns.Add(new GridTextColumn()
            {
                MappingName = "CustomerID", HeaderText = "Customer ID"
            });
            this.sfDataGrid1.Columns.Add(new GridTextColumn()
            {
                MappingName = "ShipCity", HeaderText = "Ship City"
            });
            this.sfDataGrid1.Columns.Add(new GridTextColumn()
            {
                MappingName = "ShipCity", HeaderText = "Ship Country"
            });
            this.sfDataGrid1.Columns.Add(new GridDateTimeColumn()
            {
                MappingName = "ShippingDate", HeaderText = "Shipping Date"
            });
            this.sfDataGrid1.Columns.Add(new GridNumericColumn()
            {
                MappingName = "Freight", HeaderText = "Freight", FormatMode = FormatMode.Currency
            });
            this.sfDataGrid1.Columns.Add(new GridCheckBoxColumn()
            {
                MappingName = "IsClosed", HeaderText = "Is Closed", CheckBoxSize = new Size((int)DpiAware.LogicalToDeviceUnits(14.0f), (int)DpiAware.LogicalToDeviceUnits(14.0f))
            });
            sfDataGrid1.AllowResizingColumns = true;
            #endregion

            #region themComboBox settings
            List <ThemeTypes> theme = new List <ThemeTypes>();
            theme.Add(new ThemeTypes()
            {
                ThemeName = "Office2016Black", Value = 1
            });
            theme.Add(new ThemeTypes()
            {
                ThemeName = "Office2016White", Value = 2
            });
            theme.Add(new ThemeTypes()
            {
                ThemeName = "Office2016DarkGray", Value = 3
            });
            theme.Add(new ThemeTypes()
            {
                ThemeName = "Office2016Colorful", Value = 4
            });
            theme.Add(new ThemeTypes()
            {
                ThemeName = "Office2019Colorful", Value = 5
            });
            theme.Add(new ThemeTypes()
            {
                ThemeName = "HighContrastBlack", Value = 6
            });
            comboBox1.DataSource            = theme;
            comboBox1.DisplayMember         = "ThemeName";
            comboBox1.ValueMember           = "ThemeName";
            comboBox1.SelectedValueChanged += comboBox1_SelectedValueChanged;
            comboBox1.SelectedValue         = "Office2016Colorful";
            #endregion

            this.checkBox1.Style      = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Office2016Colorful;
            checkBox1.CheckedChanged += checkBox1_CheckedChanged;

            #region TableSummaryRow

            GridTableSummaryRow tableSummaryRow1 = new GridTableSummaryRow();
            tableSummaryRow1.Name             = "TableSummary";
            tableSummaryRow1.ShowSummaryInRow = true;
            tableSummaryRow1.Title            = " Total Count: {OrderID}";
            tableSummaryRow1.Position         = VerticalPosition.Bottom;

            GridSummaryColumn summaryColumn1 = new GridSummaryColumn();
            summaryColumn1.Name        = "OrderID";
            summaryColumn1.SummaryType = SummaryType.DoubleAggregate;
            summaryColumn1.Format      = "{Count}";
            summaryColumn1.MappingName = "OrderID";
            tableSummaryRow1.SummaryColumns.Add(summaryColumn1);
            this.sfDataGrid1.TableSummaryRows.Add(tableSummaryRow1);

            #endregion

            #region GroupSummaryRow

            // Creates the GridSummaryRow.
            GridSummaryRow groupSummaryRow1 = new GridSummaryRow();
            groupSummaryRow1.Name             = "GroupSummary";
            groupSummaryRow1.ShowSummaryInRow = false;
            groupSummaryRow1.Title            = "Total  $: { OrderID }";

            // Creates the GridSummaryColumn.
            GridSummaryColumn summaryColumn3 = new GridSummaryColumn();
            summaryColumn3.Name        = "OrderID";
            summaryColumn3.SummaryType = SummaryType.DoubleAggregate;
            summaryColumn3.Format      = "Total : {Sum:c}";
            summaryColumn3.MappingName = "OrderID";

            // Adds the GridSummaryColumn in SummaryColumns collection.
            groupSummaryRow1.SummaryColumns.Add(summaryColumn3);

            // Adds the summary row in the GroupSummaryRows collection.
            this.sfDataGrid1.GroupSummaryRows.Add(groupSummaryRow1);


            #endregion

            #region Relation Creation
            GridViewDefinition viewDefinition = new GridViewDefinition();
            viewDefinition.RelationalColumn = "OrderDetails";
            firstLevelSourceDataGrid        = new SfDataGrid();
            firstLevelSourceDataGrid.Columns.Add(new GridTextColumn()
            {
                MappingName = "OrderID", HeaderText = "Order ID"
            });
            firstLevelSourceDataGrid.Columns.Add(new GridDateTimeColumn()
            {
                MappingName = "OrderDate", HeaderText = "Order Date"
            });
            firstLevelSourceDataGrid.Columns.Add(new GridTextColumn()
            {
                MappingName = "CustomerID", HeaderText = "Customer ID"
            });
            firstLevelSourceDataGrid.Columns.Add(new GridTextColumn()
            {
                MappingName = "CustomerCity", HeaderText = "Customer City"
            });
            firstLevelSourceDataGrid.Columns.Add(new GridNumericColumn()
            {
                MappingName = "ProductID", HeaderText = "Product ID", FormatMode = FormatMode.Numeric
            });
            firstLevelSourceDataGrid.Columns.Add(new GridNumericColumn()
            {
                MappingName = "UnitPrice", HeaderText = "Unit Price", FormatMode = FormatMode.Currency
            });
            firstLevelSourceDataGrid.Columns.Add(new GridNumericColumn()
            {
                MappingName = "Quantity", HeaderText = "Quantity", FormatMode = FormatMode.Numeric
            });
            firstLevelSourceDataGrid.Columns.Add(new GridNumericColumn()
            {
                MappingName = "Discount", HeaderText = "Discount", FormatMode = FormatMode.Percent
            });
            StackedHeaderRow stackedHeaderRow = new StackedHeaderRow();
            stackedHeaderRow.StackedColumns.Add(new StackedColumn()
            {
                ChildColumns = "OrderID,OrderDate", HeaderText = "Order Details"
            });
            stackedHeaderRow.StackedColumns.Add(new StackedColumn()
            {
                ChildColumns = "CustomerID,CustomerCity", HeaderText = "Customer Details"
            });
            stackedHeaderRow.StackedColumns.Add(new StackedColumn()
            {
                ChildColumns = "ProductID,UnitPrice,Quantity,Discount", HeaderText = "Product Details"
            });
            firstLevelSourceDataGrid.AllowResizingColumns = true;
            firstLevelSourceDataGrid.AutoSizeColumnsMode  = AutoSizeColumnsMode.Fill;
            viewDefinition.DataGrid = firstLevelSourceDataGrid;
            this.sfDataGrid1.DetailsViewDefinitions.Add(viewDefinition);
            #endregion

            this.sfDataGrid1.HideEmptyGridViewDefinition = true;
        }
示例#24
0
        public Form1()
        {
            InitializeComponent();

            bulletGraph1 = new BulletGraph();
            InitializeBulletGraph(bulletGraph1);
            bulletGraph1.Minimum            = 0;
            bulletGraph1.Maximum            = 1600;
            bulletGraph1.Interval           = 200;
            bulletGraph1.FeaturedMeasure    = 1400;
            bulletGraph1.ComparativeMeasure = 1072;
            bulletGraph1.Caption            = "CIT Revenue YTD \n      $ (millions) \n \n";
            bulletGraph1.QualitativeRanges.Add(new QualitativeRange {
                RangeCaption = "Bad", RangeEnd = 700, RangeStroke = Color.FromArgb(97, 163, 1)
            });
            bulletGraph1.QualitativeRanges.Add(new QualitativeRange {
                RangeCaption = "Good", RangeEnd = 1250, RangeStroke = Color.FromArgb(252, 218, 33)
            });
            bulletGraph1.QualitativeRanges.Add(new QualitativeRange {
                RangeCaption = "Excellent", RangeEnd = 1600, RangeStroke = Color.FromArgb(214, 30, 64)
            });

            var bulletGraphPanel = new Panel();

            bulletGraphPanel.Dock = DockStyle.Fill;
            bulletGraphPanel.Controls.Add(bulletGraph1);

            var splitter = new Splitter();

            splitter.Dock      = DockStyle.Left;
            splitter.BackColor = Color.FromArgb(205, 205, 205);

            var range1StrokeLabel = new Label();

            range1StrokeLabel.Width     = (int)DpiAware.LogicalToDeviceUnits(250);
            range1StrokeLabel.Height    = (int)DpiAware.LogicalToDeviceUnits(range1StrokeLabel.Height);
            range1StrokeLabel.Margin    = new Padding(20, 30, 0, 0);
            range1StrokeLabel.Text      = "Range1 Stroke";
            range1StrokeLabel.TextAlign = ContentAlignment.MiddleLeft;
            range1StrokeLabel.Font      = new Font("Segoe UI", 12F);

            range1StrokeComboBox = new ComboBox();
            range1StrokeComboBox.DropDownStyle         = ComboBoxStyle.DropDownList;
            range1StrokeComboBox.Width                 = (int)DpiAware.LogicalToDeviceUnits(250);
            range1StrokeComboBox.Margin                = new Padding(25, 20, 0, 0);
            range1StrokeComboBox.SelectedValueChanged += range1StrokeComboBox_SelectedValueChanged;
            range1StrokeComboBox.Font = new Font("Segoe UI", 12F);

            var range2StrokeLabel = new Label();

            range2StrokeLabel.Width     = (int)DpiAware.LogicalToDeviceUnits(250);
            range2StrokeLabel.Height    = (int)DpiAware.LogicalToDeviceUnits(range2StrokeLabel.Height);
            range2StrokeLabel.Margin    = new Padding(20, 30, 0, 0);
            range2StrokeLabel.Text      = "Range2 Stroke";
            range2StrokeLabel.TextAlign = ContentAlignment.MiddleLeft;
            range2StrokeLabel.Font      = new Font("Segoe UI", 12F);

            range2StrokeComboBox = new ComboBox();
            range2StrokeComboBox.DropDownStyle         = ComboBoxStyle.DropDownList;
            range2StrokeComboBox.Width                 = (int)DpiAware.LogicalToDeviceUnits(250);
            range2StrokeComboBox.Margin                = new Padding(25, 20, 0, 0);
            range2StrokeComboBox.SelectedValueChanged += range2StrokeComboBox_SelectedValueChanged;
            range2StrokeComboBox.Font = new Font("Segoe UI", 12F);

            var range3StrokeLabel = new Label();

            range3StrokeLabel.Width     = (int)DpiAware.LogicalToDeviceUnits(250);
            range3StrokeLabel.Height    = (int)DpiAware.LogicalToDeviceUnits(range3StrokeLabel.Height);
            range3StrokeLabel.Margin    = new Padding(20, 30, 0, 0);
            range3StrokeLabel.Text      = "Range3 Stroke";
            range3StrokeLabel.TextAlign = ContentAlignment.MiddleLeft;
            range3StrokeLabel.Font      = new Font("Segoe UI", 12F);

            range3StrokeComboBox = new ComboBox();
            range3StrokeComboBox.DropDownStyle         = ComboBoxStyle.DropDownList;
            range3StrokeComboBox.Width                 = (int)DpiAware.LogicalToDeviceUnits(250);
            range3StrokeComboBox.Margin                = new Padding(25, 20, 0, 0);
            range3StrokeComboBox.SelectedValueChanged += range3StrokeComboBox_SelectedValueChanged;
            range3StrokeComboBox.Font = new Font("Segoe UI", 12F);

            var optionsFlowLayoutPanel = new FlowLayoutPanel();

            optionsFlowLayoutPanel.Width         = (int)DpiAware.LogicalToDeviceUnits(300);
            optionsFlowLayoutPanel.Dock          = DockStyle.Fill;
            optionsFlowLayoutPanel.FlowDirection = FlowDirection.TopDown;
            optionsFlowLayoutPanel.Controls.Add(range1StrokeLabel);
            optionsFlowLayoutPanel.Controls.Add(range1StrokeComboBox);
            optionsFlowLayoutPanel.Controls.Add(range2StrokeLabel);
            optionsFlowLayoutPanel.Controls.Add(range2StrokeComboBox);
            optionsFlowLayoutPanel.Controls.Add(range3StrokeLabel);
            optionsFlowLayoutPanel.Controls.Add(range3StrokeComboBox);

            var optionsPanel = new Panel();

            optionsPanel.Dock  = DockStyle.Right;
            optionsPanel.Width = (int)DpiAware.LogicalToDeviceUnits(300);
            optionsPanel.Controls.Add(splitter);
            optionsPanel.Controls.Add(optionsFlowLayoutPanel);

            Controls.Add(bulletGraphPanel);
            Controls.Add(optionsPanel);
        }
示例#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.gridGroupingControl1 = new Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl();
     ((System.ComponentModel.ISupportInitialize)(this.gridGroupingControl1)).BeginInit();
     this.SuspendLayout();
     //
     // gridGroupingControl1
     //
     this.gridGroupingControl1.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.gridGroupingControl1.BackColor = System.Drawing.SystemColors.Window;
     this.gridGroupingControl1.ChildGroupOptions.ShowAddNewRecordBeforeDetails = false;
     this.gridGroupingControl1.Font                 = new System.Drawing.Font("Verdana", 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(23, 24);
     this.gridGroupingControl1.Name                 = "gridGroupingControl1";
     this.gridGroupingControl1.NestedTableGroupOptions.ShowAddNewRecordBeforeDetails = false;
     this.gridGroupingControl1.Size     = new System.Drawing.Size(962, 628);
     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.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.ShowAddNewRecordBeforeDetails = false;
     this.gridGroupingControl1.VersionInfo = "5.102.0.51";
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1012, 674);
     this.Controls.Add(this.gridGroupingControl1);
     this.MinimumSize = new System.Drawing.Size(615, 355);
     this.Name        = "Form1";
     this.Text        = "Nested Child-Collection";
     ((System.ComponentModel.ISupportInitialize)(this.gridGroupingControl1)).EndInit();
     this.ResumeLayout(false);
 }
示例#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.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);
 }
示例#27
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.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();
     this.textBox1           = new System.Windows.Forms.TextBox();
     this.button1            = new Syncfusion.Windows.Forms.ButtonAdv();
     this.label1             = new System.Windows.Forms.Label();
     this.checkBox1          = new System.Windows.Forms.CheckBox();
     this.label2             = new System.Windows.Forms.Label();
     this.label3             = new System.Windows.Forms.Label();
     this.panel1             = new System.Windows.Forms.Panel();
     this.gridDataBoundGrid1 = new GridDataBoundGridCalculator.CalcGridDataBoundGrid();
     ((System.ComponentModel.ISupportInitialize)(this.gridDataBoundGrid1)).BeginInit();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.textBox1.Location = new System.Drawing.Point(390, 152);
     this.textBox1.Name     = "textBox1";
     this.textBox1.Size     = new System.Drawing.Size(208, 20);
     this.textBox1.TabIndex = 1;
     this.textBox1.Enter   += new System.EventHandler(this.textBox1_Enter);
     //
     // button1
     //
     this.button1.Anchor            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.Appearance        = Syncfusion.Windows.Forms.ButtonAppearance.Metro;
     this.button1.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(165)))), ((int)(((byte)(220)))));
     this.button1.BeforeTouchSize   = new System.Drawing.Size(75, 23);
     this.button1.FlatStyle         = System.Windows.Forms.FlatStyle.Flat;
     this.button1.ForeColor         = System.Drawing.Color.White;
     this.button1.IsBackStageButton = false;
     this.button1.Location          = new System.Drawing.Point(462, 184);
     this.button1.Name           = "button1";
     this.button1.Size           = new System.Drawing.Size(75, 23);
     this.button1.TabIndex       = 2;
     this.button1.Text           = "Compute";
     this.button1.UseVisualStyle = true;
     this.button1.Click         += new System.EventHandler(this.button1_Click);
     //
     // label1
     //
     this.label1.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.BackColor = System.Drawing.Color.WhiteSmoke;
     this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label1.Location  = new System.Drawing.Point(390, 224);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(207, 40);
     this.label1.TabIndex  = 3;
     //
     // checkBox1
     //
     this.checkBox1.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.checkBox1.Location        = new System.Drawing.Point(20, 68);
     this.checkBox1.Name            = "checkBox1";
     this.checkBox1.Size            = new System.Drawing.Size(344, 16);
     this.checkBox1.TabIndex        = 5;
     this.checkBox1.Text            = "Show any formulas in the GridDataBoundGrid.";
     this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // label2
     //
     this.label2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label2.Font      = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location  = new System.Drawing.Point(17, 38);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(472, 16);
     this.label2.TabIndex  = 6;
     this.label2.Text      = "Try entering formulas such as = A4 + B4 into a cell in this GridDataBoundGrid.";
     //
     // label3
     //
     this.label3.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label3.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label3.Font      = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.Location  = new System.Drawing.Point(390, 105);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(288, 39);
     this.label3.TabIndex  = 7;
     this.label3.Text      = "Enter a formula based on GridDataBoundGrid cells like    = A1 + B2 + Cos(B1).    " +
                             "                              Then press Compute. ";
     //
     // gridDataBoundGrid1
     //
     this.gridDataBoundGrid1.DpiAware = true;
     this.gridDataBoundGrid1.ActivateCurrentCellBehavior = Syncfusion.Windows.Forms.Grid.GridCellActivateAction.DblClickOnCell;
     this.gridDataBoundGrid1.AllowDragSelectedCols       = true;
     this.gridDataBoundGrid1.AlphaBlendSelectionColor    = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(94)))), ((int)(((byte)(171)))), ((int)(((byte)(222)))));
     this.gridDataBoundGrid1.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 = "Column Header";
     gridBaseStyle1.StyleInfo.BaseStyle           = "Header";
     gridBaseStyle1.StyleInfo.CellType            = "ColumnHeaderCell";
     gridBaseStyle1.StyleInfo.Enabled             = false;
     gridBaseStyle1.StyleInfo.Font.Bold           = true;
     gridBaseStyle1.StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Center;
     gridBaseStyle2.Name = "Header";
     gridBaseStyle2.StyleInfo.Borders.Bottom    = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle2.StyleInfo.Borders.Left      = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle2.StyleInfo.Borders.Right     = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle2.StyleInfo.Borders.Top       = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle2.StyleInfo.CellType          = "Header";
     gridBaseStyle2.StyleInfo.Font.Bold         = true;
     gridBaseStyle2.StyleInfo.Interior          = new Syncfusion.Drawing.BrushInfo(System.Drawing.SystemColors.Control);
     gridBaseStyle2.StyleInfo.VerticalAlignment = Syncfusion.Windows.Forms.Grid.GridVerticalAlignment.Middle;
     gridBaseStyle3.Name = "Standard";
     gridBaseStyle3.StyleInfo.CheckBoxOptions.CheckedValue   = "True";
     gridBaseStyle3.StyleInfo.CheckBoxOptions.UncheckedValue = "False";
     gridBaseStyle3.StyleInfo.Interior = new Syncfusion.Drawing.BrushInfo(System.Drawing.SystemColors.Window);
     gridBaseStyle4.Name = "Row Header";
     gridBaseStyle4.StyleInfo.BaseStyle           = "Header";
     gridBaseStyle4.StyleInfo.CellType            = "RowHeaderCell";
     gridBaseStyle4.StyleInfo.Enabled             = true;
     gridBaseStyle4.StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Left;
     this.gridDataBoundGrid1.BaseStylesMap.AddRange(new Syncfusion.Windows.Forms.Grid.GridBaseStyle[] {
         gridBaseStyle1,
         gridBaseStyle2,
         gridBaseStyle3,
         gridBaseStyle4
     });
     this.gridDataBoundGrid1.BorderStyle          = System.Windows.Forms.BorderStyle.FixedSingle;
     this.gridDataBoundGrid1.DataMember           = "";
     this.gridDataBoundGrid1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     this.gridDataBoundGrid1.GridVisualStyles     = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.gridDataBoundGrid1.DefaultRowHeight     = (int)DpiAware.LogicalToDeviceUnits(20.0f);
     this.gridDataBoundGrid1.Location             = new System.Drawing.Point(24, 126);
     this.gridDataBoundGrid1.MetroScrollBars      = true;
     this.gridDataBoundGrid1.Name = "gridDataBoundGrid1";
     this.gridDataBoundGrid1.Properties.ForceImmediateRepaint = false;
     this.gridDataBoundGrid1.Properties.GridLineColor         = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234)))));
     this.gridDataBoundGrid1.Properties.MarkColHeader         = false;
     this.gridDataBoundGrid1.Properties.MarkRowHeader         = false;
     this.gridDataBoundGrid1.ShowCurrentCellBorderBehavior    = Syncfusion.Windows.Forms.Grid.GridShowCurrentCellBorder.GrayWhenLostFocus;
     this.gridDataBoundGrid1.Size          = new System.Drawing.Size(358, 144);
     this.gridDataBoundGrid1.SmartSizeBox  = false;
     this.gridDataBoundGrid1.SortBehavior  = Syncfusion.Windows.Forms.Grid.GridSortBehavior.None;
     this.gridDataBoundGrid1.TabIndex      = 0;
     this.gridDataBoundGrid1.ThemesEnabled = true;
     //
     // panel1
     //
     this.panel1.Dock     = DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Size     = new System.Drawing.Size(690, 305);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.checkBox1);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.button1);
     this.panel1.Controls.Add(this.textBox1);
     this.panel1.Controls.Add(this.gridDataBoundGrid1);
     //
     // SingleGridDataBoundGridForm
     //
     this.AcceptButton        = this.button1;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(696, 310);
     this.Controls.Add(this.panel1);
     this.MinimumSize = new System.Drawing.Size(650, 300);
     this.Name        = "SingleGridDataBoundGridForm";
     this.Text        = "Grid-Data-Bound-Grid Calculator ";
     this.Load       += new System.EventHandler(this.SinglegridDataBoundGridForm_Load);
     ((System.ComponentModel.ISupportInitialize)(this.gridDataBoundGrid1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#28
0
        private void button1_Click(object sender, System.EventArgs e)
        {
            try
            {
                //Getting Image files path.
                string dataPath = Application.StartupPath + @"..\..\..\..\..\..\..\common\images\DocIO\";

                //A new document is created.
                WordDocument document = new WordDocument();
                //Adding a new section to the document.
                WSection section = document.AddSection() as WSection;
                //Set Margin of the section
                section.PageSetup.Margins.All = 72;
                //Set page size of the section
                section.PageSetup.PageSize = new SizeF(612, 792);
                //Create Paragraph styles
                WParagraphStyle style = document.AddParagraphStyle("Normal") as WParagraphStyle;
                style.CharacterFormat.FontName      = "Calibri";
                style.CharacterFormat.FontSize      = 11f;
                style.ParagraphFormat.BeforeSpacing = 0;
                style.ParagraphFormat.AfterSpacing  = 8;
                style.ParagraphFormat.LineSpacing   = 13.8f;

                style = document.AddParagraphStyle("Heading 1") as WParagraphStyle;
                style.ApplyBaseStyle("Normal");
                style.CharacterFormat.FontName      = "Calibri Light";
                style.CharacterFormat.FontSize      = 16f;
                style.CharacterFormat.TextColor     = Color.FromArgb(46, 116, 181);
                style.ParagraphFormat.BeforeSpacing = 12;
                style.ParagraphFormat.AfterSpacing  = 0;
                style.ParagraphFormat.Keep          = true;
                style.ParagraphFormat.KeepFollow    = true;
                style.ParagraphFormat.OutlineLevel  = OutlineLevel.Level1;
                IWParagraph paragraph = section.HeadersFooters.Header.AddParagraph();

                WPicture picture = paragraph.AppendPicture(Image.FromFile(dataPath + "AdventureCycle.jpg")) as WPicture;
                picture.TextWrappingStyle  = TextWrappingStyle.InFrontOfText;
                picture.VerticalOrigin     = VerticalOrigin.Margin;
                picture.VerticalPosition   = -45;
                picture.HorizontalOrigin   = HorizontalOrigin.Column;
                picture.HorizontalPosition = 263.5f;
                picture.WidthScale         = 20;
                picture.HeightScale        = 15;

                paragraph.ApplyStyle("Normal");
                paragraph.ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Left;
                WTextRange textRange = paragraph.AppendText("Adventure Works Cycles") as WTextRange;
                textRange.CharacterFormat.FontSize  = 12f;
                textRange.CharacterFormat.FontName  = "Calibri";
                textRange.CharacterFormat.TextColor = Color.Red;

                //Appends paragraph.
                paragraph = section.AddParagraph();
                paragraph.ApplyStyle("Heading 1");
                paragraph.ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Center;
                textRange = paragraph.AppendText("Adventure Works Cycles") as WTextRange;
                textRange.CharacterFormat.FontSize = 18f;
                textRange.CharacterFormat.FontName = "Calibri";


                //Appends paragraph.
                paragraph = section.AddParagraph();
                paragraph.ParagraphFormat.FirstLineIndent = 36;
                paragraph.BreakCharacterFormat.FontSize   = 12f;
                textRange = paragraph.AppendText("Adventure Works Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company. The company manufactures and sells metal and composite bicycles to North American, European and Asian commercial markets. While its base operation is located in Bothell, Washington with 290 employees, several regional sales teams are located throughout their market base.") as WTextRange;
                textRange.CharacterFormat.FontSize = 12f;

                paragraph = section.AddParagraph();
                paragraph.ParagraphFormat.FirstLineIndent = 36;
                paragraph.BreakCharacterFormat.FontSize   = 12f;
                textRange = paragraph.AppendText("In 2000, Adventure Works Cycles bought a small manufacturing plant, Importadores Neptuno, located in Mexico. Importadores Neptuno manufactures several critical subcomponents for the Adventure Works Cycles product line. These subcomponents are shipped to the Bothell location for final product assembly. In 2001, Importadores Neptuno, became the sole manufacturer and distributor of the touring bicycle product group.") as WTextRange;
                textRange.CharacterFormat.FontSize = 12f;

                paragraph = section.AddParagraph();
                paragraph.ApplyStyle("Heading 1");
                paragraph.ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Left;
                textRange = paragraph.AppendText("Product Overview") as WTextRange;
                textRange.CharacterFormat.FontSize = 16f;
                textRange.CharacterFormat.FontName = "Calibri";


                //Appends table.
                IWTable table = section.AddTable();
                table.ResetCells(3, 2);
                table.TableFormat.Borders.BorderType = Syncfusion.DocIO.DLS.BorderStyle.None;
                table.TableFormat.IsAutoResized      = true;

                //Appends paragraph.
                paragraph = table[0, 0].AddParagraph();
                paragraph.ParagraphFormat.AfterSpacing  = 0;
                paragraph.BreakCharacterFormat.FontSize = 12f;
                //Appends picture to the paragraph.
                picture = paragraph.AppendPicture(Image.FromFile(dataPath + "Mountain-200.jpg")) as WPicture;
                picture.TextWrappingStyle  = TextWrappingStyle.TopAndBottom;
                picture.VerticalOrigin     = VerticalOrigin.Paragraph;
                picture.VerticalPosition   = 4.5f;
                picture.HorizontalOrigin   = HorizontalOrigin.Column;
                picture.HorizontalPosition = -2.15f;
                picture.WidthScale         = DpiAware.LogicalToDeviceUnits(79);
                picture.HeightScale        = DpiAware.LogicalToDeviceUnits(79);

                //Appends paragraph.
                paragraph = table[0, 1].AddParagraph();
                paragraph.ApplyStyle("Heading 1");
                paragraph.ParagraphFormat.AfterSpacing = 0;
                paragraph.ParagraphFormat.LineSpacing  = 12f;
                paragraph.AppendText("Mountain-200");
                //Appends paragraph.
                paragraph = table[0, 1].AddParagraph();
                paragraph.ParagraphFormat.AfterSpacing  = 0;
                paragraph.ParagraphFormat.LineSpacing   = 12f;
                paragraph.BreakCharacterFormat.FontSize = 12f;
                paragraph.BreakCharacterFormat.FontName = "Times New Roman";

                textRange = paragraph.AppendText("Product No: BK-M68B-38\r") as WTextRange;
                textRange.CharacterFormat.FontSize = 12f;
                textRange.CharacterFormat.FontName = "Times New Roman";
                textRange = paragraph.AppendText("Size: 38\r") as WTextRange;
                textRange.CharacterFormat.FontSize = 12f;
                textRange.CharacterFormat.FontName = "Times New Roman";
                textRange = paragraph.AppendText("Weight: 25\r") as WTextRange;
                textRange.CharacterFormat.FontSize = 12f;
                textRange.CharacterFormat.FontName = "Times New Roman";
                textRange = paragraph.AppendText("Price: $2,294.99\r") as WTextRange;
                textRange.CharacterFormat.FontSize = 12f;
                textRange.CharacterFormat.FontName = "Times New Roman";

                //Appends paragraph.
                paragraph = table[0, 1].AddParagraph();
                paragraph.ParagraphFormat.AfterSpacing  = 0;
                paragraph.ParagraphFormat.LineSpacing   = 12f;
                paragraph.BreakCharacterFormat.FontSize = 12f;

                //Appends paragraph.
                paragraph = table[1, 0].AddParagraph();
                paragraph.ApplyStyle("Heading 1");
                paragraph.ParagraphFormat.AfterSpacing = 0;
                paragraph.ParagraphFormat.LineSpacing  = 12f;
                paragraph.AppendText("Mountain-300 ");
                //Appends paragraph.
                paragraph = table[1, 0].AddParagraph();
                paragraph.ParagraphFormat.AfterSpacing  = 0;
                paragraph.ParagraphFormat.LineSpacing   = 12f;
                paragraph.BreakCharacterFormat.FontSize = 12f;
                paragraph.BreakCharacterFormat.FontName = "Times New Roman";
                textRange = paragraph.AppendText("Product No: BK-M47B-38\r") as WTextRange;
                textRange.CharacterFormat.FontSize = 12f;
                textRange.CharacterFormat.FontName = "Times New Roman";
                textRange = paragraph.AppendText("Size: 35\r") as WTextRange;
                textRange.CharacterFormat.FontSize = 12f;
                textRange.CharacterFormat.FontName = "Times New Roman";
                textRange = paragraph.AppendText("Weight: 22\r") as WTextRange;
                textRange.CharacterFormat.FontSize = 12f;
                textRange.CharacterFormat.FontName = "Times New Roman";
                textRange = paragraph.AppendText("Price: $1,079.99\r") as WTextRange;
                textRange.CharacterFormat.FontSize = 12f;
                textRange.CharacterFormat.FontName = "Times New Roman";

                //Appends paragraph.
                paragraph = table[1, 0].AddParagraph();
                paragraph.ParagraphFormat.AfterSpacing  = 0;
                paragraph.ParagraphFormat.LineSpacing   = 12f;
                paragraph.BreakCharacterFormat.FontSize = 12f;

                //Appends paragraph.
                paragraph = table[1, 1].AddParagraph();
                paragraph.ApplyStyle("Heading 1");
                paragraph.ParagraphFormat.LineSpacing = 12f;
                //Appends picture to the paragraph.
                picture = paragraph.AppendPicture(Image.FromFile(dataPath + "Mountain-300.jpg")) as WPicture;
                picture.TextWrappingStyle  = TextWrappingStyle.TopAndBottom;
                picture.VerticalOrigin     = VerticalOrigin.Paragraph;
                picture.VerticalPosition   = 8.2f;
                picture.HorizontalOrigin   = HorizontalOrigin.Column;
                picture.HorizontalPosition = -14.95f;
                picture.WidthScale         = DpiAware.LogicalToDeviceUnits(75);
                picture.HeightScale        = DpiAware.LogicalToDeviceUnits(75);

                //Appends paragraph.
                paragraph = table[2, 0].AddParagraph();
                paragraph.ApplyStyle("Heading 1");
                paragraph.ParagraphFormat.LineSpacing = 12f;
                //Appends picture to the paragraph.
                picture = paragraph.AppendPicture(Image.FromFile(dataPath + "Road-550-W.jpg")) as WPicture;
                picture.TextWrappingStyle  = TextWrappingStyle.TopAndBottom;
                picture.VerticalOrigin     = VerticalOrigin.Paragraph;
                picture.VerticalPosition   = 3.75f;
                picture.HorizontalOrigin   = HorizontalOrigin.Column;
                picture.HorizontalPosition = -5f;
                picture.WidthScale         = DpiAware.LogicalToDeviceUnits(92);
                picture.HeightScale        = DpiAware.LogicalToDeviceUnits(92);

                //Appends paragraph.
                paragraph = table[2, 1].AddParagraph();
                paragraph.ApplyStyle("Heading 1");
                paragraph.ParagraphFormat.AfterSpacing = 0;
                paragraph.ParagraphFormat.LineSpacing  = 12f;
                paragraph.AppendText("Road-150 ");
                //Appends paragraph.
                paragraph = table[2, 1].AddParagraph();
                paragraph.ParagraphFormat.AfterSpacing  = 0;
                paragraph.ParagraphFormat.LineSpacing   = 12f;
                paragraph.BreakCharacterFormat.FontSize = 12f;
                paragraph.BreakCharacterFormat.FontName = "Times New Roman";
                textRange = paragraph.AppendText("Product No: BK-R93R-44\r") as WTextRange;
                textRange.CharacterFormat.FontSize = 12f;
                textRange.CharacterFormat.FontName = "Times New Roman";
                textRange = paragraph.AppendText("Size: 44\r") as WTextRange;
                textRange.CharacterFormat.FontSize = 12f;
                textRange.CharacterFormat.FontName = "Times New Roman";
                textRange = paragraph.AppendText("Weight: 14\r") as WTextRange;
                textRange.CharacterFormat.FontSize = 12f;
                textRange.CharacterFormat.FontName = "Times New Roman";
                textRange = paragraph.AppendText("Price: $3,578.27\r") as WTextRange;
                textRange.CharacterFormat.FontSize = 12f;
                textRange.CharacterFormat.FontName = "Times New Roman";
                //Appends paragraph.

                section.AddParagraph();
                //Save as doc format
                if (wordDocRadioBtn.Checked)
                {
                    //Saving the document to disk.
                    document.Save("Sample.doc");

                    //Message box confirmation to view the created document.
                    if (MessageBoxAdv.Show("Do you want to view the generated Word document?", "Document has been created", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
                    {
                        //Launching the MS Word file using the default Application.[MS Word Or Free WordViewer]
#if NETCORE
                        System.Diagnostics.Process process = new System.Diagnostics.Process();
                        process.StartInfo = new System.Diagnostics.ProcessStartInfo("Sample.doc")
                        {
                            UseShellExecute = true
                        };
                        process.Start();
#else
                        System.Diagnostics.Process.Start("Sample.doc");
#endif
                        //Exit
                        this.Close();
                    }
                }
                //Save as docx format
                else if (wordDocxRadioBtn.Checked)
                {
                    //Saving the document as .docx
                    document.Save("Sample.docx", FormatType.Docx);
                    //Message box confirmation to view the created document.
                    if (MessageBoxAdv.Show("Do you want to view the generated Word document?", "Document has been created", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
                    {
                        try
                        {
                            //Launching the MS Word file using the default Application.[MS Word Or Free WordViewer]
#if NETCORE
                            System.Diagnostics.Process process = new System.Diagnostics.Process();
                            process.StartInfo = new System.Diagnostics.ProcessStartInfo("Sample.docx")
                            {
                                UseShellExecute = true
                            };
                            process.Start();
#else
                            System.Diagnostics.Process.Start("Sample.docx");
#endif
                            //Exit
                            this.Close();
                        }
                        catch (Win32Exception ex)
                        {
                            MessageBoxAdv.Show("Microsoft Word Viewer or Microsoft Word is not installed in this system");
                            Console.WriteLine(ex.ToString());
                        }
                    }
                }
                //Save as pdf format
                else if (pdfRadioBtn.Checked)
                {
                    DocToPDFConverter converter = new DocToPDFConverter();
                    //Convert word document into PDF document
                    PdfDocument pdfDoc = converter.ConvertToPDF(document);
                    //Save the pdf file
                    pdfDoc.Save("Sample.pdf");
                    //Message box confirmation to view the created document.
                    if (MessageBoxAdv.Show("Do you want to view the generated PDF?", " Document has been created", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
                    {
                        try
                        {
#if NETCORE
                            System.Diagnostics.Process process = new System.Diagnostics.Process();
                            process.StartInfo = new System.Diagnostics.ProcessStartInfo("Sample.pdf")
                            {
                                UseShellExecute = true
                            };
                            process.Start();
#else
                            System.Diagnostics.Process.Start("Sample.pdf");
#endif

                            //Exit
                            this.Close();
                        }
                        catch (Exception ex)
                        {
                            MessageBoxAdv.Show("PDF Viewer is not installed in this system");
                            Console.WriteLine(ex.ToString());
                        }
                    }
                }
                else
                {
                    // Exit
                    this.Close();
                }
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex.Message);
            }
        }
示例#29
0
        /// <summary>
        /// GridGrouping control Grouping Events customization.
        /// </summary>
        private void GridSettings()
        {
            String commandstring1 = "select * from Employees";
            String commandstring2 = "select * from Orders";

            SqlCeDataAdapter da1 = new SqlCeDataAdapter(commandstring1, connString);
            SqlCeDataAdapter da2 = new SqlCeDataAdapter(commandstring2, connString);

            try
            {
                da1.Fill(dataset11, "Employees");
                da2.Fill(dataset11, "Orders");
            }
            catch (SqlException ex)
            {
                ShowErrorMessage(ex);
            }

            //Setting Grid properties
            this.gridGroupingControl1.TableControl.DpiAware = true;
            this.gridGroupingControl1.TopLevelGroupOptions.ShowAddNewRecordBeforeDetails    = false;
            this.gridGroupingControl1.NestedTableGroupOptions.ShowAddNewRecordBeforeDetails = false;
            this.gridGroupingControl1.TableOptions.GridLineBorder = new GridBorder(GridBorderStyle.Solid, System.Drawing.Color.FromArgb(208, 215, 229), GridBorderWeight.Thin);
            this.BackColor = Color.White;
            this.gridGroupingControl1.GridVisualStyles     = GridVisualStyles.Metro;
            this.gridGroupingControl1.GridOfficeScrollBars = OfficeScrollBars.Metro;
            FieldChooser fc = new FieldChooser(this.gridGroupingControl1);

            //used to set multiextended selection mode in gridgrouping control.
            this.gridGroupingControl1.TableOptions.ListBoxSelectionMode  = SelectionMode.MultiExtended;
            this.gridGroupingControl1.Table.DefaultColumnHeaderRowHeight = (int)DpiAware.LogicalToDeviceUnits(30.0f);
            //this.gridGroupingControl1.Table.DefaultRecordRowHeight = (int)DpiAware.LogicalToDeviceUnits(22.0f);
            this.gridGroupingControl1.Table.DefaultRecordRowHeight = this.gridGroupingControl1.GetTable("Orders").DefaultRecordRowHeight = (int)DpiAware.LogicalToDeviceUnits(22.0f);

            //Navigate to other control using tabkey navigation
            this.gridGroupingControl1.WantTabKey = false;
        }
示例#30
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.selectionCombo       = new Syncfusion.WinForms.ListView.SfComboBox();
     this.label1               = new System.Windows.Forms.Label();
     this.label2               = new System.Windows.Forms.Label();
     this.chkBoxSelectionCombo = new Syncfusion.WinForms.ListView.SfComboBox();
     this.panel2               = new System.Windows.Forms.Panel();
     this.sfListView1          = new Syncfusion.WinForms.ListView.SfListView();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.selectionCombo)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.chkBoxSelectionCombo)).BeginInit();
     this.panel2.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.selectionCombo);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.chkBoxSelectionCombo);
     this.groupBox1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.groupBox1.Location = new System.Drawing.Point(542, 25);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(336, 116);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Options";
     //
     // selectionCombo
     //
     this.selectionCombo.DropDownStyle                  = Syncfusion.WinForms.ListView.Enums.DropDownStyle.DropDownList;
     this.selectionCombo.Font                           = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.selectionCombo.Location                       = new System.Drawing.Point(152, 65);
     this.selectionCombo.Name                           = "selectionCombo";
     this.selectionCombo.Size                           = new System.Drawing.Size(162, 29);
     this.selectionCombo.Style.EditorStyle.Font         = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.selectionCombo.Style.ReadOnlyEditorStyle.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.selectionCombo.TabIndex                       = 8;
     this.selectionCombo.SelectedValueChanged          += new System.EventHandler(this.selectionCombo_SelectedValueChanged);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(15, 73);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(102, 16);
     this.label1.TabIndex = 7;
     this.label1.Text     = "Selection mode";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location = new System.Drawing.Point(15, 33);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(125, 16);
     this.label2.TabIndex = 6;
     this.label2.Text     = "Checkbox selection";
     //
     // chkBoxSelectionCombo
     //
     this.chkBoxSelectionCombo.DropDownStyle                  = Syncfusion.WinForms.ListView.Enums.DropDownStyle.DropDownList;
     this.chkBoxSelectionCombo.Font                           = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.chkBoxSelectionCombo.Location                       = new System.Drawing.Point(152, 26);
     this.chkBoxSelectionCombo.Name                           = "chkBoxSelectionCombo";
     this.chkBoxSelectionCombo.Size                           = new System.Drawing.Size(162, 29);
     this.chkBoxSelectionCombo.Style.EditorStyle.Font         = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.chkBoxSelectionCombo.Style.ReadOnlyEditorStyle.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.chkBoxSelectionCombo.TabIndex                       = 4;
     this.chkBoxSelectionCombo.SelectedValueChanged          += new System.EventHandler(this.chkBoxSelectionCombo_SelectedValueChanged);
     //
     // panel2
     //
     this.panel2.Controls.Add(this.sfListView1);
     this.panel2.Location = new System.Drawing.Point(23, 24);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(498, 529);
     this.panel2.TabIndex = 2;
     //
     // sfListView1
     //
     this.sfListView1.AccessibleName = "ScrollControl";
     this.sfListView1.Dock           = System.Windows.Forms.DockStyle.Fill;
     this.sfListView1.Location       = new System.Drawing.Point(0, 0);
     this.sfListView1.Name           = "sfListView1";
     this.sfListView1.Size           = new System.Drawing.Size(498, 529);
     this.sfListView1.TabIndex       = 0;
     this.sfListView1.Text           = "sfListView1";
     this.sfListView1.ItemHeight     = (int)DpiAware.LogicalToDeviceUnits(21.0f);
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(912, 576);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox     = false;
     this.Name            = "Form1";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "CheckBox";
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.selectionCombo)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chkBoxSelectionCombo)).EndInit();
     this.panel2.ResumeLayout(false);
     this.ResumeLayout(false);
 }