Refactor monitoring grid to use GridViewMonitoring
Replaces all references to GridView5 with GridViewMonitoring for clarity and maintainability. Updates layout save/restore logic to use the new view, adds a helper for loading layouts, and improves default layout restoration. Cleans up designer and resource files, removing obsolete entries and ensuring correct initialization.
This commit is contained in:
58
App/EmailProfiler.Form/frmMain.Designer.vb
generated
58
App/EmailProfiler.Form/frmMain.Designer.vb
generated
@@ -327,8 +327,10 @@ Partial Class frmMain
|
||||
Me.tabMonitoring = New System.Windows.Forms.TabPage()
|
||||
Me.pnlMonitoringGrid = New DevExpress.XtraEditors.PanelControl()
|
||||
Me.gridMonitoring = New DevExpress.XtraGrid.GridControl()
|
||||
Me.GridView5 = New DevExpress.XtraGrid.Views.Grid.GridView()
|
||||
Me.GridViewMonitoring = New DevExpress.XtraGrid.Views.Grid.GridView()
|
||||
Me.pnlMonitoringConfig = New DevExpress.XtraEditors.PanelControl()
|
||||
Me.btnRestoreDefaultLayout = New System.Windows.Forms.Button()
|
||||
Me.btnSaveLayout = New System.Windows.Forms.Button()
|
||||
Me.btnRefresh = New System.Windows.Forms.Button()
|
||||
Me.btnMonitoringConfig = New System.Windows.Forms.Button()
|
||||
Me.txtMonitoringConfig = New System.Windows.Forms.TextBox()
|
||||
@@ -345,8 +347,6 @@ Partial Class frmMain
|
||||
Me.TBEMLP_CONFIGTableAdapter = New EmailProfiler.Form.MyDatasetTableAdapters.TBEMLP_CONFIGTableAdapter()
|
||||
Me.FolderBrowserDialog1 = New System.Windows.Forms.FolderBrowserDialog()
|
||||
Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
|
||||
Me.btnSaveLayout = New System.Windows.Forms.Button()
|
||||
Me.btnRestoreDefaultLayout = New System.Windows.Forms.Button()
|
||||
GUIDLabel = New System.Windows.Forms.Label()
|
||||
PROFILE_NAMELabel = New System.Windows.Forms.Label()
|
||||
POLL_TYPELabel = New System.Windows.Forms.Label()
|
||||
@@ -455,7 +455,7 @@ Partial Class frmMain
|
||||
CType(Me.pnlMonitoringGrid, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.pnlMonitoringGrid.SuspendLayout()
|
||||
CType(Me.gridMonitoring, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.GridView5, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.GridViewMonitoring, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.pnlMonitoringConfig, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.pnlMonitoringConfig.SuspendLayout()
|
||||
CType(Me.TBEMLP_HISTORYBindingSource, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
@@ -3442,16 +3442,16 @@ Partial Class frmMain
|
||||
'
|
||||
Me.gridMonitoring.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.gridMonitoring.Location = New System.Drawing.Point(2, 2)
|
||||
Me.gridMonitoring.MainView = Me.GridView5
|
||||
Me.gridMonitoring.MainView = Me.GridViewMonitoring
|
||||
Me.gridMonitoring.Name = "gridMonitoring"
|
||||
Me.gridMonitoring.Size = New System.Drawing.Size(1217, 514)
|
||||
Me.gridMonitoring.TabIndex = 0
|
||||
Me.gridMonitoring.ViewCollection.AddRange(New DevExpress.XtraGrid.Views.Base.BaseView() {Me.GridView5})
|
||||
Me.gridMonitoring.ViewCollection.AddRange(New DevExpress.XtraGrid.Views.Base.BaseView() {Me.GridViewMonitoring})
|
||||
'
|
||||
'GridView5
|
||||
'GridViewMonitoring
|
||||
'
|
||||
Me.GridView5.GridControl = Me.gridMonitoring
|
||||
Me.GridView5.Name = "GridView5"
|
||||
Me.GridViewMonitoring.GridControl = Me.gridMonitoring
|
||||
Me.GridViewMonitoring.Name = "GridViewMonitoring"
|
||||
'
|
||||
'pnlMonitoringConfig
|
||||
'
|
||||
@@ -3467,6 +3467,24 @@ Partial Class frmMain
|
||||
Me.pnlMonitoringConfig.Size = New System.Drawing.Size(1221, 44)
|
||||
Me.pnlMonitoringConfig.TabIndex = 0
|
||||
'
|
||||
'btnRestoreDefaultLayout
|
||||
'
|
||||
Me.btnRestoreDefaultLayout.Location = New System.Drawing.Point(1026, 10)
|
||||
Me.btnRestoreDefaultLayout.Name = "btnRestoreDefaultLayout"
|
||||
Me.btnRestoreDefaultLayout.Size = New System.Drawing.Size(183, 23)
|
||||
Me.btnRestoreDefaultLayout.TabIndex = 5
|
||||
Me.btnRestoreDefaultLayout.Text = "Standard-Layout wiederherstellen"
|
||||
Me.btnRestoreDefaultLayout.UseVisualStyleBackColor = True
|
||||
'
|
||||
'btnSaveLayout
|
||||
'
|
||||
Me.btnSaveLayout.Location = New System.Drawing.Point(910, 10)
|
||||
Me.btnSaveLayout.Name = "btnSaveLayout"
|
||||
Me.btnSaveLayout.Size = New System.Drawing.Size(106, 23)
|
||||
Me.btnSaveLayout.TabIndex = 4
|
||||
Me.btnSaveLayout.Text = "Layout speichern"
|
||||
Me.btnSaveLayout.UseVisualStyleBackColor = True
|
||||
'
|
||||
'btnRefresh
|
||||
'
|
||||
Me.btnRefresh.Image = Global.EmailProfiler.Form.My.Resources.Resources.refresh_16xLG
|
||||
@@ -3560,24 +3578,6 @@ Partial Class frmMain
|
||||
Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
|
||||
Me.ContextMenuStrip1.Size = New System.Drawing.Size(61, 4)
|
||||
'
|
||||
'btnSaveLayout
|
||||
'
|
||||
Me.btnSaveLayout.Location = New System.Drawing.Point(910, 10)
|
||||
Me.btnSaveLayout.Name = "btnSaveLayout"
|
||||
Me.btnSaveLayout.Size = New System.Drawing.Size(106, 23)
|
||||
Me.btnSaveLayout.TabIndex = 4
|
||||
Me.btnSaveLayout.Text = "Layout speichern"
|
||||
Me.btnSaveLayout.UseVisualStyleBackColor = True
|
||||
'
|
||||
'btnRestoreDefaultLayout
|
||||
'
|
||||
Me.btnRestoreDefaultLayout.Location = New System.Drawing.Point(1026, 10)
|
||||
Me.btnRestoreDefaultLayout.Name = "btnRestoreDefaultLayout"
|
||||
Me.btnRestoreDefaultLayout.Size = New System.Drawing.Size(183, 23)
|
||||
Me.btnRestoreDefaultLayout.TabIndex = 5
|
||||
Me.btnRestoreDefaultLayout.Text = "Standard-Layout wiederherstellen"
|
||||
Me.btnRestoreDefaultLayout.UseVisualStyleBackColor = True
|
||||
'
|
||||
'frmMain
|
||||
'
|
||||
Me.Appearance.Options.UseFont = True
|
||||
@@ -3661,7 +3661,7 @@ Partial Class frmMain
|
||||
CType(Me.pnlMonitoringGrid, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.pnlMonitoringGrid.ResumeLayout(False)
|
||||
CType(Me.gridMonitoring, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.GridView5, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.GridViewMonitoring, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.pnlMonitoringConfig, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.pnlMonitoringConfig.ResumeLayout(False)
|
||||
Me.pnlMonitoringConfig.PerformLayout()
|
||||
@@ -3935,7 +3935,7 @@ Partial Class frmMain
|
||||
Friend WithEvents btnMonitoringConfig As Button
|
||||
Friend WithEvents txtMonitoringConfig As TextBox
|
||||
Friend WithEvents gridMonitoring As DevExpress.XtraGrid.GridControl
|
||||
Friend WithEvents GridView5 As DevExpress.XtraGrid.Views.Grid.GridView
|
||||
Friend WithEvents GridViewMonitoring As DevExpress.XtraGrid.Views.Grid.GridView
|
||||
Friend WithEvents btnRefresh As Button
|
||||
Friend WithEvents btnRestoreDefaultLayout As Button
|
||||
Friend WithEvents btnSaveLayout As Button
|
||||
|
||||
Reference in New Issue
Block a user