Changed date display for issue #109

This commit is contained in:
Michael J. Seiferling
2017-12-05 19:55:39 -06:00
parent 2c0fdb776e
commit 82f287f322
4 changed files with 8 additions and 35 deletions
+3 -16
View File
@@ -1,9 +1,9 @@
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
Partial Class frmAdvancedImport Partial Class frmAdvancedImport
Inherits System.Windows.Forms.Form Inherits System.Windows.Forms.Form
'Form overrides dispose to clean up the component list. 'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _ <System.Diagnostics.DebuggerNonUserCode()>
Protected Overrides Sub Dispose(ByVal disposing As Boolean) Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try Try
If disposing AndAlso components IsNot Nothing Then If disposing AndAlso components IsNot Nothing Then
@@ -20,7 +20,7 @@ Partial Class frmAdvancedImport
'NOTE: The following procedure is required by the Windows Form Designer 'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer. 'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor. 'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> _ <System.Diagnostics.DebuggerStepThrough()>
Private Sub InitializeComponent() Private Sub InitializeComponent()
Me.btnImport = New System.Windows.Forms.Button() Me.btnImport = New System.Windows.Forms.Button()
Me.chkSelectAll = New System.Windows.Forms.CheckBox() Me.chkSelectAll = New System.Windows.Forms.CheckBox()
@@ -30,7 +30,6 @@ Partial Class frmAdvancedImport
Me.lstGames = New System.Windows.Forms.ListView() Me.lstGames = New System.Windows.Forms.ListView()
Me.txtFilter = New System.Windows.Forms.TextBox() Me.txtFilter = New System.Windows.Forms.TextBox()
Me.lblFilter = New System.Windows.Forms.Label() Me.lblFilter = New System.Windows.Forms.Label()
Me.lblInfo = New System.Windows.Forms.Label()
Me.SuspendLayout() Me.SuspendLayout()
' '
'btnImport 'btnImport
@@ -106,22 +105,11 @@ Partial Class frmAdvancedImport
Me.lblFilter.Text = "Filter:" Me.lblFilter.Text = "Filter:"
Me.lblFilter.TextAlign = System.Drawing.ContentAlignment.TopRight Me.lblFilter.TextAlign = System.Drawing.ContentAlignment.TopRight
' '
'lblInfo
'
Me.lblInfo.AutoEllipsis = True
Me.lblInfo.Location = New System.Drawing.Point(88, 12)
Me.lblInfo.Name = "lblInfo"
Me.lblInfo.Size = New System.Drawing.Size(277, 14)
Me.lblInfo.TabIndex = 0
Me.lblInfo.Text = "Import Information"
Me.lblInfo.TextAlign = System.Drawing.ContentAlignment.TopCenter
'
'frmAdvancedImport 'frmAdvancedImport
' '
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(584, 411) Me.ClientSize = New System.Drawing.Size(584, 411)
Me.Controls.Add(Me.lblInfo)
Me.Controls.Add(Me.lblFilter) Me.Controls.Add(Me.lblFilter)
Me.Controls.Add(Me.txtFilter) Me.Controls.Add(Me.txtFilter)
Me.Controls.Add(Me.lstGames) Me.Controls.Add(Me.lstGames)
@@ -149,5 +137,4 @@ Partial Class frmAdvancedImport
Friend WithEvents lstGames As System.Windows.Forms.ListView Friend WithEvents lstGames As System.Windows.Forms.ListView
Friend WithEvents txtFilter As System.Windows.Forms.TextBox Friend WithEvents txtFilter As System.Windows.Forms.TextBox
Friend WithEvents lblFilter As System.Windows.Forms.Label Friend WithEvents lblFilter As System.Windows.Forms.Label
Friend WithEvents lblInfo As Label
End Class End Class
+5 -7
View File
@@ -145,19 +145,17 @@ Public Class frmAdvancedImport
'Set Form Name 'Set Form Name
Me.Text = frmAdvancedImport_FormName Me.Text = frmAdvancedImport_FormName
'Add configuration date to title if applicable
If ImportInfo.Exported <> 0 Then
Me.Text &= " [" & mgrCommon.UnixToDate(ImportInfo.Exported).Date & "]"
End If
'Set Form Text 'Set Form Text
lblFilter.Text = frmAdvancedImport_lblFilter lblFilter.Text = frmAdvancedImport_lblFilter
btnCancel.Text = frmAdvancedImport_btnCancel btnCancel.Text = frmAdvancedImport_btnCancel
btnImport.Text = frmAdvancedImport_btnImport btnImport.Text = frmAdvancedImport_btnImport
chkSelectAll.Text = frmAdvancedImport_chkSelectAll chkSelectAll.Text = frmAdvancedImport_chkSelectAll
'Import Information
If ImportInfo.Exported <> 0 Then
lblInfo.Text = mgrCommon.FormatString(frmAdvancedImport_lblInfo, New String() {mgrCommon.UnixToDate(ImportInfo.Exported).Date, mgrCommon.DisplayAppVersion})
Else
lblInfo.Text = String.Empty
End If
chkSelectAll.Checked = True chkSelectAll.Checked = True
'Init Filter Timer 'Init Filter Timer
-9
View File
@@ -807,15 +807,6 @@ Namespace My.Resources
End Get End Get
End Property End Property
'''<summary>
''' Looks up a localized string similar to Last Update: [PARAM] (v[PARAM]).
'''</summary>
Friend ReadOnly Property frmAdvancedImport_lblInfo() As String
Get
Return ResourceManager.GetString("frmAdvancedImport_lblInfo", resourceCulture)
End Get
End Property
'''<summary> '''<summary>
''' Looks up a localized string similar to Selected ([PARAM]). ''' Looks up a localized string similar to Selected ([PARAM]).
'''</summary> '''</summary>
-3
View File
@@ -1900,7 +1900,4 @@
<data name="frmFilter_lblNot" xml:space="preserve"> <data name="frmFilter_lblNot" xml:space="preserve">
<value>Not</value> <value>Not</value>
</data> </data>
<data name="frmAdvancedImport_lblInfo" xml:space="preserve">
<value>Last Update: [PARAM] (v[PARAM])</value>
</data>
</root> </root>