Add Refresh button to Monitoring tab in frmMain
Added a "Refresh" button with icon to the Monitoring tab's config panel. The button reloads the monitoring grid via a new event handler. Refactored designer code for better organization and updated .resx tray locations. No functional resource changes.
This commit is contained in:
89
App/EmailProfiler.Form/frmMain.Designer.vb
generated
89
App/EmailProfiler.Form/frmMain.Designer.vb
generated
@@ -326,7 +326,11 @@ Partial Class frmMain
|
||||
Me.txtPasswort = New System.Windows.Forms.TextBox()
|
||||
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.pnlMonitoringConfig = New DevExpress.XtraEditors.PanelControl()
|
||||
Me.btnMonitoringConfig = New System.Windows.Forms.Button()
|
||||
Me.txtMonitoringConfig = New System.Windows.Forms.TextBox()
|
||||
Me.lblMonitoringConfig = New System.Windows.Forms.Label()
|
||||
Me.TBEMLP_HISTORYBindingSource = New System.Windows.Forms.BindingSource(Me.components)
|
||||
Me.BackgroundWorker1 = New System.ComponentModel.BackgroundWorker()
|
||||
@@ -340,10 +344,7 @@ 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.txtMonitoringConfig = New System.Windows.Forms.TextBox()
|
||||
Me.btnMonitoringConfig = New System.Windows.Forms.Button()
|
||||
Me.gridMonitoring = New DevExpress.XtraGrid.GridControl()
|
||||
Me.GridView5 = New DevExpress.XtraGrid.Views.Grid.GridView()
|
||||
Me.btnRefresh = 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()
|
||||
@@ -451,11 +452,11 @@ Partial Class frmMain
|
||||
Me.tabMonitoring.SuspendLayout()
|
||||
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.pnlMonitoringConfig, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.pnlMonitoringConfig.SuspendLayout()
|
||||
CType(Me.TBEMLP_HISTORYBindingSource, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.gridMonitoring, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.GridView5, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'GUIDLabel
|
||||
@@ -3435,8 +3436,24 @@ Partial Class frmMain
|
||||
Me.pnlMonitoringGrid.Size = New System.Drawing.Size(1221, 518)
|
||||
Me.pnlMonitoringGrid.TabIndex = 1
|
||||
'
|
||||
'gridMonitoring
|
||||
'
|
||||
Me.gridMonitoring.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.gridMonitoring.Location = New System.Drawing.Point(2, 2)
|
||||
Me.gridMonitoring.MainView = Me.GridView5
|
||||
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})
|
||||
'
|
||||
'GridView5
|
||||
'
|
||||
Me.GridView5.GridControl = Me.gridMonitoring
|
||||
Me.GridView5.Name = "GridView5"
|
||||
'
|
||||
'pnlMonitoringConfig
|
||||
'
|
||||
Me.pnlMonitoringConfig.Controls.Add(Me.btnRefresh)
|
||||
Me.pnlMonitoringConfig.Controls.Add(Me.btnMonitoringConfig)
|
||||
Me.pnlMonitoringConfig.Controls.Add(Me.txtMonitoringConfig)
|
||||
Me.pnlMonitoringConfig.Controls.Add(Me.lblMonitoringConfig)
|
||||
@@ -3446,6 +3463,22 @@ Partial Class frmMain
|
||||
Me.pnlMonitoringConfig.Size = New System.Drawing.Size(1221, 44)
|
||||
Me.pnlMonitoringConfig.TabIndex = 0
|
||||
'
|
||||
'btnMonitoringConfig
|
||||
'
|
||||
Me.btnMonitoringConfig.Location = New System.Drawing.Point(220, 9)
|
||||
Me.btnMonitoringConfig.Name = "btnMonitoringConfig"
|
||||
Me.btnMonitoringConfig.Size = New System.Drawing.Size(80, 23)
|
||||
Me.btnMonitoringConfig.TabIndex = 2
|
||||
Me.btnMonitoringConfig.Text = "Übernehmen"
|
||||
Me.btnMonitoringConfig.UseVisualStyleBackColor = True
|
||||
'
|
||||
'txtMonitoringConfig
|
||||
'
|
||||
Me.txtMonitoringConfig.Location = New System.Drawing.Point(147, 10)
|
||||
Me.txtMonitoringConfig.Name = "txtMonitoringConfig"
|
||||
Me.txtMonitoringConfig.Size = New System.Drawing.Size(61, 21)
|
||||
Me.txtMonitoringConfig.TabIndex = 1
|
||||
'
|
||||
'lblMonitoringConfig
|
||||
'
|
||||
Me.lblMonitoringConfig.AutoSize = True
|
||||
@@ -3511,36 +3544,17 @@ Partial Class frmMain
|
||||
Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
|
||||
Me.ContextMenuStrip1.Size = New System.Drawing.Size(61, 4)
|
||||
'
|
||||
'txtMonitoringConfig
|
||||
'btnRefresh
|
||||
'
|
||||
Me.txtMonitoringConfig.Location = New System.Drawing.Point(147, 10)
|
||||
Me.txtMonitoringConfig.Name = "txtMonitoringConfig"
|
||||
Me.txtMonitoringConfig.Size = New System.Drawing.Size(61, 21)
|
||||
Me.txtMonitoringConfig.TabIndex = 1
|
||||
'
|
||||
'btnMonitoringConfig
|
||||
'
|
||||
Me.btnMonitoringConfig.Location = New System.Drawing.Point(220, 9)
|
||||
Me.btnMonitoringConfig.Name = "btnMonitoringConfig"
|
||||
Me.btnMonitoringConfig.Size = New System.Drawing.Size(80, 23)
|
||||
Me.btnMonitoringConfig.TabIndex = 2
|
||||
Me.btnMonitoringConfig.Text = "Übernehmen"
|
||||
Me.btnMonitoringConfig.UseVisualStyleBackColor = True
|
||||
'
|
||||
'gridMonitoring
|
||||
'
|
||||
Me.gridMonitoring.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.gridMonitoring.Location = New System.Drawing.Point(2, 2)
|
||||
Me.gridMonitoring.MainView = Me.GridView5
|
||||
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})
|
||||
'
|
||||
'GridView5
|
||||
'
|
||||
Me.GridView5.GridControl = Me.gridMonitoring
|
||||
Me.GridView5.Name = "GridView5"
|
||||
Me.btnRefresh.Image = Global.EmailProfiler.Form.My.Resources.Resources.refresh_16xLG
|
||||
Me.btnRefresh.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft
|
||||
Me.btnRefresh.Location = New System.Drawing.Point(311, 9)
|
||||
Me.btnRefresh.Name = "btnRefresh"
|
||||
Me.btnRefresh.Size = New System.Drawing.Size(92, 23)
|
||||
Me.btnRefresh.TabIndex = 3
|
||||
Me.btnRefresh.Text = "Aktualisieren"
|
||||
Me.btnRefresh.TextAlign = System.Drawing.ContentAlignment.MiddleRight
|
||||
Me.btnRefresh.UseVisualStyleBackColor = True
|
||||
'
|
||||
'frmMain
|
||||
'
|
||||
@@ -3624,12 +3638,12 @@ Partial Class frmMain
|
||||
Me.tabMonitoring.ResumeLayout(False)
|
||||
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.pnlMonitoringConfig, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.pnlMonitoringConfig.ResumeLayout(False)
|
||||
Me.pnlMonitoringConfig.PerformLayout()
|
||||
CType(Me.TBEMLP_HISTORYBindingSource, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.gridMonitoring, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.GridView5, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.ResumeLayout(False)
|
||||
Me.PerformLayout()
|
||||
|
||||
@@ -3900,4 +3914,5 @@ Partial Class frmMain
|
||||
Friend WithEvents txtMonitoringConfig As TextBox
|
||||
Friend WithEvents gridMonitoring As DevExpress.XtraGrid.GridControl
|
||||
Friend WithEvents GridView5 As DevExpress.XtraGrid.Views.Grid.GridView
|
||||
Friend WithEvents btnRefresh As Button
|
||||
End Class
|
||||
|
||||
Reference in New Issue
Block a user