Moved strings to resource (frmGameManager)

This commit is contained in:
Michael J. Seiferling
2015-12-21 12:06:34 -06:00
parent 8778f2e1c0
commit 4316a7c7be
7 changed files with 1310 additions and 214 deletions
+5
View File
@@ -420,6 +420,11 @@ Public Class frmAddWizard
Private Sub frmAddWizard_Load(sender As Object, e As EventArgs) Handles MyBase.Load Private Sub frmAddWizard_Load(sender As Object, e As EventArgs) Handles MyBase.Load
FormInit() FormInit()
'Dim sResource As String = String.Empty
'Dim sCode As String = String.Empty
'mgrCommon.GetAllStrings(Me, sResource, sCode, "frmAddWizard")
'Clipboard.SetText(sResource & vbCrLf & vbCrLf & sCode)
End Sub End Sub
Private Sub DropTarget_DragEnter(sender As Object, e As DragEventArgs) Handles lblDrag1.DragEnter, lblDrag2.DragEnter, txtName.DragEnter, txtProcessPath.DragEnter Private Sub DropTarget_DragEnter(sender As Object, e As DragEventArgs) Handles lblDrag1.DragEnter, lblDrag2.DragEnter, txtName.DragEnter, txtProcessPath.DragEnter
+10 -10
View File
@@ -53,7 +53,7 @@ Partial Class frmGameManager
Me.txtCompany = New System.Windows.Forms.TextBox() Me.txtCompany = New System.Windows.Forms.TextBox()
Me.lblCompany = New System.Windows.Forms.Label() Me.lblCompany = New System.Windows.Forms.Label()
Me.pbIcon = New System.Windows.Forms.PictureBox() Me.pbIcon = New System.Windows.Forms.PictureBox()
Me.Label1 = New System.Windows.Forms.Label() Me.lblIcon = New System.Windows.Forms.Label()
Me.btnAppPathBrowse = New System.Windows.Forms.Button() Me.btnAppPathBrowse = New System.Windows.Forms.Button()
Me.lblGamePath = New System.Windows.Forms.Label() Me.lblGamePath = New System.Windows.Forms.Label()
Me.txtAppPath = New System.Windows.Forms.TextBox() Me.txtAppPath = New System.Windows.Forms.TextBox()
@@ -319,7 +319,7 @@ Partial Class frmGameManager
Me.grpExtra.Controls.Add(Me.txtCompany) Me.grpExtra.Controls.Add(Me.txtCompany)
Me.grpExtra.Controls.Add(Me.lblCompany) Me.grpExtra.Controls.Add(Me.lblCompany)
Me.grpExtra.Controls.Add(Me.pbIcon) Me.grpExtra.Controls.Add(Me.pbIcon)
Me.grpExtra.Controls.Add(Me.Label1) Me.grpExtra.Controls.Add(Me.lblIcon)
Me.grpExtra.Controls.Add(Me.btnAppPathBrowse) Me.grpExtra.Controls.Add(Me.btnAppPathBrowse)
Me.grpExtra.Controls.Add(Me.lblGamePath) Me.grpExtra.Controls.Add(Me.lblGamePath)
Me.grpExtra.Controls.Add(Me.txtAppPath) Me.grpExtra.Controls.Add(Me.txtAppPath)
@@ -401,14 +401,14 @@ Partial Class frmGameManager
Me.pbIcon.TabIndex = 15 Me.pbIcon.TabIndex = 15
Me.pbIcon.TabStop = False Me.pbIcon.TabStop = False
' '
'Label1 'lblIcon
' '
Me.Label1.AutoSize = True Me.lblIcon.AutoSize = True
Me.Label1.Location = New System.Drawing.Point(6, 100) Me.lblIcon.Location = New System.Drawing.Point(6, 100)
Me.Label1.Name = "Label1" Me.lblIcon.Name = "lblIcon"
Me.Label1.Size = New System.Drawing.Size(31, 13) Me.lblIcon.Size = New System.Drawing.Size(31, 13)
Me.Label1.TabIndex = 3 Me.lblIcon.TabIndex = 3
Me.Label1.Text = "Icon:" Me.lblIcon.Text = "Icon:"
' '
'btnAppPathBrowse 'btnAppPathBrowse
' '
@@ -815,7 +815,7 @@ Partial Class frmGameManager
Friend WithEvents btnAppPathBrowse As System.Windows.Forms.Button Friend WithEvents btnAppPathBrowse As System.Windows.Forms.Button
Friend WithEvents lblGamePath As System.Windows.Forms.Label Friend WithEvents lblGamePath As System.Windows.Forms.Label
Friend WithEvents txtAppPath As System.Windows.Forms.TextBox Friend WithEvents txtAppPath As System.Windows.Forms.TextBox
Friend WithEvents Label1 As System.Windows.Forms.Label Friend WithEvents lblIcon As System.Windows.Forms.Label
Friend WithEvents pbIcon As System.Windows.Forms.PictureBox Friend WithEvents pbIcon As System.Windows.Forms.PictureBox
Friend WithEvents lblVersion As System.Windows.Forms.Label Friend WithEvents lblVersion As System.Windows.Forms.Label
Friend WithEvents txtVersion As System.Windows.Forms.TextBox Friend WithEvents txtVersion As System.Windows.Forms.TextBox
+105 -62
View File
@@ -279,8 +279,8 @@ Public Class frmGameManager
End If End If
End If End If
sNewPath = mgrCommon.OpenFileBrowser("Choose exe file that starts the application", "exe", _ sNewPath = mgrCommon.OpenFileBrowser(My.Resources.frmGameManager_ChooseExe, "exe", _
"Executable", sDefaultFolder, False) My.Resources.frmGameManager_Executable, sDefaultFolder, False)
If sNewPath <> String.Empty Then If sNewPath <> String.Empty Then
txtAppPath.Text = Path.GetDirectoryName(sNewPath) txtAppPath.Text = Path.GetDirectoryName(sNewPath)
@@ -300,7 +300,7 @@ Public Class frmGameManager
End If End If
End If End If
sNewPath = mgrCommon.OpenFolderBrowser("Choose the location of application's exe file:", sDefaultFolder, False) sNewPath = mgrCommon.OpenFolderBrowser(My.Resources.frmGameManager_ChooseExePath, sDefaultFolder, False)
If sNewPath <> String.Empty Then txtAppPath.Text = sNewPath If sNewPath <> String.Empty Then txtAppPath.Text = sNewPath
End Sub End Sub
@@ -316,7 +316,7 @@ Public Class frmGameManager
End If End If
End If End If
sNewPath = mgrCommon.OpenFolderBrowser("Choose the application save folder:", sDefaultFolder, False) sNewPath = mgrCommon.OpenFolderBrowser(My.Resources.frmGameManager_ChooseSaveFolder, sDefaultFolder, False)
If sNewPath <> String.Empty Then If sNewPath <> String.Empty Then
txtSavePath.Text = sNewPath txtSavePath.Text = sNewPath
@@ -335,8 +335,8 @@ Public Class frmGameManager
End If End If
End If End If
sNewPath = mgrCommon.OpenFileBrowser("Choose a custom icon for the application", "ico", _ sNewPath = mgrCommon.OpenFileBrowser(My.Resources.frmGameManager_ChooseCustomIcon, "ico", _
"Icon", sDefaultFolder, False) My.Resources.frmGameManager_Icon, sDefaultFolder, False)
If sNewPath <> String.Empty Then If sNewPath <> String.Empty Then
txtIcon.Text = sNewPath txtIcon.Text = sNewPath
@@ -349,7 +349,7 @@ Public Class frmGameManager
Private Function HandleDirty() As MsgBoxResult Private Function HandleDirty() As MsgBoxResult
Dim oResult As MsgBoxResult Dim oResult As MsgBoxResult
oResult = mgrCommon.ShowMessage("There are unsaved changes on this form. Do you want to save?", MsgBoxStyle.YesNoCancel) oResult = mgrCommon.ShowMessage(My.Resources.App_ConfirmDirty, MsgBoxStyle.YesNoCancel)
Select Case oResult Select Case oResult
Case MsgBoxResult.Yes Case MsgBoxResult.Yes
@@ -393,7 +393,7 @@ Public Class frmGameManager
If File.Exists(sFileName) Then If File.Exists(sFileName) Then
Process.Start("explorer.exe", "/select," & sFileName) Process.Start("explorer.exe", "/select," & sFileName)
Else Else
mgrCommon.ShowMessage("The backup file does not exist.", MsgBoxStyle.Exclamation) mgrCommon.ShowMessage(My.Resources.frmGameManager_ErrorNoBackupExists, MsgBoxStyle.Exclamation)
End If End If
End Sub End Sub
@@ -402,9 +402,9 @@ Public Class frmGameManager
Dim iCount As Integer = sBuilderString.Split(":").Length Dim iCount As Integer = sBuilderString.Split(":").Length
If sBuilderString <> String.Empty And iCount > 0 Then If sBuilderString <> String.Empty And iCount > 0 Then
btn.Text = sLabel & " Items... (" & iCount & ")" btn.Text = sLabel & " " & mgrCommon.FormatString(My.Resources.frmGameManager_ItemsExist, iCount)
Else Else
btn.Text = sLabel & " Items..." btn.Text = sLabel & " " & My.Resources.frmGameManager_Items
End If End If
If bDirty Then If bDirty Then
@@ -454,7 +454,7 @@ Public Class frmGameManager
Else Else
sProcess = CurrentGame.TrueProcess sProcess = CurrentGame.TrueProcess
If mgrCommon.IsProcessNotSearchable(CurrentGame) Then bNoAuto = True If mgrCommon.IsProcessNotSearchable(CurrentGame) Then bNoAuto = True
sRestorePath = mgrPath.ProcessPathSearch(CurrentBackupItem.Name, sProcess, CurrentBackupItem.Name & " uses a relative path and the game path has not been set.", bNoAuto) sRestorePath = mgrPath.ProcessPathSearch(CurrentBackupItem.Name, sProcess, mgrCommon.FormatString(My.Resources.frmGameManager_ErrorPathNotSet, CurrentBackupItem.Name), bNoAuto)
If sRestorePath <> String.Empty Then If sRestorePath <> String.Empty Then
CurrentBackupItem.RelativeRestorePath = sRestorePath & "\" & CurrentBackupItem.RestorePath CurrentBackupItem.RelativeRestorePath = sRestorePath & "\" & CurrentBackupItem.RestorePath
@@ -482,7 +482,7 @@ Public Class frmGameManager
If Directory.Exists(sPath) Then If Directory.Exists(sPath) Then
Process.Start("explorer.exe", sPath) Process.Start("explorer.exe", sPath)
Else Else
mgrCommon.ShowMessage("The restore path does not exist.", MsgBoxStyle.Exclamation) mgrCommon.ShowMessage(My.Resources.frmGameManager_ErrorNoRestorePathExists, MsgBoxStyle.Exclamation)
End If End If
End Sub End Sub
@@ -522,7 +522,7 @@ Public Class frmGameManager
If oRemoteBackupData.Contains(oApp.Name) Then If oRemoteBackupData.Contains(oApp.Name) Then
CurrentBackupItem = DirectCast(oRemoteBackupData(oApp.Name), clsBackup) CurrentBackupItem = DirectCast(oRemoteBackupData(oApp.Name), clsBackup)
txtCurrentBackup.Text = CurrentBackupItem.DateUpdated & " by " & CurrentBackupItem.UpdatedBy txtCurrentBackup.Text = mgrCommon.FormatString(My.Resources.frmGameManager_BackupTimeAndName, New String() {CurrentBackupItem.DateUpdated, CurrentBackupItem.UpdatedBy})
sFileName = BackupFolder & CurrentBackupItem.FileName sFileName = BackupFolder & CurrentBackupItem.FileName
btnOpenBackupFile.Enabled = True btnOpenBackupFile.Enabled = True
@@ -534,16 +534,16 @@ Public Class frmGameManager
oFileInfo = New FileInfo(sFileName) oFileInfo = New FileInfo(sFileName)
dFileSize = oFileInfo.Length dFileSize = oFileInfo.Length
If dFileSize > 1048576 Then If dFileSize > 1048576 Then
txtFileSize.Text = Math.Round(dFileSize / 1048576, 2) & " MB" txtFileSize.Text = mgrCommon.FormatString(My.Resources.App_MB, Math.Round(dFileSize / 1048576, 2).ToString)
Else Else
txtFileSize.Text = Math.Round(dFileSize / 1024, 2) & " KB" txtFileSize.Text = mgrCommon.FormatString(My.Resources.App_KB, Math.Round(dFileSize / 1024, 2).ToString)
End If End If
Else Else
txtFileSize.Text = "Backup file was not found!" txtFileSize.Text = My.Resources.frmGameManager_ErrorNoBackupExists
End If End If
txtRestorePath.Text = CurrentBackupItem.RestorePath txtRestorePath.Text = CurrentBackupItem.RestorePath
Else Else
txtCurrentBackup.Text = "Never" txtCurrentBackup.Text = My.Resources.frmGameManager_Never
txtFileSize.Text = String.Empty txtFileSize.Text = String.Empty
txtRestorePath.Text = String.Empty txtRestorePath.Text = String.Empty
btnOpenBackupFile.Enabled = False btnOpenBackupFile.Enabled = False
@@ -554,25 +554,25 @@ Public Class frmGameManager
If oLocalBackupData.Contains(oApp.Name) Then If oLocalBackupData.Contains(oApp.Name) Then
oBackupInfo = DirectCast(oLocalBackupData(oApp.Name), clsBackup) oBackupInfo = DirectCast(oLocalBackupData(oApp.Name), clsBackup)
txtLocalBackup.Text = oBackupInfo.DateUpdated & " by " & oBackupInfo.UpdatedBy txtLocalBackup.Text = mgrCommon.FormatString(My.Resources.frmGameManager_BackupTimeAndName, New String() {oBackupInfo.DateUpdated, oBackupInfo.UpdatedBy})
Else Else
txtLocalBackup.Text = "Never" txtLocalBackup.Text = My.Resources.frmGameManager_Never
End If End If
If txtCurrentBackup.Text = "Never" And txtLocalBackup.Text = "Never" Then If txtCurrentBackup.Text = My.Resources.frmGameManager_Never And txtLocalBackup.Text = My.Resources.frmGameManager_Never Then
lblSync.Visible = False lblSync.Visible = False
btnMarkAsRestored.Enabled = False btnMarkAsRestored.Enabled = False
ElseIf txtCurrentBackup.Text = "Never" And txtLocalBackup.Text <> "Never" Then ElseIf txtCurrentBackup.Text = My.Resources.frmGameManager_Never And txtLocalBackup.Text <> My.Resources.frmGameManager_Never Then
lblSync.Visible = False lblSync.Visible = False
btnMarkAsRestored.Enabled = False btnMarkAsRestored.Enabled = False
ElseIf txtCurrentBackup.Text <> txtLocalBackup.Text Then ElseIf txtCurrentBackup.Text <> txtLocalBackup.Text Then
lblSync.ForeColor = Color.Red lblSync.ForeColor = Color.Red
lblSync.Text = "Out of Sync!" lblSync.Text = My.Resources.frmGameManager_OutofSync
lblSync.Visible = True lblSync.Visible = True
btnMarkAsRestored.Enabled = True btnMarkAsRestored.Enabled = True
Else Else
lblSync.ForeColor = Color.Green lblSync.ForeColor = Color.Green
lblSync.Text = "Up to Date!" lblSync.Text = My.Resources.frmGameManager_UpToDate
lblSync.Visible = True lblSync.Visible = True
btnMarkAsRestored.Enabled = False btnMarkAsRestored.Enabled = False
End If End If
@@ -583,8 +583,7 @@ Public Class frmGameManager
Dim oDir As DirectoryInfo Dim oDir As DirectoryInfo
Dim sSubDir As String Dim sSubDir As String
If mgrCommon.ShowMessage("This will delete the backup file and all records of this backup. This cannot be undone. " & vbCrLf & vbCrLf & "Do you want to remove the data for " _ If mgrCommon.ShowMessage(mgrCommon.FormatString(My.Resources.frmGameManager_ConfirmBackupDelete, CurrentBackupItem.Name), MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
& CurrentBackupItem.Name & "?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
mgrManifest.DoManifestDelete(CurrentBackupItem, mgrSQLite.Database.Local) mgrManifest.DoManifestDelete(CurrentBackupItem, mgrSQLite.Database.Local)
mgrManifest.DoManifestDelete(CurrentBackupItem, mgrSQLite.Database.Remote) mgrManifest.DoManifestDelete(CurrentBackupItem, mgrSQLite.Database.Remote)
@@ -601,9 +600,7 @@ Public Class frmGameManager
oDir = New DirectoryInfo(sSubDir) oDir = New DirectoryInfo(sSubDir)
If oDir.GetDirectories.Length > 0 Or oDir.GetFiles.Length > 0 Then If oDir.GetDirectories.Length > 0 Or oDir.GetFiles.Length > 0 Then
'Confirm 'Confirm
If mgrCommon.ShowMessage("The backup folder " & sSubDir & " still contains " & oDir.GetDirectories.Length & " directories and " & If mgrCommon.ShowMessage(mgrCommon.FormatString(My.Resources.frmGameManager_ConfirmBackupFolderDelete, New String() {sSubDir, oDir.GetDirectories.Length, oDir.GetFiles.Length}), MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
oDir.GetFiles.Length & " files." & vbCrLf & vbCrLf & "Do you want to delete the contents and remove the sub-folder for this game?",
MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
If Directory.Exists(sSubDir) Then Directory.Delete(sSubDir, True) If Directory.Exists(sSubDir) Then Directory.Delete(sSubDir, True)
End If End If
Else Else
@@ -644,8 +641,8 @@ Public Class frmGameManager
chkMonitorOnly.Checked = oApp.MonitorOnly chkMonitorOnly.Checked = oApp.MonitorOnly
'Update Buttons 'Update Buttons
UpdateBuilderButtonLabel(oApp.FileType, "In&clude", btnInclude, False) UpdateBuilderButtonLabel(oApp.FileType, My.Resources.frmGameManager_IncludeShortcut, btnInclude, False)
UpdateBuilderButtonLabel(oApp.ExcludeList, "E&xclude", btnExclude, False) UpdateBuilderButtonLabel(oApp.ExcludeList, My.Resources.frmGameManager_ExcludeShortcut, btnExclude, False)
'Extra 'Extra
txtAppPath.Text = oApp.ProcessPath txtAppPath.Text = oApp.ProcessPath
@@ -765,8 +762,8 @@ Public Class frmGameManager
chkMonitorOnly.Checked = False chkMonitorOnly.Checked = False
btnTags.Enabled = False btnTags.Enabled = False
lblTags.Visible = False lblTags.Visible = False
btnInclude.Text = "In&clude Items..." btnInclude.Text = My.Resources.frmGameManager_btnInclude
btnExclude.Text = "E&xclude Items..." btnExclude.Text = My.Resources.frmGameManager_btnExclude
btnImport.Enabled = False btnImport.Enabled = False
btnExport.Enabled = False btnExport.Enabled = False
Case eModes.Edit Case eModes.Edit
@@ -823,8 +820,8 @@ Public Class frmGameManager
btnBackup.Enabled = False btnBackup.Enabled = False
btnTags.Enabled = False btnTags.Enabled = False
lblTags.Visible = False lblTags.Visible = False
btnInclude.Text = "In&clude Items..." btnInclude.Text = My.Resources.frmGameManager_btnInclude
btnExclude.Text = "E&xclude Items..." btnExclude.Text = My.Resources.frmGameManager_btnExclude
btnImport.Enabled = True btnImport.Enabled = True
btnExport.Enabled = True btnExport.Enabled = True
Case eModes.Disabled Case eModes.Disabled
@@ -849,8 +846,8 @@ Public Class frmGameManager
btnMarkAsRestored.Enabled = False btnMarkAsRestored.Enabled = False
btnTags.Enabled = False btnTags.Enabled = False
lblTags.Visible = False lblTags.Visible = False
btnInclude.Text = "In&clude Items..." btnInclude.Text = My.Resources.frmGameManager_btnInclude
btnExclude.Text = "E&xclude Items..." btnExclude.Text = My.Resources.frmGameManager_btnExclude
btnImport.Enabled = True btnImport.Enabled = True
btnExport.Enabled = True btnExport.Enabled = True
Case eModes.MultiSelect Case eModes.MultiSelect
@@ -976,13 +973,11 @@ Public Class frmGameManager
End If End If
Case eModes.MultiSelect Case eModes.MultiSelect
Dim sMonitorIDs As New List(Of String) Dim sMonitorIDs As New List(Of String)
Dim sChanges As String
For Each oData In lstGames.SelectedItems For Each oData In lstGames.SelectedItems
sMonitorIDs.Add(AppData(oData.Key)) sMonitorIDs.Add(AppData(oData.Key))
Next Next
sChanges = vbCrLf & vbCrLf & "Monitor this game: " & mgrCommon.BooleanYesNo(oApp.Enabled) & vbCrLf & "Monitor only (No backup): " & mgrCommon.BooleanYesNo(oApp.MonitorOnly) If mgrCommon.ShowMessage(mgrCommon.FormatString(My.Resources.frmGameManager_ConfirmMultiSave, New String() {sMonitorIDs.Count, mgrCommon.BooleanYesNo(oApp.Enabled), mgrCommon.BooleanYesNo(oApp.MonitorOnly)}), MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
If mgrCommon.ShowMessage("Are you sure you want to save the following changes to " & sMonitorIDs.Count & " selected games?" & sChanges, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
bSuccess = True bSuccess = True
mgrMonitorList.DoListUpdateMulti(sMonitorIDs, oApp) mgrMonitorList.DoListUpdateMulti(sMonitorIDs, oApp)
eCurrentMode = eModes.Disabled eCurrentMode = eModes.Disabled
@@ -1008,7 +1003,7 @@ Public Class frmGameManager
oData = lstGames.SelectedItems(0) oData = lstGames.SelectedItems(0)
oApp = DirectCast(AppData(oData.Key), clsGame) oApp = DirectCast(AppData(oData.Key), clsGame)
If mgrCommon.ShowMessage("Are you sure you want to delete " & oApp.Name & "? This cannot be undone." & vbCrLf & vbCrLf & "This will not delete any backup files that already exist for this game.", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then If mgrCommon.ShowMessage(mgrCommon.FormatString(My.Resources.frmGameManager_ConfirmGameDelete, oApp.Name), MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
mgrMonitorList.DoListDelete(oApp.ID) mgrMonitorList.DoListDelete(oApp.ID)
LoadData() LoadData()
eCurrentMode = eModes.Disabled eCurrentMode = eModes.Disabled
@@ -1022,7 +1017,7 @@ Public Class frmGameManager
sMonitorIDs.Add(oApp.ID) sMonitorIDs.Add(oApp.ID)
Next Next
If mgrCommon.ShowMessage("Are you sure you want to delete the " & sMonitorIDs.Count & " selected games? This cannot be undone.", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then If mgrCommon.ShowMessage(mgrCommon.FormatString(My.Resources.frmGameManager_ConfirmMultiGameDelete, sMonitorIDs.Count), MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
mgrMonitorList.DoListDeleteMulti(sMonitorIDs) mgrMonitorList.DoListDeleteMulti(sMonitorIDs)
LoadData() LoadData()
eCurrentMode = eModes.Disabled eCurrentMode = eModes.Disabled
@@ -1044,25 +1039,25 @@ Public Class frmGameManager
Private Function CoreValidatation(ByVal oApp As clsGame) As Boolean Private Function CoreValidatation(ByVal oApp As clsGame) As Boolean
If txtName.Text = String.Empty Then If txtName.Text = String.Empty Then
mgrCommon.ShowMessage("You must enter a valid application name.", MsgBoxStyle.Exclamation) mgrCommon.ShowMessage(My.Resources.frmGameManager_ErrorValidName, MsgBoxStyle.Exclamation)
txtName.Focus() txtName.Focus()
Return False Return False
End If End If
If txtProcess.Text = String.Empty Then If txtProcess.Text = String.Empty Then
mgrCommon.ShowMessage("You must enter a valid process name.", MsgBoxStyle.Exclamation) mgrCommon.ShowMessage(My.Resources.frmGameManager_ErrorValidProcess, MsgBoxStyle.Exclamation)
txtProcess.Focus() txtProcess.Focus()
Return False Return False
End If End If
If chkFolderSave.Checked = False And txtFileType.Text = String.Empty Then If chkFolderSave.Checked = False And txtFileType.Text = String.Empty Then
mgrCommon.ShowMessage("You must choose items to include in the backup, or choose to save the entire folder.", MsgBoxStyle.Exclamation) mgrCommon.ShowMessage(My.Resources.frmGameManager_ErrorNoItems, MsgBoxStyle.Exclamation)
btnInclude.Focus() btnInclude.Focus()
Return False Return False
End If End If
If mgrMonitorList.DoDuplicateListCheck(oApp.Name, oApp.ProcessName, , oApp.ID) Then If mgrMonitorList.DoDuplicateListCheck(oApp.Name, oApp.ProcessName, , oApp.ID) Then
mgrCommon.ShowMessage("A game with this exact name and process already exists.", MsgBoxStyle.Exclamation) mgrCommon.ShowMessage(My.Resources.frmGameManager_ErrorGameDupe, MsgBoxStyle.Exclamation)
txtName.Focus() txtName.Focus()
Return False Return False
End If End If
@@ -1085,7 +1080,7 @@ Public Class frmGameManager
Next Next
If oMarkList.Count = 1 Then If oMarkList.Count = 1 Then
If mgrCommon.ShowMessage("Do you want to mark " & oMarkList(0).Name & " as restored? This cannot be undone.", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then If mgrCommon.ShowMessage(mgrCommon.FormatString(My.Resources.frmGameManager_ConfirmMark, oMarkList(0).Name), MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
bWasUpdated = True bWasUpdated = True
If mgrManifest.DoManifestCheck(oMarkList(0).Name, mgrSQLite.Database.Local) Then If mgrManifest.DoManifestCheck(oMarkList(0).Name, mgrSQLite.Database.Local) Then
mgrManifest.DoManifestUpdate(oMarkList(0), mgrSQLite.Database.Local) mgrManifest.DoManifestUpdate(oMarkList(0), mgrSQLite.Database.Local)
@@ -1094,7 +1089,7 @@ Public Class frmGameManager
End If End If
End If End If
ElseIf oMarkList.Count > 1 Then ElseIf oMarkList.Count > 1 Then
If mgrCommon.ShowMessage("Do you want to mark " & oMarkList.Count & " games as restored? This cannot be undone.", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then If mgrCommon.ShowMessage(mgrCommon.FormatString(My.Resources.frmGameManager_ConfirmMultiMark, oMarkList.Count), MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
bWasUpdated = True bWasUpdated = True
For Each oGameBackup In oMarkList For Each oGameBackup In oMarkList
If mgrManifest.DoManifestCheck(oGameBackup.Name, mgrSQLite.Database.Local) Then If mgrManifest.DoManifestCheck(oGameBackup.Name, mgrSQLite.Database.Local) Then
@@ -1105,7 +1100,7 @@ Public Class frmGameManager
Next Next
End If End If
Else Else
mgrCommon.ShowMessage("The selected game(s) have no backup data.", MsgBoxStyle.Information) mgrCommon.ShowMessage(My.Resources.frmGameManager_ErrorNoBackupData, MsgBoxStyle.Information)
End If End If
'Don't bother updating unless we actually did something 'Don't bother updating unless we actually did something
@@ -1139,9 +1134,9 @@ Public Class frmGameManager
Next Next
If BackupList.Count = 1 Then If BackupList.Count = 1 Then
sMsg = "Are you sure you want to run a backup for " & BackupList(0).Name & "? This will close the form." sMsg = mgrCommon.FormatString(My.Resources.frmGameManager_ConfirmBackup, BackupList(0).Name)
ElseIf BackupList.Count > 1 Then ElseIf BackupList.Count > 1 Then
sMsg = "Are you sure you want to run a backup for " & BackupList.Count & " games? This will close the form." sMsg = mgrCommon.FormatString(My.Resources.frmGameManager_ConfirmMultiBackup, BackupList.Count)
End If End If
If mgrCommon.ShowMessage(sMsg, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then If mgrCommon.ShowMessage(sMsg, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
@@ -1171,15 +1166,15 @@ Public Class frmGameManager
If RestoreList.Count = 1 Then If RestoreList.Count = 1 Then
bDoRestore = True bDoRestore = True
If Not mgrRestore.CheckManifest(RestoreList(0).Name) Then If Not mgrRestore.CheckManifest(RestoreList(0).Name) Then
sMsg = RestoreList(0).Name & " is already up to date." & vbCrLf & vbCrLf & "Would you like to restore this backup anyway?" sMsg = mgrCommon.FormatString(My.Resources.frmGameManager_ConfirmRestoreAnyway, RestoreList(0).Name)
Else Else
sMsg = "Are you sure you want to restore the backup for " & RestoreList(0).Name & "? This will close the form." sMsg = mgrCommon.FormatString(My.Resources.frmGameManager_ConfirmRestore, RestoreList(0).Name)
End If End If
ElseIf RestoreList.Count > 1 Then ElseIf RestoreList.Count > 1 Then
bDoRestore = True bDoRestore = True
sMsg = "Are you sure you want to restore the backups for " & RestoreList.Count & " games? This will close the form." sMsg = mgrCommon.FormatString(My.Resources.frmGameManager_ConfirmMultiRestore, RestoreList.Count)
Else Else
mgrCommon.ShowMessage("The selected game(s) have no backup data.", MsgBoxStyle.Information) mgrCommon.ShowMessage(My.Resources.frmGameManager_ErrorNoBackupData, MsgBoxStyle.Information)
End If End If
'We need this check in case a bunch of games with no backups are multi-selected 'We need this check in case a bunch of games with no backups are multi-selected
@@ -1195,7 +1190,7 @@ Public Class frmGameManager
Private Sub ImportGameListFile() Private Sub ImportGameListFile()
Dim sLocation As String Dim sLocation As String
sLocation = mgrCommon.OpenFileBrowser("Choose a valid xml file to import", "xml", "XML", Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), False) sLocation = mgrCommon.OpenFileBrowser(My.Resources.frmGameManager_ChooseImportXML, "xml", My.Resources.frmGameManager_XML, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), False)
If sLocation <> String.Empty Then If sLocation <> String.Empty Then
If mgrMonitorList.DoImport(sLocation) Then If mgrMonitorList.DoImport(sLocation) Then
@@ -1208,7 +1203,7 @@ Public Class frmGameManager
Private Sub ExportGameList() Private Sub ExportGameList()
Dim sLocation As String Dim sLocation As String
sLocation = mgrCommon.SaveFileBrowser("Choose a location for the export file", "xml", "XML", Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "Game Backup Monitor Export " & Date.Now.ToString("dd-MMM-yyyy")) sLocation = mgrCommon.SaveFileBrowser(My.Resources.frmGameManager_ChooseExportXML, "xml", My.Resources.frmGameManager_XML, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "Game Backup Monitor Export " & Date.Now.ToString("dd-MMM-yyyy"))
If sLocation <> String.Empty Then If sLocation <> String.Empty Then
mgrMonitorList.ExportMonitorList(sLocation) mgrMonitorList.ExportMonitorList(sLocation)
@@ -1218,7 +1213,7 @@ Public Class frmGameManager
Private Sub ImportOfficialGameList() Private Sub ImportOfficialGameList()
If mgrCommon.ShowMessage("Would you like to choose games to import from the official game list?" & vbCrLf & vbCrLf & "This require an active internet connection.", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then If mgrCommon.ShowMessage(mgrCommon.FormatString(My.Resources.frmGameManager_ConfirmOfficialImport), MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
If mgrMonitorList.DoImport(mgrPath.OfficialImportURL) Then If mgrMonitorList.DoImport(mgrPath.OfficialImportURL) Then
LoadData() LoadData()
End If End If
@@ -1226,7 +1221,55 @@ Public Class frmGameManager
End Sub End Sub
Private Sub SetForm()
'Set Form Name
Me.Name = My.Resources.frmGameManager_FormName
'Set Form text
btnExport.Text = My.Resources.frmGameManager_btnExport
btnImport.Text = My.Resources.frmGameManager_btnImport
optCustom.Text = My.Resources.frmGameManager_optCustom
optBackupData.Text = My.Resources.frmGameManager_optBackupData
optPendingRestores.Text = My.Resources.frmGameManager_optPendingRestores
optAllGames.Text = My.Resources.frmGameManager_optAllGames
btnTags.Text = My.Resources.frmGameManager_btnTags
chkEnabled.Text = My.Resources.frmGameManager_chkEnabled
btnCancel.Text = My.Resources.frmGameManager_btnCancel
chkMonitorOnly.Text = My.Resources.frmGameManager_chkMonitorOnly
btnMarkAsRestored.Text = My.Resources.frmGameManager_btnMarkAsRestored
btnRestore.Text = My.Resources.frmGameManager_btnRestore
btnSave.Text = My.Resources.frmGameManager_btnSave
lblRestorePath.Text = My.Resources.frmGameManager_lblRestorePath
btnOpenRestorePath.Text = My.Resources.frmGameManager_btnOpenRestorePath
btnOpenBackupFile.Text = My.Resources.frmGameManager_btnOpenBackupFile
btnDeleteBackup.Text = My.Resources.frmGameManager_btnDeleteBackup
lblFileSize.Text = My.Resources.frmGameManager_lblFileSize
lblCurrentBackup.Text = My.Resources.frmGameManager_lblCurrentBackup
lblLastBackup.Text = My.Resources.frmGameManager_lblLastBackup
btnIconBrowse.Text = My.Resources.frmGameManager_btnIconBrowse
lblVersion.Text = My.Resources.frmGameManager_lblVersion
lblCompany.Text = My.Resources.frmGameManager_lblCompany
lblIcon.Text = My.Resources.frmGameManager_lblIcon
btnAppPathBrowse.Text = My.Resources.frmGameManager_btnAppPathBrowse
lblGamePath.Text = My.Resources.frmGameManager_lblGamePath
lblHours.Text = My.Resources.frmGameManager_lblHours
btnExclude.Text = My.Resources.frmGameManager_btnExclude
btnInclude.Text = My.Resources.frmGameManager_btnInclude
btnSavePathBrowse.Text = My.Resources.frmGameManager_btnSavePathBrowse
btnProcessBrowse.Text = My.Resources.frmGameManager_btnProcessBrowse
lblSavePath.Text = My.Resources.frmGameManager_lblSavePath
lblProcess.Text = My.Resources.frmGameManager_lblProcess
lblName.Text = My.Resources.frmGameManager_lblName
chkTimeStamp.Text = My.Resources.frmGameManager_chkTimeStamp
chkFolderSave.Text = My.Resources.frmGameManager_chkFolderSave
btnBackup.Text = My.Resources.frmGameManager_btnBackup
btnClose.Text = My.Resources.frmGameManager_btnClose
btnDelete.Text = My.Resources.frmGameManager_btnDelete
btnAdd.Text = My.Resources.frmGameManager_btnAdd
End Sub
Private Sub frmGameManager_Load(sender As Object, e As EventArgs) Handles MyBase.Load Private Sub frmGameManager_Load(sender As Object, e As EventArgs) Handles MyBase.Load
SetForm()
If DisableExternalFunctions Then If DisableExternalFunctions Then
btnBackup.Visible = False btnBackup.Visible = False
@@ -1342,14 +1385,14 @@ Public Class frmGameManager
Private Sub btnInclude_Click(sender As Object, e As EventArgs) Handles btnInclude.Click Private Sub btnInclude_Click(sender As Object, e As EventArgs) Handles btnInclude.Click
Dim sInclude As String = txtFileType.Text Dim sInclude As String = txtFileType.Text
OpenBuilder("Include", txtFileType) OpenBuilder(My.Resources.frmGameManager_Include, txtFileType)
UpdateBuilderButtonLabel(txtFileType.Text, "In&clude", btnInclude, (sInclude <> txtFileType.Text)) UpdateBuilderButtonLabel(txtFileType.Text, My.Resources.frmGameManager_IncludeShortcut, btnInclude, (sInclude <> txtFileType.Text))
End Sub End Sub
Private Sub btnExclude_Click(sender As Object, e As EventArgs) Handles btnExclude.Click Private Sub btnExclude_Click(sender As Object, e As EventArgs) Handles btnExclude.Click
Dim sExclude As String = txtExclude.Text Dim sExclude As String = txtExclude.Text
OpenBuilder("Exclude", txtExclude) OpenBuilder(My.Resources.frmGameManager_Exclude, txtExclude)
UpdateBuilderButtonLabel(txtExclude.Text, "E&xclude", btnExclude, (sExclude <> txtExclude.Text)) UpdateBuilderButtonLabel(txtExclude.Text, My.Resources.frmGameManager_ExcludeShortcut, btnExclude, (sExclude <> txtExclude.Text))
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
@@ -1357,7 +1400,7 @@ Public Class frmGameManager
btnInclude.Enabled = False btnInclude.Enabled = False
If txtFileType.Text <> String.Empty Then If txtFileType.Text <> String.Empty Then
txtFileType.Text = String.Empty txtFileType.Text = String.Empty
UpdateBuilderButtonLabel(txtFileType.Text, "In&clude", btnInclude, False) UpdateBuilderButtonLabel(txtFileType.Text, My.Resources.frmGameManager_IncludeShortcut, btnInclude, False)
End If End If
Else Else
btnInclude.Enabled = True btnInclude.Enabled = True
+16 -12
View File
@@ -548,9 +548,9 @@ Public Class frmMain
Dim sVersion As String = My.Application.Info.Version.Major & "." & My.Application.Info.Version.Minor Dim sVersion As String = My.Application.Info.Version.Major & "." & My.Application.Info.Version.Minor
Dim sProcessType = [Enum].GetName(GetType(System.Reflection.ProcessorArchitecture), iProcessType) Dim sProcessType = [Enum].GetName(GetType(System.Reflection.ProcessorArchitecture), iProcessType)
Dim sRevision As String = My.Application.Info.Version.Build & "." & My.Application.Info.Version.Revision Dim sRevision As String = My.Application.Info.Version.Build & "." & My.Application.Info.Version.Revision
Dim sConstCopyright As String = Chr(169) & My.Resources.AppCopyright Dim sConstCopyright As String = Chr(169) & My.Resources.App_Copyright
mgrCommon.ShowMessage(mgrCommon.FormatString(My.Resources.AppAbout, New String() {sVersion, sProcessType, sRevision, sConstCopyright}), MsgBoxStyle.Information) mgrCommon.ShowMessage(mgrCommon.FormatString(My.Resources.frmMain_About, New String() {sVersion, sProcessType, sRevision, sConstCopyright}), MsgBoxStyle.Information)
End Sub End Sub
Private Sub OpenTags() Private Sub OpenTags()
@@ -811,7 +811,7 @@ Public Class frmMain
Dim bClose As Boolean = False Dim bClose As Boolean = False
If bPrompt Then If bPrompt Then
If mgrCommon.ShowMessage(My.Resources.AppExit, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then If mgrCommon.ShowMessage(My.Resources.frmMain_Exit, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
bClose = True bClose = True
End If End If
Else Else
@@ -948,6 +948,9 @@ Public Class frmMain
End Sub End Sub
Private Sub SetForm() Private Sub SetForm()
'Set Form Name
Me.Name = My.Resources.App_NameLong
'Set Menu Text 'Set Menu Text
gMonFile.Text = My.Resources.frmMain_gMonFile gMonFile.Text = My.Resources.frmMain_gMonFile
gMonFileMonitor.Text = My.Resources.frmMain_gMonFileMonitor_Start gMonFileMonitor.Text = My.Resources.frmMain_gMonFileMonitor_Start
@@ -985,6 +988,7 @@ Public Class frmMain
lblLastActionTitle.Text = My.Resources.frmMain_lblLastActionTitle lblLastActionTitle.Text = My.Resources.frmMain_lblLastActionTitle
btnCancelOperation.Text = My.Resources.frmMain_btnCancelOperation btnCancelOperation.Text = My.Resources.frmMain_btnCancelOperation
gMonStripStatusButton.Text = My.Resources.frmMain_gMonStripStatusButton gMonStripStatusButton.Text = My.Resources.frmMain_gMonStripStatusButton
gMonStripStatusButton.ToolTipText = My.Resources.frmMain_gMonStripStatusButtonToolTip
If mgrCommon.IsElevated Then If mgrCommon.IsElevated Then
gMonStripAdminButton.Image = My.Resources.Admin gMonStripAdminButton.Image = My.Resources.Admin
@@ -1181,17 +1185,17 @@ Public Class frmMain
PauseScan() PauseScan()
If mgrCommon.ShowMessage(mgrCommon.FormatString(My.Resources.AppConfirmClean), MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then If mgrCommon.ShowMessage(mgrCommon.FormatString(My.Resources.frmMain_ConfirmManifestClean), MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
slItems = mgrRestore.SyncLocalManifest() slItems = mgrRestore.SyncLocalManifest()
If slItems.Count > 0 Then If slItems.Count > 0 Then
For Each oItem As clsBackup In slItems.Values For Each oItem As clsBackup In slItems.Values
UpdateLog(mgrCommon.FormatString(My.Resources.AppCleanedGame, oItem.Name), False) UpdateLog(mgrCommon.FormatString(My.Resources.frmMain_ManifestRemovedEntry, oItem.Name), False)
Next Next
mgrCommon.ShowMessage(mgrCommon.FormatString(My.Resources.AppCleanedTotal, slItems.Count), MsgBoxStyle.Information) mgrCommon.ShowMessage(mgrCommon.FormatString(My.Resources.frmMain_ManifestTotalRemoved, slItems.Count), MsgBoxStyle.Information)
Else Else
mgrCommon.ShowMessage(My.Resources.AppAlreadyClean, MsgBoxStyle.Information) mgrCommon.ShowMessage(My.Resources.frmMain_ManifestAreadyClean, MsgBoxStyle.Information)
End If End If
End If End If
@@ -1205,18 +1209,18 @@ Public Class frmMain
PauseScan() PauseScan()
If mgrCommon.ShowMessage(mgrCommon.FormatString(My.Resources.AppConfirmRebuild), MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then If mgrCommon.ShowMessage(mgrCommon.FormatString(My.Resources.frmMain_ConfirmRebuild), MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
oLocalDatabase = New mgrSQLite(mgrSQLite.Database.Local) oLocalDatabase = New mgrSQLite(mgrSQLite.Database.Local)
oRemoteDatabase = New mgrSQLite(mgrSQLite.Database.Remote) oRemoteDatabase = New mgrSQLite(mgrSQLite.Database.Remote)
UpdateLog(mgrCommon.FormatString(My.Resources.AppLocalCompactInit, oLocalDatabase.GetDBSize), False) UpdateLog(mgrCommon.FormatString(My.Resources.frmMain_LocalCompactInit, oLocalDatabase.GetDBSize), False)
oLocalDatabase.CompactDatabase() oLocalDatabase.CompactDatabase()
UpdateLog(mgrCommon.FormatString(My.Resources.AppLocalCompactComplete, oLocalDatabase.GetDBSize), False) UpdateLog(mgrCommon.FormatString(My.Resources.frmMain_LocalCompactComplete, oLocalDatabase.GetDBSize), False)
UpdateLog(mgrCommon.FormatString(My.Resources.AppRemoteCompactInit, oRemoteDatabase.GetDBSize), False) UpdateLog(mgrCommon.FormatString(My.Resources.frmMain_RemoteCompactInit, oRemoteDatabase.GetDBSize), False)
oRemoteDatabase.CompactDatabase() oRemoteDatabase.CompactDatabase()
UpdateLog(mgrCommon.FormatString(My.Resources.AppRemoteCompactComplete, oRemoteDatabase.GetDBSize), False) UpdateLog(mgrCommon.FormatString(My.Resources.frmMain_RemoteCompactComplete, oRemoteDatabase.GetDBSize), False)
End If End If
ResumeScan() ResumeScan()
+25 -1
View File
@@ -127,7 +127,7 @@ Public Class mgrCommon
Public Shared Function ShowMessage(ByVal sMsg As String, ByVal oType As MsgBoxStyle) As MsgBoxResult Public Shared Function ShowMessage(ByVal sMsg As String, ByVal oType As MsgBoxStyle) As MsgBoxResult
Dim oResult As MsgBoxResult Dim oResult As MsgBoxResult
oResult = MsgBox(sMsg, oType, My.Resources.AppNameLong) oResult = MsgBox(sMsg, oType, My.Resources.App_NameLong)
Return oResult Return oResult
End Function End Function
@@ -162,5 +162,29 @@ Public Class mgrCommon
Return sString Return sString
End Function End Function
'Maintenance Only - Function for string management
Public Shared Sub GetAllStrings(ByVal ctlParent As Control, ByRef sResource As String, ByRef sCode As String, ByVal sFormName As String)
For Each ctl As Control In ctlParent.Controls
If TypeOf ctl Is GroupBox Then
GetAllStrings(ctl, sResource, sCode, sFormName)
ElseIf TypeOf ctl Is TabControl Then
For Each tb As TabPage In ctl.Controls
GetAllStrings(tb, sResource, sCode, sFormName)
Next
ElseIf TypeOf ctl Is Label Then
sResource &= sFormName & "_" & ctl.Name & vbTab & ctl.Text & vbCrLf
sCode &= ctl.Name & ".Text = My.Resources." & sFormName & "_" & ctl.Name & vbCrLf
ElseIf TypeOf ctl Is Button Then
sResource &= sFormName & "_" & ctl.Name & vbTab & ctl.Text & vbCrLf
sCode &= ctl.Name & ".Text = My.Resources." & sFormName & "_" & ctl.Name & vbCrLf
ElseIf TypeOf ctl Is RadioButton Then
sResource &= sFormName & "_" & ctl.Name & vbTab & ctl.Text & vbCrLf
sCode &= ctl.Name & ".Text = My.Resources." & sFormName & "_" & ctl.Name & vbCrLf
ElseIf TypeOf ctl Is CheckBox Then
sResource &= sFormName & "_" & ctl.Name & vbTab & ctl.Text & vbCrLf
sCode &= ctl.Name & ".Text = My.Resources." & sFormName & "_" & ctl.Name & vbCrLf
End If
Next
End Sub
End Class End Class
+850 -85
View File
File diff suppressed because it is too large Load Diff
+268 -13
View File
@@ -121,46 +121,46 @@
<data name="Admin" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Admin" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Admin.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\Admin.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="AppAbout" xml:space="preserve"> <data name="frmMain_About" xml:space="preserve">
<value>Game Backup Monitor[BR]Version: [PARAM] Beta ([PARAM])[BR]Build: [PARAM][BR][PARAM][BR][BR]This program comes with ABSOLUTELY NO WARRANTY.[BR]This is free software, and you are welcome to redistribute it under certain conditions.[BR][BR]See gpl-3.0.html in the program folder for details.</value> <value>Game Backup Monitor[BR]Version: [PARAM] Beta ([PARAM])[BR]Build: [PARAM][BR][PARAM][BR][BR]This program comes with ABSOLUTELY NO WARRANTY.[BR]This is free software, and you are welcome to redistribute it under certain conditions.[BR][BR]See gpl-3.0.html in the program folder for details.</value>
</data> </data>
<data name="AppAlreadyClean" xml:space="preserve"> <data name="frmMain_ManifestAreadyClean" xml:space="preserve">
<value>The local manifest is clean.</value> <value>The local manifest is clean.</value>
</data> </data>
<data name="AppCleanedGame" xml:space="preserve"> <data name="frmMain_ManifestRemovedEntry" xml:space="preserve">
<value>[PARAM] entry was removed from local manfiest.</value> <value>[PARAM] entry was removed from local manfiest.</value>
</data> </data>
<data name="AppCleanedTotal" xml:space="preserve"> <data name="frmMain_ManifestTotalRemoved" xml:space="preserve">
<value>[PARAM] entries were removed from the local manifest.</value> <value>[PARAM] entries were removed from the local manifest.</value>
</data> </data>
<data name="AppConfirmClean" xml:space="preserve"> <data name="frmMain_ConfirmManifestClean" xml:space="preserve">
<value>This tool removes orphaned backup information from the local manifest based on the current backup folder. Data can become orphaned when backups are deleted by various computers that share the same backup folder on a cloud or network.[BR][BR]When alternating between different backup folders you should NOT use this tool.[BR][BR]Do you wish to proceed?</value> <value>This tool removes orphaned backup information from the local manifest based on the current backup folder. Data can become orphaned when backups are deleted by various computers that share the same backup folder on a cloud or network.[BR][BR]When alternating between different backup folders you should NOT use this tool.[BR][BR]Do you wish to proceed?</value>
</data> </data>
<data name="AppConfirmRebuild" xml:space="preserve"> <data name="frmMain_ConfirmRebuild" xml:space="preserve">
<value>This will rebuild all databases and shrink them to an optimal size.[BR]This should only be used if your gbm.s3db files are becoming very large.[BR][BR]Do you wish to continue?</value> <value>This will rebuild all databases and shrink them to an optimal size.[BR]This should only be used if your gbm.s3db files are becoming very large.[BR][BR]Do you wish to continue?</value>
</data> </data>
<data name="AppCopyright" xml:space="preserve"> <data name="App_Copyright" xml:space="preserve">
<value>2015 Michael J. Seiferling</value> <value>2015 Michael J. Seiferling</value>
</data> </data>
<data name="AppExit" xml:space="preserve"> <data name="frmMain_Exit" xml:space="preserve">
<value>Are you sure you want to exit? Your games will no longer be monitored.</value> <value>Are you sure you want to exit? Your games will no longer be monitored.</value>
</data> </data>
<data name="AppLocalCompactComplete" xml:space="preserve"> <data name="frmMain_LocalCompactComplete" xml:space="preserve">
<value>Local Database Vacuum Completed: [PARAM] KB</value> <value>Local Database Vacuum Completed: [PARAM] KB</value>
</data> </data>
<data name="AppLocalCompactInit" xml:space="preserve"> <data name="frmMain_LocalCompactInit" xml:space="preserve">
<value>Local Database Vacuum Initialized: [PARAM] KB</value> <value>Local Database Vacuum Initialized: [PARAM] KB</value>
</data> </data>
<data name="AppNameLong" xml:space="preserve"> <data name="App_NameLong" xml:space="preserve">
<value>Game Backup Monitor</value> <value>Game Backup Monitor</value>
</data> </data>
<data name="AppNameShort" xml:space="preserve"> <data name="AppNameShort" xml:space="preserve">
<value>GBM</value> <value>GBM</value>
</data> </data>
<data name="AppRemoteCompactComplete" xml:space="preserve"> <data name="frmMain_RemoteCompactComplete" xml:space="preserve">
<value>Remote Database Vacuum Completed: [PARAM] KB</value> <value>Remote Database Vacuum Completed: [PARAM] KB</value>
</data> </data>
<data name="AppRemoteCompactInit" xml:space="preserve"> <data name="frmMain_RemoteCompactInit" xml:space="preserve">
<value>Remote Database Vacuum Initialized: [PARAM] KB</value> <value>Remote Database Vacuum Initialized: [PARAM] KB</value>
</data> </data>
<data name="Clock" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Clock" type="System.Resources.ResXFileRef, System.Windows.Forms">
@@ -418,4 +418,259 @@
<data name="frmMain_lblLastActionTitle" xml:space="preserve"> <data name="frmMain_lblLastActionTitle" xml:space="preserve">
<value>Last Action:</value> <value>Last Action:</value>
</data> </data>
<data name="frmMain_gMonStripStatusButtonToolTip" xml:space="preserve">
<value>Click to toggle monitoring on or off.</value>
</data>
<data name="App_ConfirmDirty" xml:space="preserve">
<value>There are unsaved changes on this form. Do you want to save?</value>
</data>
<data name="App_KB" xml:space="preserve">
<value>[PARAM] KB</value>
</data>
<data name="App_MB" xml:space="preserve">
<value>[PARAM] MB</value>
</data>
<data name="frmGameManager_BackupTimeAndName" xml:space="preserve">
<value>[PARAM] by [PARAM]</value>
</data>
<data name="frmGameManager_btnAdd" xml:space="preserve">
<value>+</value>
</data>
<data name="frmGameManager_btnAppPathBrowse" xml:space="preserve">
<value>...</value>
</data>
<data name="frmGameManager_btnBackup" xml:space="preserve">
<value>&amp;Backup</value>
</data>
<data name="frmGameManager_btnCancel" xml:space="preserve">
<value>&amp;Cancel</value>
</data>
<data name="frmGameManager_btnClose" xml:space="preserve">
<value>C&amp;lose</value>
</data>
<data name="frmGameManager_btnDelete" xml:space="preserve">
<value>-</value>
</data>
<data name="frmGameManager_btnDeleteBackup" xml:space="preserve">
<value>&amp;Delete Backup</value>
</data>
<data name="frmGameManager_btnExclude" xml:space="preserve">
<value>E&amp;xclude Items...</value>
</data>
<data name="frmGameManager_btnExport" xml:space="preserve">
<value>&amp;Export</value>
</data>
<data name="frmGameManager_btnIconBrowse" xml:space="preserve">
<value>...</value>
</data>
<data name="frmGameManager_btnImport" xml:space="preserve">
<value>&amp;Import</value>
</data>
<data name="frmGameManager_btnInclude" xml:space="preserve">
<value>In&amp;clude Items...</value>
</data>
<data name="frmGameManager_btnMarkAsRestored" xml:space="preserve">
<value>&amp;Mark as Restored</value>
</data>
<data name="frmGameManager_btnOpenBackupFile" xml:space="preserve">
<value>&amp;Open Backup File</value>
</data>
<data name="frmGameManager_btnOpenRestorePath" xml:space="preserve">
<value>O&amp;pen Restore Path</value>
</data>
<data name="frmGameManager_btnProcessBrowse" xml:space="preserve">
<value>...</value>
</data>
<data name="frmGameManager_btnRestore" xml:space="preserve">
<value>&amp;Restore</value>
</data>
<data name="frmGameManager_btnSave" xml:space="preserve">
<value>&amp;Save</value>
</data>
<data name="frmGameManager_btnSavePathBrowse" xml:space="preserve">
<value>...</value>
</data>
<data name="frmGameManager_btnTags" xml:space="preserve">
<value>Tags...</value>
</data>
<data name="frmGameManager_chkEnabled" xml:space="preserve">
<value>Monitor this game</value>
</data>
<data name="frmGameManager_chkFolderSave" xml:space="preserve">
<value>Save entire folder</value>
</data>
<data name="frmGameManager_chkMonitorOnly" xml:space="preserve">
<value>Monitor only</value>
</data>
<data name="frmGameManager_chkTimeStamp" xml:space="preserve">
<value>Timestamp each backup</value>
</data>
<data name="frmGameManager_ChooseCustomIcon" xml:space="preserve">
<value>Choose a custom icon for the game</value>
</data>
<data name="frmGameManager_ChooseExe" xml:space="preserve">
<value>Choose exe file that starts the application</value>
</data>
<data name="frmGameManager_ChooseExePath" xml:space="preserve">
<value>Choose the location of application's exe file:</value>
</data>
<data name="frmGameManager_ChooseExportXML" xml:space="preserve">
<value>Choose a location for the export file</value>
</data>
<data name="frmGameManager_ChooseImportXML" xml:space="preserve">
<value>Choose a valid xml file to import</value>
</data>
<data name="frmGameManager_ChooseSaveFolder" xml:space="preserve">
<value>Choose the saved game folder:</value>
</data>
<data name="frmGameManager_ConfirmBackup" xml:space="preserve">
<value>Are you sure you want to run a backup for [PARAM]? This will close the form.</value>
</data>
<data name="frmGameManager_ConfirmBackupDelete" xml:space="preserve">
<value>This will delete the backup file and all records of this backup. This cannot be undone. [BR][BR]Do you want to remove the data for [PARAM]?</value>
</data>
<data name="frmGameManager_ConfirmBackupFolderDelete" xml:space="preserve">
<value>The backup folder [PARAM] still contains [PARAM] directories and [PARAM] files.[BR][BR]Do you want to delete the contents and remove the sub-folder for this game?</value>
</data>
<data name="frmGameManager_ConfirmGameDelete" xml:space="preserve">
<value>Are you sure you want to delete [PARAM]? This cannot be undone.[BR][BR]This will not delete any backup files that already exist for this game.</value>
</data>
<data name="frmGameManager_ConfirmMark" xml:space="preserve">
<value>Do you want to mark [PARAM] as restored? This cannot be undone.</value>
</data>
<data name="frmGameManager_ConfirmMultiBackup" xml:space="preserve">
<value>Are you sure you want to run a backup for [PARAM] games? This will close the form.</value>
</data>
<data name="frmGameManager_ConfirmMultiGameDelete" xml:space="preserve">
<value>Are you sure you want to delete the [PARAM] selected games? This cannot be undone.</value>
</data>
<data name="frmGameManager_ConfirmMultiMark" xml:space="preserve">
<value>Do you want to mark [PARAM] games as restored? This cannot be undone.</value>
</data>
<data name="frmGameManager_ConfirmMultiRestore" xml:space="preserve">
<value>Are you sure you want to restore the backups for [PARAM] games? This will close the form.</value>
</data>
<data name="frmGameManager_ConfirmMultiSave" xml:space="preserve">
<value>Are you sure you want to save the following changes to [PARAM] selected games?[BR][BR]Monitor this game: [PARAM][BR]Monitor only: [PARAM]</value>
</data>
<data name="frmGameManager_ConfirmOfficialImport" xml:space="preserve">
<value>Would you like to choose games to import from the official game list?[BR][BR]This require an active internet connection.</value>
</data>
<data name="frmGameManager_ConfirmRestore" xml:space="preserve">
<value>Are you sure you want to restore the backup for [PARAM]? This will close the form.</value>
</data>
<data name="frmGameManager_ConfirmRestoreAnyway" xml:space="preserve">
<value>[PARAM] is already up to date.[BR][BR]Would you like to restore this backup anyway?</value>
</data>
<data name="frmGameManager_ErrorGameDupe" xml:space="preserve">
<value>A game with this exact name and process already exists.</value>
</data>
<data name="frmGameManager_ErrorNoBackupData" xml:space="preserve">
<value>The selected game(s) have no backup data.</value>
</data>
<data name="frmGameManager_ErrorNoBackupExists" xml:space="preserve">
<value>The backup file does not exist.</value>
</data>
<data name="frmGameManager_ErrorNoItems" xml:space="preserve">
<value>You must choose items to include in the backup, or choose to save the entire folder.</value>
</data>
<data name="frmGameManager_ErrorNoRestorePathExists" xml:space="preserve">
<value>The restore path does not exist.</value>
</data>
<data name="frmGameManager_ErrorPathNotSet" xml:space="preserve">
<value>[PARAM] uses a relative path and the game path has not been set.</value>
</data>
<data name="frmGameManager_ErrorValidName" xml:space="preserve">
<value>You must enter a valid game name.</value>
</data>
<data name="frmGameManager_ErrorValidProcess" xml:space="preserve">
<value>You must enter a valid process name.</value>
</data>
<data name="frmGameManager_Exclude" xml:space="preserve">
<value>Exclude</value>
</data>
<data name="frmGameManager_ExcludeShortcut" xml:space="preserve">
<value>E&amp;xclude</value>
</data>
<data name="frmGameManager_Executable" xml:space="preserve">
<value>Executable</value>
</data>
<data name="frmGameManager_FormName" xml:space="preserve">
<value>Game Manager</value>
</data>
<data name="frmGameManager_Icon" xml:space="preserve">
<value>Icon</value>
</data>
<data name="frmGameManager_Include" xml:space="preserve">
<value>Include</value>
</data>
<data name="frmGameManager_IncludeShortcut" xml:space="preserve">
<value>In&amp;clude</value>
</data>
<data name="frmGameManager_Items" xml:space="preserve">
<value>Items...</value>
</data>
<data name="frmGameManager_ItemsExist" xml:space="preserve">
<value>Items... ([PARAM])</value>
</data>
<data name="frmGameManager_lblCompany" xml:space="preserve">
<value>Company:</value>
</data>
<data name="frmGameManager_lblCurrentBackup" xml:space="preserve">
<value>Current Backup:</value>
</data>
<data name="frmGameManager_lblFileSize" xml:space="preserve">
<value>Backup Size:</value>
</data>
<data name="frmGameManager_lblGamePath" xml:space="preserve">
<value>Game Path:</value>
</data>
<data name="frmGameManager_lblHours" xml:space="preserve">
<value>Hours:</value>
</data>
<data name="frmGameManager_lblIcon" xml:space="preserve">
<value>Icon:</value>
</data>
<data name="frmGameManager_lblLastBackup" xml:space="preserve">
<value>Local Backup:</value>
</data>
<data name="frmGameManager_lblName" xml:space="preserve">
<value>Name:</value>
</data>
<data name="frmGameManager_lblProcess" xml:space="preserve">
<value>Process:</value>
</data>
<data name="frmGameManager_lblRestorePath" xml:space="preserve">
<value>Restore Path:</value>
</data>
<data name="frmGameManager_lblSavePath" xml:space="preserve">
<value>Save Path:</value>
</data>
<data name="frmGameManager_lblVersion" xml:space="preserve">
<value>Version:</value>
</data>
<data name="frmGameManager_Never" xml:space="preserve">
<value>Never</value>
</data>
<data name="frmGameManager_optAllGames" xml:space="preserve">
<value>All</value>
</data>
<data name="frmGameManager_optBackupData" xml:space="preserve">
<value>Backups Only</value>
</data>
<data name="frmGameManager_optCustom" xml:space="preserve">
<value>Custom</value>
</data>
<data name="frmGameManager_optPendingRestores" xml:space="preserve">
<value>New Saves Pending</value>
</data>
<data name="frmGameManager_OutofSync" xml:space="preserve">
<value>Out of Sync</value>
</data>
<data name="frmGameManager_UpToDate" xml:space="preserve">
<value>Up to Date!</value>
</data>
<data name="frmGameManager_XML" xml:space="preserve">
<value>XML</value>
</data>
</root> </root>