Esempio n. 1
0
 public MainForm(Form1 form)
 {
     this.form             = form;
     this.gridControl1     = form.gridControl1;
     this.splitterControl1 = form.splitterControl1;
     this.dataSet11        = form.dataSet11;
     InitializeForm();
 }
Esempio n. 2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle1 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();
     Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle2 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();
     Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle3 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();
     Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle4 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();
     Syncfusion.Windows.Forms.Grid.GridCellInfo  gridCellInfo1  = new Syncfusion.Windows.Forms.Grid.GridCellInfo();
     Syncfusion.Windows.Forms.Grid.GridCellInfo  gridCellInfo2  = new Syncfusion.Windows.Forms.Grid.GridCellInfo();
     this.gridControl1              = new Syncfusion.Windows.Forms.Grid.GridControl();
     this.propertyGrid1             = new System.Windows.Forms.PropertyGrid();
     this.splitterControl1          = new Syncfusion.Windows.Forms.SplitterControl();
     this.CheckBoxMouseEnable       = new System.Windows.Forms.CheckBox();
     this.CheckBoxCurrentCellEnable = new System.Windows.Forms.CheckBox();
     this.contextMenu1              = new System.Windows.Forms.ContextMenu();
     this.menuItem1          = new System.Windows.Forms.MenuItem();
     this.panel1             = new System.Windows.Forms.Panel();
     this.panel2             = new System.Windows.Forms.Panel();
     this.groupBox1          = new System.Windows.Forms.GroupBox();
     this.button1            = new Syncfusion.Windows.Forms.ButtonAdv();
     this.CheckBoxGridEnable = new System.Windows.Forms.CheckBox();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
     this.splitterControl1.SuspendLayout();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // gridControl1
     //
     this.gridControl1.AlphaBlendSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(94)))), ((int)(((byte)(171)))), ((int)(((byte)(222)))));
     this.gridControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                       | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     gridBaseStyle1.Name = "Header";
     gridBaseStyle1.StyleInfo.Borders.Bottom    = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle1.StyleInfo.Borders.Left      = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle1.StyleInfo.Borders.Right     = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle1.StyleInfo.Borders.Top       = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);
     gridBaseStyle1.StyleInfo.CellType          = "Header";
     gridBaseStyle1.StyleInfo.Font.Bold         = true;
     gridBaseStyle1.StyleInfo.Interior          = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Vertical, System.Drawing.Color.FromArgb(((int)(((byte)(203)))), ((int)(((byte)(199)))), ((int)(((byte)(184))))), System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(234)))), ((int)(((byte)(216))))));
     gridBaseStyle1.StyleInfo.VerticalAlignment = Syncfusion.Windows.Forms.Grid.GridVerticalAlignment.Middle;
     gridBaseStyle2.Name = "Standard";
     gridBaseStyle2.StyleInfo.Font.Facename = "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.ColCount = 12;
     this.gridControl1.ColWidthEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridColWidth[] {
         new Syncfusion.Windows.Forms.Grid.GridColWidth(0, 35)
     });
     this.gridControl1.DefaultColWidth        = 110;
     this.gridControl1.DefaultGridBorderStyle = Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid;
     this.gridControl1.DefaultRowHeight       = 20;
     this.gridControl1.FillSplitterPane       = true;
     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.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;
     gridCellInfo2.Col                      = -1;
     gridCellInfo2.Row                      = -1;
     gridCellInfo2.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);
     gridCellInfo2.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);
     gridCellInfo2.StyleInfo.Font.Bold      = false;
     gridCellInfo2.StyleInfo.Font.Facename  = "Segoe UI";
     gridCellInfo2.StyleInfo.Font.Italic    = false;
     gridCellInfo2.StyleInfo.Font.Size      = 8.5F;
     gridCellInfo2.StyleInfo.Font.Strikeout = false;
     gridCellInfo2.StyleInfo.Font.Underline = false;
     gridCellInfo2.StyleInfo.Font.Unit      = System.Drawing.GraphicsUnit.Point;
     gridCellInfo2.StyleInfo.Interior       = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.White);
     gridCellInfo2.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,
         gridCellInfo2
     });
     this.gridControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     this.gridControl1.GridVisualStyles     = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.gridControl1.HorizontalThumbTrack = true;
     this.gridControl1.Location             = new System.Drawing.Point(0, 0);
     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.ForceImmediateRepaint = false;
     this.gridControl1.Properties.GridLineColor         = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
     this.gridControl1.Properties.MarkColHeader         = false;
     this.gridControl1.Properties.MarkRowHeader         = false;
     this.gridControl1.RightToLeft = System.Windows.Forms.RightToLeft.No;
     this.gridControl1.RowCount    = 120;
     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(679, 278);
     this.gridControl1.SmartSizeBox       = false;
     this.gridControl1.ThemesEnabled      = true;
     this.gridControl1.VerticalThumbTrack = true;
     this.gridControl1.SelectionChanged  += new Syncfusion.Windows.Forms.Grid.GridSelectionChangedEventHandler(this.grid_SelectionChanged);
     this.gridControl1.CurrentCellMoved  += new Syncfusion.Windows.Forms.Grid.GridCurrentCellMovedEventHandler(this.grid_CurrentCellMoved);
     //
     // propertyGrid1
     //
     this.propertyGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.propertyGrid1.BackColor     = System.Drawing.Color.White;
     this.propertyGrid1.HelpBackColor = System.Drawing.Color.White;
     this.propertyGrid1.LineColor     = System.Drawing.Color.White;
     this.propertyGrid1.Location      = new System.Drawing.Point(748, 12);
     this.propertyGrid1.Name          = "propertyGrid1";
     this.propertyGrid1.Size          = new System.Drawing.Size(250, 297);
     this.propertyGrid1.TabIndex      = 3;
     //
     // splitterControl1
     //
     this.splitterControl1.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.splitterControl1.BackColor       = System.Drawing.Color.White;
     this.splitterControl1.BeforeTouchSize = new System.Drawing.Size(698, 297);
     this.splitterControl1.BorderStyle     = System.Windows.Forms.BorderStyle.FixedSingle;
     this.splitterControl1.Controls.Add(this.gridControl1);
     this.splitterControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     this.splitterControl1.Location             = new System.Drawing.Point(26, 12);
     this.splitterControl1.Name          = "splitterControl1";
     this.splitterControl1.Size          = new System.Drawing.Size(698, 297);
     this.splitterControl1.SizeFactor    = 0D;
     this.splitterControl1.SplitBars     = ((Syncfusion.Windows.Forms.DynamicSplitBars)((Syncfusion.Windows.Forms.DynamicSplitBars.SplitRows | Syncfusion.Windows.Forms.DynamicSplitBars.SplitColumns)));
     this.splitterControl1.TabIndex      = 1;
     this.splitterControl1.ThemesEnabled = true;
     this.splitterControl1.PaneCreated  += new Syncfusion.Windows.Forms.SplitterPaneEventHandler(this.splitterControl1_PaneCreated);
     this.splitterControl1.PaneClosing  += new Syncfusion.Windows.Forms.SplitterPaneEventHandler(this.splitterControl1_PaneClosing);
     //
     // CheckBoxMouseEnable
     //
     this.CheckBoxMouseEnable.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.CheckBoxMouseEnable.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.CheckBoxMouseEnable.Font            = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.CheckBoxMouseEnable.ForeColor       = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
     this.CheckBoxMouseEnable.Location        = new System.Drawing.Point(43, 58);
     this.CheckBoxMouseEnable.Name            = "CheckBoxMouseEnable";
     this.CheckBoxMouseEnable.Size            = new System.Drawing.Size(182, 26);
     this.CheckBoxMouseEnable.TabIndex        = 5;
     this.CheckBoxMouseEnable.Text            = "Enable Mouse Events.";
     this.CheckBoxMouseEnable.CheckedChanged += new System.EventHandler(this.checkBoxMouseMessage_CheckedChanged);
     //
     // CheckBoxCurrentCellEnable
     //
     this.CheckBoxCurrentCellEnable.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.CheckBoxCurrentCellEnable.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.CheckBoxCurrentCellEnable.Font            = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.CheckBoxCurrentCellEnable.ForeColor       = System.Drawing.Color.Black;
     this.CheckBoxCurrentCellEnable.Location        = new System.Drawing.Point(43, 31);
     this.CheckBoxCurrentCellEnable.Name            = "CheckBoxCurrentCellEnable";
     this.CheckBoxCurrentCellEnable.Size            = new System.Drawing.Size(182, 21);
     this.CheckBoxCurrentCellEnable.TabIndex        = 4;
     this.CheckBoxCurrentCellEnable.Text            = "Enable CurrentCell Events.";
     this.CheckBoxCurrentCellEnable.CheckedChanged += new System.EventHandler(this.checkBoxEnableTracing_CheckedChanged);
     //
     // contextMenu1
     //
     this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1
     });
     //
     // menuItem1
     //
     this.menuItem1.Index  = 0;
     this.menuItem1.Text   = "&Clear Window";
     this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
     //
     // panel1
     //
     this.panel1.Controls.Add(this.splitterControl1);
     this.panel1.Controls.Add(this.propertyGrid1);
     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(1020, 315);
     this.panel1.TabIndex = 0;
     //
     // panel2
     //
     this.panel2.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.panel2.Controls.Add(this.groupBox1);
     this.panel2.Location = new System.Drawing.Point(0, 315);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(1020, 181);
     this.panel2.TabIndex = 9;
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.button1);
     this.groupBox1.Controls.Add(this.CheckBoxGridEnable);
     this.groupBox1.Controls.Add(this.CheckBoxCurrentCellEnable);
     this.groupBox1.Controls.Add(this.CheckBoxMouseEnable);
     this.groupBox1.Location = new System.Drawing.Point(748, 6);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(250, 172);
     this.groupBox1.TabIndex = 11;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Event Trace Options";
     //
     // 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(182, 28);
     this.button1.BorderStyleAdv    = Syncfusion.Windows.Forms.ButtonAdvBorderStyle.RaisedInner;
     this.button1.FlatStyle         = System.Windows.Forms.FlatStyle.Flat;
     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(42, 122);
     this.button1.Name              = "button1";
     this.button1.Size              = new System.Drawing.Size(182, 28);
     this.button1.TabIndex          = 10;
     this.button1.Text              = "Clear Tracer";
     this.button1.Click            += new System.EventHandler(this.button1_Click);
     //
     // CheckBoxGridEnable
     //
     this.CheckBoxGridEnable.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.CheckBoxGridEnable.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.CheckBoxGridEnable.Font            = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.CheckBoxGridEnable.ForeColor       = System.Drawing.Color.Black;
     this.CheckBoxGridEnable.Location        = new System.Drawing.Point(43, 90);
     this.CheckBoxGridEnable.Name            = "CheckBoxGridEnable";
     this.CheckBoxGridEnable.Size            = new System.Drawing.Size(182, 21);
     this.CheckBoxGridEnable.TabIndex        = 9;
     this.CheckBoxGridEnable.Text            = "Enable Grid Events.";
     this.CheckBoxGridEnable.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.ClientSize          = new System.Drawing.Size(1020, 496);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.MinimumSize = new System.Drawing.Size(800, 535);
     this.Name        = "Form1";
     this.Text        = "Grid Control Event Logger";
     this.Load       += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     this.splitterControl1.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }