public DebugVariablesListWindowForm(Form1 MainForm) : base(MainForm) { InitializeComponent(); localVarsWindow = this; this.WColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.WColumn1 = new AdvancedDataGridView.TreeGridColumn(); this.WColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.WColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.WColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.watchList.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.watchList.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders; this.watchList.BackgroundColor = System.Drawing.Color.White; this.watchList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.watchList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.WColumn1, this.WColumn3, this.WColumn2 }); this.watchList.Dock = System.Windows.Forms.DockStyle.Fill; this.watchList.GridColor = System.Drawing.SystemColors.Control; this.watchList.Location = new System.Drawing.Point(1, 1); this.watchList.MultiSelect = false; this.watchList.Font = new Font("Tahoma", 8); this.watchList.BorderStyle = BorderStyle.None; this.watchList.ReadOnly = true; this.watchList.RowHeadersVisible = false; this.watchList.RowTemplate.Height = 24; this.watchList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.watchList.Size = new System.Drawing.Size(782, 121); this.watchList.TabIndex = 0; //this.watchList.CellValueChanged += RefreshWatchDel;//delegate(object sender, DataGridViewCellEventArgs e) { RefreshWatch(); }; //this.watchList.CellEndEdit += delegate(object sender, DataGridViewCellEventArgs e) { RefreshRow(e.RowIndex); }; //this.watchList.CellClick += CellClickDel; //this.watchList.CellDoubleClick += CellDblClickDel; this.watchList._imageList = CodeCompletionProvider.ImagesProvider.ImageList; this.watchList.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; this.watchList.ShowLines = true; //this.watchList.Nodes.Add(new AdvancedDataGridView.TreeGridNode()); //this.dataGridView1.ClientSizeChanged += new System.EventHandler(this.dataGridView1_ClientSizeChanged); //this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick); //this.dataGridView1.SizeChanged += new System.EventHandler(this.dataGridView1_SizeChanged); //this.dataGridView1.Paint += new System.Windows.Forms.PaintEventHandler(this.dataGridView1_Paint); //this.dataGridView1.Resize += new System.EventHandler(this.dataGridView1_Resize); this.WColumn4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.WColumn4.FillWeight = 20F; this.WColumn4.Frozen = true; this.WColumn4.HeaderText = "ER_NUM"; this.WColumn4.Name = "WColumn4"; this.WColumn4.ReadOnly = true; this.WColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.False; this.WColumn4.Width = 25; // // Column1 // this.WColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.WColumn1.FillWeight = 20F; this.WColumn1.Frozen = false; this.WColumn1.HeaderText = "CLMN_VAR"; this.WColumn1.Name = "WColumn1"; this.WColumn1.ReadOnly = false; this.WColumn1.Width = 250; // // Column2 // this.WColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.WColumn2.FillWeight = 221.0297F; this.WColumn2.Frozen = false; this.WColumn2.HeaderText = "WT_TYPE"; this.WColumn2.Name = "WColumn2"; this.WColumn2.ReadOnly = true; this.WColumn2.Width = 200; // // Column3 // this.WColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.WColumn3.FillWeight = 101.5228F; this.WColumn3.Frozen = false; this.WColumn3.HeaderText = "WT_VALUE"; this.WColumn3.Name = "WColumn3"; this.WColumn3.ReadOnly = true; // // Column5 // this.WColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.WColumn5.HeaderText = "ER_PATH"; this.WColumn5.Name = "WColumn5"; this.WColumn5.ReadOnly = true; this.WColumn5.Width = 200; this.watchList.AllowUserToAddRows = false; this.watchList.AllowUserToDeleteRows = false; this.watchList.AllowUserToResizeColumns = true; this.watchList.AllowUserToResizeRows = false; }
public DebugWatchListWindowForm(Form1 MainForm) :base(MainForm) { InitializeComponent(); // this.WColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); // this.WColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); // this.WColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); // this.WColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); // this.WColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); watchWindow = this; Form1StringResources.SetTextForAllControls(this.cntxtWatch); this.WColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.WColumn1 = new AdvancedDataGridView.TreeGridColumn(); this.WColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.WColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.WColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.watchList.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.watchList.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders; this.watchList.BackgroundColor = System.Drawing.Color.White; this.watchList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.watchList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.WColumn1, this.WColumn3, this.WColumn2}); this.watchList.Dock = System.Windows.Forms.DockStyle.Fill; this.watchList.GridColor = System.Drawing.SystemColors.Control; this.watchList.Location = new System.Drawing.Point(1, 1); this.watchList.MultiSelect = true; this.watchList.Font = new Font("Tahoma",8); this.watchList.BorderStyle = BorderStyle.None; this.watchList.ReadOnly = false; this.watchList.RowHeadersVisible = false; this.watchList.RowTemplate.Height = 24; this.watchList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.watchList.Size = new System.Drawing.Size(782, 121); this.watchList.TabIndex = 0; //this.watchList.CellValueChanged += RefreshWatchDel;//delegate(object sender, DataGridViewCellEventArgs e) { RefreshWatch(); }; this.watchList.CellEndEdit += delegate(object sender, DataGridViewCellEventArgs e) { RefreshRow(e.RowIndex); }; this.watchList.CellClick += CellClickDel; this.watchList.CellDoubleClick += CellDblClickDel; this.watchList.KeyDown += KeyDownDel; this.watchList.UserDeletingRow += new System.Windows.Forms.DataGridViewRowCancelEventHandler(this.watchList_UserDeletingRow); this.watchList._imageList = CodeCompletionProvider.ImagesProvider.ImageList; this.watchList.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; this.watchList.ShowLines = true; this.watchList.Nodes.Add(new AdvancedDataGridView.TreeGridNode()); //this.dataGridView1.ClientSizeChanged += new System.EventHandler(this.dataGridView1_ClientSizeChanged); //this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick); //this.dataGridView1.SizeChanged += new System.EventHandler(this.dataGridView1_SizeChanged); //this.dataGridView1.Paint += new System.Windows.Forms.PaintEventHandler(this.dataGridView1_Paint); //this.dataGridView1.Resize += new System.EventHandler(this.dataGridView1_Resize); this.WColumn4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.WColumn4.FillWeight = 20F; this.WColumn4.Frozen = true; this.WColumn4.HeaderText = "ER_NUM"; this.WColumn4.Name = "WColumn4"; this.WColumn4.ReadOnly = true; this.WColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.False; this.WColumn4.Width = 25; // // Column1 // this.WColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.WColumn1.FillWeight = 20F; this.WColumn1.Frozen = false; this.WColumn1.HeaderText = "WT_EXPR"; this.WColumn1.Name = "WColumn1"; this.WColumn1.ReadOnly = false; this.WColumn1.Width = 250; // // Column2 // this.WColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.WColumn2.FillWeight = 221.0297F; this.WColumn2.Frozen = false; this.WColumn2.HeaderText = "WT_TYPE"; this.WColumn2.Name = "WColumn2"; this.WColumn2.ReadOnly = true; this.WColumn2.Width = 200; // // Column3 // this.WColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.WColumn3.FillWeight = 101.5228F; this.WColumn3.Frozen = false; this.WColumn3.HeaderText = "WT_VALUE"; this.WColumn3.Name = "WColumn3"; this.WColumn3.ReadOnly = true; // // Column5 // this.WColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.WColumn5.HeaderText = "ER_PATH"; this.WColumn5.Name = "WColumn5"; this.WColumn5.ReadOnly = true; this.WColumn5.Width = 200; this.watchList.AllowUserToAddRows = true; this.watchList.AllowUserToDeleteRows = true; this.watchList.AllowUserToResizeColumns = true; this.watchList.AllowUserToResizeRows = false; }