Cosmetic updates

This commit is contained in:
Michael J. Seiferling
2016-03-13 14:26:31 -06:00
parent 640690514b
commit d1e292d4bf
6 changed files with 94 additions and 38 deletions
+5 -4
View File
@@ -44,10 +44,11 @@ Partial Class frmAdvancedImport
'chkSelectAll 'chkSelectAll
' '
Me.chkSelectAll.AutoSize = True Me.chkSelectAll.AutoSize = True
Me.chkSelectAll.Location = New System.Drawing.Point(18, 12) Me.chkSelectAll.Location = New System.Drawing.Point(12, 12)
Me.chkSelectAll.Name = "chkSelectAll" Me.chkSelectAll.Name = "chkSelectAll"
Me.chkSelectAll.Size = New System.Drawing.Size(15, 14) Me.chkSelectAll.Size = New System.Drawing.Size(70, 17)
Me.chkSelectAll.TabIndex = 0 Me.chkSelectAll.TabIndex = 0
Me.chkSelectAll.Text = "Select All"
Me.chkSelectAll.UseVisualStyleBackColor = True Me.chkSelectAll.UseVisualStyleBackColor = True
' '
'lblGames 'lblGames
@@ -81,9 +82,9 @@ Partial Class frmAdvancedImport
' '
Me.lstGames.CheckBoxes = True Me.lstGames.CheckBoxes = True
Me.lstGames.FullRowSelect = True Me.lstGames.FullRowSelect = True
Me.lstGames.Location = New System.Drawing.Point(12, 32) Me.lstGames.Location = New System.Drawing.Point(12, 35)
Me.lstGames.Name = "lstGames" Me.lstGames.Name = "lstGames"
Me.lstGames.Size = New System.Drawing.Size(560, 332) Me.lstGames.Size = New System.Drawing.Size(560, 329)
Me.lstGames.TabIndex = 2 Me.lstGames.TabIndex = 2
Me.lstGames.UseCompatibleStateImageBehavior = False Me.lstGames.UseCompatibleStateImageBehavior = False
Me.lstGames.View = System.Windows.Forms.View.Details Me.lstGames.View = System.Windows.Forms.View.Details
+1 -1
View File
@@ -24,7 +24,6 @@ Public Class frmAdvancedImport
End Get End Get
End Property End Property
Private Sub SelectToggle() Private Sub SelectToggle()
Cursor.Current = Cursors.WaitCursor Cursor.Current = Cursors.WaitCursor
lstGames.BeginUpdate() lstGames.BeginUpdate()
@@ -126,6 +125,7 @@ Public Class frmAdvancedImport
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.Checked = True chkSelectAll.Checked = True
+51 -9
View File
@@ -895,6 +895,51 @@ Public Class frmGameManager
IsLoading = False IsLoading = False
End Sub End Sub
Private Sub FolderSaveModeChange()
If chkFolderSave.Checked Then
btnInclude.Enabled = False
If txtFileType.Text <> String.Empty Then
txtFileType.Text = String.Empty
UpdateBuilderButtonLabel(txtFileType.Text, frmGameManager_IncludeShortcut, btnInclude, False)
End If
Else
btnInclude.Enabled = True
End If
End Sub
Private Sub MonitorOnlyModeChange()
If chkMonitorOnly.Checked Then
txtSavePath.Text = String.Empty
chkFolderSave.Checked = True
chkTimeStamp.Checked = False
If txtFileType.Text <> String.Empty Then
txtFileType.Text = String.Empty
UpdateBuilderButtonLabel(txtFileType.Text, frmGameManager_IncludeShortcut, btnInclude, False)
End If
If txtExclude.Text <> String.Empty Then
txtExclude.Text = String.Empty
UpdateBuilderButtonLabel(txtExclude.Text, frmGameManager_ExcludeShortcut, btnExclude, False)
End If
lblSavePath.Enabled = False
btnSavePathBrowse.Enabled = False
txtSavePath.Enabled = False
chkFolderSave.Enabled = False
chkTimeStamp.Enabled = False
btnInclude.Enabled = False
btnExclude.Enabled = False
Else
lblSavePath.Enabled = True
btnSavePathBrowse.Enabled = True
txtSavePath.Enabled = True
chkFolderSave.Enabled = True
chkTimeStamp.Enabled = True
btnInclude.Enabled = True
btnExclude.Enabled = True
End If
End Sub
Private Sub EditApp() Private Sub EditApp()
eCurrentMode = eModes.Edit eCurrentMode = eModes.Edit
ModeChange() ModeChange()
@@ -1421,15 +1466,11 @@ Public Class frmGameManager
End Sub End Sub
Private Sub chkFolderSave_CheckedChanged(sender As Object, e As EventArgs) Handles chkFolderSave.CheckedChanged Private Sub chkFolderSave_CheckedChanged(sender As Object, e As EventArgs) Handles chkFolderSave.CheckedChanged
If chkFolderSave.Checked Then FolderSaveModeChange()
btnInclude.Enabled = False End Sub
If txtFileType.Text <> String.Empty Then
txtFileType.Text = String.Empty Private Sub chkMonitorOnly_CheckedChanged(sender As Object, e As EventArgs) Handles chkMonitorOnly.CheckedChanged
UpdateBuilderButtonLabel(txtFileType.Text, frmGameManager_IncludeShortcut, btnInclude, False) MonitorOnlyModeChange()
End If
Else
btnInclude.Enabled = True
End If
End Sub End Sub
Private Sub btnImport_Click(sender As Object, e As EventArgs) Handles btnImport.Click Private Sub btnImport_Click(sender As Object, e As EventArgs) Handles btnImport.Click
@@ -1447,4 +1488,5 @@ Public Class frmGameManager
Private Sub btnExport_Click(sender As Object, e As EventArgs) Handles btnExport.Click Private Sub btnExport_Click(sender As Object, e As EventArgs) Handles btnExport.Click
ExportGameList() ExportGameList()
End Sub End Sub
End Class End Class
+4 -3
View File
@@ -65,7 +65,8 @@ Public Class frmMain
Else Else
Dim sPattern As String = "h:mm tt" Dim sPattern As String = "h:mm tt"
lblLastActionTitle.Visible = True lblLastActionTitle.Visible = True
lblLastAction.Text = sMessage & " at " & TimeOfDay.ToString(sPattern) lblLastActionTitle.Text = frmMain_lblLastActionTitle & " [" & TimeOfDay.ToString(sPattern) & "]"
lblLastAction.Text = sMessage
End If End If
End Sub End Sub
@@ -272,13 +273,13 @@ Public Class frmMain
eCurrentOperation = eOperation.Backup eCurrentOperation = eOperation.Backup
OperationStarted(False) OperationStarted(False)
If oProcess.GameInfo.MonitorOnly = False Then
If SupressBackup() Then If SupressBackup() Then
bDoBackup = False bDoBackup = False
UpdateLog(mgrCommon.FormatString(frmMain_ErrorBackupSessionLength, oProcess.GameInfo.Name), False) UpdateLog(mgrCommon.FormatString(frmMain_ErrorBackupSessionLength, oProcess.GameInfo.Name), False)
SetLastAction(mgrCommon.FormatString(frmMain_ErrorBackupSessionLength, oProcess.GameInfo.CroppedName)) SetLastAction(mgrCommon.FormatString(frmMain_ErrorBackupSessionLength, oProcess.GameInfo.CroppedName))
OperationEnded() OperationEnded()
Else Else
If oProcess.GameInfo.MonitorOnly = False Then
If oSettings.DisableConfirmation Then If oSettings.DisableConfirmation Then
bDoBackup = True bDoBackup = True
Else Else
@@ -291,13 +292,13 @@ Public Class frmMain
OperationEnded() OperationEnded()
End If End If
End If End If
End If
Else Else
bDoBackup = False bDoBackup = False
UpdateLog(mgrCommon.FormatString(frmMain_MonitorEnded, oProcess.GameInfo.Name), False) UpdateLog(mgrCommon.FormatString(frmMain_MonitorEnded, oProcess.GameInfo.Name), False)
SetLastAction(mgrCommon.FormatString(frmMain_MonitorEnded, oProcess.GameInfo.CroppedName)) SetLastAction(mgrCommon.FormatString(frmMain_MonitorEnded, oProcess.GameInfo.CroppedName))
OperationEnded() OperationEnded()
End If End If
End If
If bDoBackup Then If bDoBackup Then
'Run the backup 'Run the backup
+14 -5
View File
@@ -726,6 +726,15 @@ Namespace My.Resources
End Get End Get
End Property End Property
'''<summary>
''' Looks up a localized string similar to Select All.
'''</summary>
Friend ReadOnly Property frmAdvancedImport_chkSelectAll() As String
Get
Return ResourceManager.GetString("frmAdvancedImport_chkSelectAll", resourceCulture)
End Get
End Property
'''<summary> '''<summary>
''' Looks up a localized string similar to Name. ''' Looks up a localized string similar to Name.
'''</summary> '''</summary>
@@ -2329,7 +2338,7 @@ Namespace My.Resources
End Property End Property
'''<summary> '''<summary>
''' Looks up a localized string similar to [PARAM] backup was cancelled due to session length. ''' Looks up a localized string similar to [PARAM] backup was cancelled due to session length..
'''</summary> '''</summary>
Friend ReadOnly Property frmMain_ErrorBackupSessionLength() As String Friend ReadOnly Property frmMain_ErrorBackupSessionLength() As String
Get Get
@@ -3935,7 +3944,7 @@ Namespace My.Resources
End Property End Property
'''<summary> '''<summary>
''' Looks up a localized string similar to [PARAM] backup completed. ''' Looks up a localized string similar to [PARAM] backup completed..
'''</summary> '''</summary>
Friend ReadOnly Property mgrBackup_ActionComplete() As String Friend ReadOnly Property mgrBackup_ActionComplete() As String
Get Get
@@ -3944,7 +3953,7 @@ Namespace My.Resources
End Property End Property
'''<summary> '''<summary>
''' Looks up a localized string similar to [PARAM] backup failed. ''' Looks up a localized string similar to [PARAM] backup failed..
'''</summary> '''</summary>
Friend ReadOnly Property mgrBackup_ActionFailed() As String Friend ReadOnly Property mgrBackup_ActionFailed() As String
Get Get
@@ -4259,7 +4268,7 @@ Namespace My.Resources
End Property End Property
'''<summary> '''<summary>
''' Looks up a localized string similar to [PARAM] backup restored. ''' Looks up a localized string similar to [PARAM] backup restored..
'''</summary> '''</summary>
Friend ReadOnly Property mgrRestore_ActionComplete() As String Friend ReadOnly Property mgrRestore_ActionComplete() As String
Get Get
@@ -4268,7 +4277,7 @@ Namespace My.Resources
End Property End Property
'''<summary> '''<summary>
''' Looks up a localized string similar to [PARAM] restore failed. ''' Looks up a localized string similar to [PARAM] restore failed..
'''</summary> '''</summary>
Friend ReadOnly Property mgrRestore_ActionFailed() As String Friend ReadOnly Property mgrRestore_ActionFailed() As String
Get Get
+8 -5
View File
@@ -212,7 +212,7 @@
<value>[PARAM] backup was cancelled.</value> <value>[PARAM] backup was cancelled.</value>
</data> </data>
<data name="frmMain_ErrorBackupSessionLength" xml:space="preserve"> <data name="frmMain_ErrorBackupSessionLength" xml:space="preserve">
<value>[PARAM] backup was cancelled due to session length</value> <value>[PARAM] backup was cancelled due to session length.</value>
</data> </data>
<data name="frmMain_ErrorBackupUnknownPath" xml:space="preserve"> <data name="frmMain_ErrorBackupUnknownPath" xml:space="preserve">
<value>[PARAM] backup was cancelled due to unknown path.</value> <value>[PARAM] backup was cancelled due to unknown path.</value>
@@ -1307,10 +1307,10 @@
<value>Do you wish to manually set the game path? (Path will be saved)</value> <value>Do you wish to manually set the game path? (Path will be saved)</value>
</data> </data>
<data name="mgrBackup_ActionComplete" xml:space="preserve"> <data name="mgrBackup_ActionComplete" xml:space="preserve">
<value>[PARAM] backup completed</value> <value>[PARAM] backup completed.</value>
</data> </data>
<data name="mgrBackup_ActionFailed" xml:space="preserve"> <data name="mgrBackup_ActionFailed" xml:space="preserve">
<value>[PARAM] backup failed</value> <value>[PARAM] backup failed.</value>
</data> </data>
<data name="mgrBackup_BackupComplete" xml:space="preserve"> <data name="mgrBackup_BackupComplete" xml:space="preserve">
<value>[PARAM] backup ([PARAM]) completed. </value> <value>[PARAM] backup ([PARAM]) completed. </value>
@@ -1412,10 +1412,10 @@
<value>[PARAM] was located in the following folder:[BR][BR][PARAM][BR][BR]Is this correct?</value> <value>[PARAM] was located in the following folder:[BR][BR][PARAM][BR][BR]Is this correct?</value>
</data> </data>
<data name="mgrRestore_ActionComplete" xml:space="preserve"> <data name="mgrRestore_ActionComplete" xml:space="preserve">
<value>[PARAM] backup restored</value> <value>[PARAM] backup restored.</value>
</data> </data>
<data name="mgrRestore_ActionFailed" xml:space="preserve"> <data name="mgrRestore_ActionFailed" xml:space="preserve">
<value>[PARAM] restore failed</value> <value>[PARAM] restore failed.</value>
</data> </data>
<data name="mgrRestore_ConfirmCreatePath" xml:space="preserve"> <data name="mgrRestore_ConfirmCreatePath" xml:space="preserve">
<value>The restore path [PARAM] does not exist.[BR][BR]Do you want to create the folder and continue?</value> <value>The restore path [PARAM] does not exist.[BR][BR]Do you want to create the folder and continue?</value>
@@ -1585,4 +1585,7 @@
<data name="frmAdvancedImport_Filtered" xml:space="preserve"> <data name="frmAdvancedImport_Filtered" xml:space="preserve">
<value>[Filtered]</value> <value>[Filtered]</value>
</data> </data>
<data name="frmAdvancedImport_chkSelectAll" xml:space="preserve">
<value>Select All</value>
</data>
</root> </root>