Minor changes to process and tag features

This commit is contained in:
MikeMaximus
2018-03-08 18:49:11 -06:00
parent 28a260bdfc
commit 108ab4931f
7 changed files with 87 additions and 56 deletions
+8 -8
View File
@@ -37,7 +37,7 @@ Partial Class frmGameProcesses
Me.btnOpenProcesses.Location = New System.Drawing.Point(12, 229)
Me.btnOpenProcesses.Name = "btnOpenProcesses"
Me.btnOpenProcesses.Size = New System.Drawing.Size(110, 23)
Me.btnOpenProcesses.TabIndex = 12
Me.btnOpenProcesses.TabIndex = 4
Me.btnOpenProcesses.Text = "&Process Manager..."
Me.btnOpenProcesses.UseVisualStyleBackColor = True
'
@@ -46,7 +46,7 @@ Partial Class frmGameProcesses
Me.btnClose.Location = New System.Drawing.Point(297, 229)
Me.btnClose.Name = "btnClose"
Me.btnClose.Size = New System.Drawing.Size(75, 23)
Me.btnClose.TabIndex = 13
Me.btnClose.TabIndex = 5
Me.btnClose.Text = "&Close"
Me.btnClose.UseVisualStyleBackColor = True
'
@@ -56,7 +56,7 @@ Partial Class frmGameProcesses
Me.lblGameProcesses.Location = New System.Drawing.Point(251, 8)
Me.lblGameProcesses.Name = "lblGameProcesses"
Me.lblGameProcesses.Size = New System.Drawing.Size(93, 13)
Me.lblGameProcesses.TabIndex = 6
Me.lblGameProcesses.TabIndex = 0
Me.lblGameProcesses.Text = "Current Processes"
'
'lblProcesses
@@ -65,7 +65,7 @@ Partial Class frmGameProcesses
Me.lblProcesses.Location = New System.Drawing.Point(36, 8)
Me.lblProcesses.Name = "lblProcesses"
Me.lblProcesses.Size = New System.Drawing.Size(102, 13)
Me.lblProcesses.TabIndex = 7
Me.lblProcesses.TabIndex = 0
Me.lblProcesses.Text = "Available Processes"
'
'btnRemove
@@ -73,7 +73,7 @@ Partial Class frmGameProcesses
Me.btnRemove.Location = New System.Drawing.Point(168, 114)
Me.btnRemove.Name = "btnRemove"
Me.btnRemove.Size = New System.Drawing.Size(48, 23)
Me.btnRemove.TabIndex = 10
Me.btnRemove.TabIndex = 2
Me.btnRemove.Text = "<"
Me.btnRemove.UseVisualStyleBackColor = True
'
@@ -82,7 +82,7 @@ Partial Class frmGameProcesses
Me.btnAdd.Location = New System.Drawing.Point(168, 85)
Me.btnAdd.Name = "btnAdd"
Me.btnAdd.Size = New System.Drawing.Size(48, 23)
Me.btnAdd.TabIndex = 9
Me.btnAdd.TabIndex = 1
Me.btnAdd.Text = ">"
Me.btnAdd.UseVisualStyleBackColor = True
'
@@ -94,7 +94,7 @@ Partial Class frmGameProcesses
Me.lstGameProcesses.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended
Me.lstGameProcesses.Size = New System.Drawing.Size(150, 199)
Me.lstGameProcesses.Sorted = True
Me.lstGameProcesses.TabIndex = 11
Me.lstGameProcesses.TabIndex = 3
'
'lstProcesses
'
@@ -104,7 +104,7 @@ Partial Class frmGameProcesses
Me.lstProcesses.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended
Me.lstProcesses.Size = New System.Drawing.Size(150, 199)
Me.lstProcesses.Sorted = True
Me.lstProcesses.TabIndex = 8
Me.lstProcesses.TabIndex = 0
'
'frmGameProcesses
'
+8 -8
View File
@@ -145,7 +145,7 @@ Partial Class frmMain
'
'gMonTraySetup
'
Me.gMonTraySetup.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonTraySetupAddWizard, Me.gMonTraySetupGameManager, Me.gMonTraySetupCustomVariables, Me.gMonTraySetupTags, Me.gMonTraySetupProcessManager})
Me.gMonTraySetup.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonTraySetupAddWizard, Me.gMonTraySetupGameManager, Me.gMonTraySetupTags, Me.gMonTraySetupProcessManager, Me.gMonTraySetupCustomVariables})
Me.gMonTraySetup.Name = "gMonTraySetup"
Me.gMonTraySetup.Size = New System.Drawing.Size(161, 22)
Me.gMonTraySetup.Text = "&Setup"
@@ -166,19 +166,19 @@ Partial Class frmMain
'
Me.gMonTraySetupCustomVariables.Name = "gMonTraySetupCustomVariables"
Me.gMonTraySetupCustomVariables.Size = New System.Drawing.Size(201, 22)
Me.gMonTraySetupCustomVariables.Text = "Custom &Path Variables..."
Me.gMonTraySetupCustomVariables.Text = "Custom Path &Variables..."
'
'gMonTraySetupTags
'
Me.gMonTraySetupTags.Name = "gMonTraySetupTags"
Me.gMonTraySetupTags.Size = New System.Drawing.Size(201, 22)
Me.gMonTraySetupTags.Text = "&Tags..."
Me.gMonTraySetupTags.Text = "&Tag Manager..."
'
'gMonTraySetupProcessManager
'
Me.gMonTraySetupProcessManager.Name = "gMonTraySetupProcessManager"
Me.gMonTraySetupProcessManager.Size = New System.Drawing.Size(201, 22)
Me.gMonTraySetupProcessManager.Text = "Process &Manager..."
Me.gMonTraySetupProcessManager.Text = "&Process Manager..."
'
'gMonTrayTools
'
@@ -350,7 +350,7 @@ Partial Class frmMain
'
'gMonSetup
'
Me.gMonSetup.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonSetupGameManager, Me.gMonSetupAddWizard, Me.gMonSetupCustomVariables, Me.gMonSetupTags, Me.gMonSetupProcessManager})
Me.gMonSetup.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonSetupGameManager, Me.gMonSetupAddWizard, Me.gMonSetupTags, Me.gMonSetupProcessManager, Me.gMonSetupCustomVariables})
Me.gMonSetup.Name = "gMonSetup"
Me.gMonSetup.Size = New System.Drawing.Size(49, 20)
Me.gMonSetup.Text = "&Setup"
@@ -371,19 +371,19 @@ Partial Class frmMain
'
Me.gMonSetupCustomVariables.Name = "gMonSetupCustomVariables"
Me.gMonSetupCustomVariables.Size = New System.Drawing.Size(201, 22)
Me.gMonSetupCustomVariables.Text = "Custom &Path Variables..."
Me.gMonSetupCustomVariables.Text = "Custom Path &Variables..."
'
'gMonSetupTags
'
Me.gMonSetupTags.Name = "gMonSetupTags"
Me.gMonSetupTags.Size = New System.Drawing.Size(201, 22)
Me.gMonSetupTags.Text = "&Tags..."
Me.gMonSetupTags.Text = "&Tag Manager..."
'
'gMonSetupProcessManager
'
Me.gMonSetupProcessManager.Name = "gMonSetupProcessManager"
Me.gMonSetupProcessManager.Size = New System.Drawing.Size(201, 22)
Me.gMonSetupProcessManager.Text = "Process &Manager..."
Me.gMonSetupProcessManager.Text = "&Process Manager..."
'
'gMonTools
'
+8 -1
View File
@@ -1474,11 +1474,15 @@ Public Class frmMain
End Function
Private Sub StartChildProcesses()
Dim oCurrentProcess As clsProcess
Dim prsChild As Process
Try
For Each prsChild In oChildProcesses.Values
For Each de As DictionaryEntry In oChildProcesses
oCurrentProcess = DirectCast(de.Key, clsProcess)
prsChild = DirectCast(de.Value, Process)
prsChild.Start()
UpdateLog(mgrCommon.FormatString(frmMain_ProcessStarted, oCurrentProcess.Name), False)
Next
Catch ex As Exception
UpdateLog(mgrCommon.FormatString(frmMain_ErrorStartChildProcess, oProcess.GameInfo.CroppedName), True, ToolTipIcon.Error)
@@ -1494,7 +1498,10 @@ Public Class frmMain
For Each de As DictionaryEntry In oChildProcesses
oCurrentProcess = DirectCast(de.Key, clsProcess)
prsChild = DirectCast(de.Value, Process)
If oCurrentProcess.Kill Then
prsChild.Kill()
UpdateLog(mgrCommon.FormatString(frmMain_ProcessKilled, oCurrentProcess.Name), False)
End If
Next
Catch ex As Exception
+25 -25
View File
@@ -23,6 +23,7 @@ Partial Class frmProcessManager
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.grpProcess = New System.Windows.Forms.GroupBox()
Me.chkKillProcess = New System.Windows.Forms.CheckBox()
Me.txtArguments = New System.Windows.Forms.TextBox()
Me.lblArguments = New System.Windows.Forms.Label()
Me.btnProcessBrowse = New System.Windows.Forms.Button()
@@ -37,7 +38,6 @@ Partial Class frmProcessManager
Me.txtID = New System.Windows.Forms.TextBox()
Me.btnCancel = New System.Windows.Forms.Button()
Me.btnSave = New System.Windows.Forms.Button()
Me.chkKillProcess = New System.Windows.Forms.CheckBox()
Me.grpProcess.SuspendLayout()
Me.SuspendLayout()
'
@@ -54,16 +54,26 @@ Partial Class frmProcessManager
Me.grpProcess.Location = New System.Drawing.Point(238, 12)
Me.grpProcess.Name = "grpProcess"
Me.grpProcess.Size = New System.Drawing.Size(334, 120)
Me.grpProcess.TabIndex = 11
Me.grpProcess.TabIndex = 3
Me.grpProcess.TabStop = False
Me.grpProcess.Text = "Configuration"
'
'chkKillProcess
'
Me.chkKillProcess.AutoSize = True
Me.chkKillProcess.Location = New System.Drawing.Point(72, 96)
Me.chkKillProcess.Name = "chkKillProcess"
Me.chkKillProcess.Size = New System.Drawing.Size(184, 17)
Me.chkKillProcess.TabIndex = 4
Me.chkKillProcess.Text = "Kill process when game is closed."
Me.chkKillProcess.UseVisualStyleBackColor = True
'
'txtArguments
'
Me.txtArguments.Location = New System.Drawing.Point(72, 70)
Me.txtArguments.Name = "txtArguments"
Me.txtArguments.Size = New System.Drawing.Size(256, 20)
Me.txtArguments.TabIndex = 5
Me.txtArguments.TabIndex = 3
'
'lblArguments
'
@@ -71,7 +81,7 @@ Partial Class frmProcessManager
Me.lblArguments.Location = New System.Drawing.Point(6, 73)
Me.lblArguments.Name = "lblArguments"
Me.lblArguments.Size = New System.Drawing.Size(60, 13)
Me.lblArguments.TabIndex = 4
Me.lblArguments.TabIndex = 0
Me.lblArguments.Text = "Arguments:"
'
'btnProcessBrowse
@@ -79,7 +89,7 @@ Partial Class frmProcessManager
Me.btnProcessBrowse.Location = New System.Drawing.Point(298, 45)
Me.btnProcessBrowse.Name = "btnProcessBrowse"
Me.btnProcessBrowse.Size = New System.Drawing.Size(30, 20)
Me.btnProcessBrowse.TabIndex = 3
Me.btnProcessBrowse.TabIndex = 2
Me.btnProcessBrowse.Text = "..."
Me.btnProcessBrowse.UseVisualStyleBackColor = True
'
@@ -88,14 +98,14 @@ Partial Class frmProcessManager
Me.txtName.Location = New System.Drawing.Point(72, 19)
Me.txtName.Name = "txtName"
Me.txtName.Size = New System.Drawing.Size(256, 20)
Me.txtName.TabIndex = 1
Me.txtName.TabIndex = 0
'
'txtPath
'
Me.txtPath.Location = New System.Drawing.Point(72, 45)
Me.txtPath.Name = "txtPath"
Me.txtPath.Size = New System.Drawing.Size(220, 20)
Me.txtPath.TabIndex = 2
Me.txtPath.TabIndex = 1
'
'lblProcess
'
@@ -103,7 +113,7 @@ Partial Class frmProcessManager
Me.lblProcess.Location = New System.Drawing.Point(6, 48)
Me.lblProcess.Name = "lblProcess"
Me.lblProcess.Size = New System.Drawing.Size(48, 13)
Me.lblProcess.TabIndex = 1
Me.lblProcess.TabIndex = 0
Me.lblProcess.Text = "Process:"
'
'lblName
@@ -121,7 +131,7 @@ Partial Class frmProcessManager
Me.btnClose.Location = New System.Drawing.Point(497, 226)
Me.btnClose.Name = "btnClose"
Me.btnClose.Size = New System.Drawing.Size(75, 23)
Me.btnClose.TabIndex = 14
Me.btnClose.TabIndex = 6
Me.btnClose.Text = "C&lose"
Me.btnClose.UseVisualStyleBackColor = True
'
@@ -132,7 +142,7 @@ Partial Class frmProcessManager
Me.btnDelete.Location = New System.Drawing.Point(48, 226)
Me.btnDelete.Name = "btnDelete"
Me.btnDelete.Size = New System.Drawing.Size(30, 23)
Me.btnDelete.TabIndex = 10
Me.btnDelete.TabIndex = 2
Me.btnDelete.Text = "-"
Me.btnDelete.UseVisualStyleBackColor = True
'
@@ -143,7 +153,7 @@ Partial Class frmProcessManager
Me.btnAdd.Location = New System.Drawing.Point(12, 226)
Me.btnAdd.Name = "btnAdd"
Me.btnAdd.Size = New System.Drawing.Size(30, 23)
Me.btnAdd.TabIndex = 9
Me.btnAdd.TabIndex = 1
Me.btnAdd.Text = "+"
Me.btnAdd.UseVisualStyleBackColor = True
'
@@ -154,7 +164,7 @@ Partial Class frmProcessManager
Me.lstProcesses.Name = "lstProcesses"
Me.lstProcesses.Size = New System.Drawing.Size(220, 212)
Me.lstProcesses.Sorted = True
Me.lstProcesses.TabIndex = 7
Me.lstProcesses.TabIndex = 0
'
'txtID
'
@@ -162,7 +172,7 @@ Partial Class frmProcessManager
Me.txtID.Location = New System.Drawing.Point(374, 150)
Me.txtID.Name = "txtID"
Me.txtID.Size = New System.Drawing.Size(33, 20)
Me.txtID.TabIndex = 8
Me.txtID.TabIndex = 0
Me.txtID.TabStop = False
Me.txtID.Visible = False
'
@@ -172,7 +182,7 @@ Partial Class frmProcessManager
Me.btnCancel.Location = New System.Drawing.Point(494, 149)
Me.btnCancel.Name = "btnCancel"
Me.btnCancel.Size = New System.Drawing.Size(75, 23)
Me.btnCancel.TabIndex = 13
Me.btnCancel.TabIndex = 5
Me.btnCancel.Text = "&Cancel"
Me.btnCancel.UseVisualStyleBackColor = True
'
@@ -182,20 +192,10 @@ Partial Class frmProcessManager
Me.btnSave.Location = New System.Drawing.Point(413, 149)
Me.btnSave.Name = "btnSave"
Me.btnSave.Size = New System.Drawing.Size(75, 23)
Me.btnSave.TabIndex = 12
Me.btnSave.TabIndex = 4
Me.btnSave.Text = "&Save"
Me.btnSave.UseVisualStyleBackColor = True
'
'chkKillProcess
'
Me.chkKillProcess.AutoSize = True
Me.chkKillProcess.Location = New System.Drawing.Point(72, 96)
Me.chkKillProcess.Name = "chkKillProcess"
Me.chkKillProcess.Size = New System.Drawing.Size(184, 17)
Me.chkKillProcess.TabIndex = 6
Me.chkKillProcess.Text = "Kill process when game is closed."
Me.chkKillProcess.UseVisualStyleBackColor = True
'
'frmProcessManager
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
+24 -6
View File
@@ -2410,7 +2410,7 @@ Namespace My.Resources
End Property
'''<summary>
''' Looks up a localized string similar to Process &amp;Manager....
''' Looks up a localized string similar to &amp;Process Manager....
'''</summary>
Friend ReadOnly Property frmGameProcesses_btnOpenProcesses() As String
Get
@@ -2482,7 +2482,7 @@ Namespace My.Resources
End Property
'''<summary>
''' Looks up a localized string similar to Setup &amp;Tags....
''' Looks up a localized string similar to &amp;Tag Manager....
'''</summary>
Friend ReadOnly Property frmGameTags_btnOpenTags() As String
Get
@@ -3346,7 +3346,7 @@ Namespace My.Resources
End Property
'''<summary>
''' Looks up a localized string similar to Custom &amp;Path Variables....
''' Looks up a localized string similar to Custom Path &amp;Variables....
'''</summary>
Friend ReadOnly Property frmMain_gMonSetupCustomVariables() As String
Get
@@ -3364,7 +3364,7 @@ Namespace My.Resources
End Property
'''<summary>
''' Looks up a localized string similar to Process &amp;Manager....
''' Looks up a localized string similar to &amp;Process Manager....
'''</summary>
Friend ReadOnly Property frmMain_gMonSetupProcessManager() As String
Get
@@ -3373,7 +3373,7 @@ Namespace My.Resources
End Property
'''<summary>
''' Looks up a localized string similar to &amp;Tags....
''' Looks up a localized string similar to &amp;Tag Manager....
'''</summary>
Friend ReadOnly Property frmMain_gMonSetupTags() As String
Get
@@ -3696,6 +3696,24 @@ Namespace My.Resources
End Get
End Property
'''<summary>
''' Looks up a localized string similar to Kill signal was sent for [PARAM]..
'''</summary>
Friend ReadOnly Property frmMain_ProcessKilled() As String
Get
Return ResourceManager.GetString("frmMain_ProcessKilled", resourceCulture)
End Get
End Property
'''<summary>
''' Looks up a localized string similar to [PARAM] has been started..
'''</summary>
Friend ReadOnly Property frmMain_ProcessStarted() As String
Get
Return ResourceManager.GetString("frmMain_ProcessStarted", resourceCulture)
End Get
End Property
'''<summary>
''' Looks up a localized string similar to Remote Database Vacuum Completed: [PARAM] KB.
'''</summary>
@@ -5146,7 +5164,7 @@ Namespace My.Resources
End Property
'''<summary>
''' Looks up a localized string similar to Tags.
''' Looks up a localized string similar to Tag Manager.
'''</summary>
Friend ReadOnly Property frmTags_FormName() As String
Get
+12 -6
View File
@@ -392,13 +392,13 @@
<value>Add Game &amp;Wizard...</value>
</data>
<data name="frmMain_gMonSetupCustomVariables" xml:space="preserve">
<value>Custom &amp;Path Variables...</value>
<value>Custom Path &amp;Variables...</value>
</data>
<data name="frmMain_gMonSetupGameManager" xml:space="preserve">
<value>&amp;Game Manager...</value>
</data>
<data name="frmMain_gMonSetupTags" xml:space="preserve">
<value>&amp;Tags...</value>
<value>&amp;Tag Manager...</value>
</data>
<data name="frmMain_gMonStripStatusButton" xml:space="preserve">
<value>Monitor Status:</value>
@@ -923,7 +923,7 @@
<value>&amp;Close</value>
</data>
<data name="frmGameTags_btnOpenTags" xml:space="preserve">
<value>Setup &amp;Tags...</value>
<value>&amp;Tag Manager...</value>
</data>
<data name="frmGameTags_btnRemove" xml:space="preserve">
<value>&lt;</value>
@@ -1211,7 +1211,7 @@
<value>You must enter a valid tag name.</value>
</data>
<data name="frmTags_FormName" xml:space="preserve">
<value>Tags</value>
<value>Tag Manager</value>
</data>
<data name="frmTags_grpTag" xml:space="preserve">
<value>Configuration</value>
@@ -2120,7 +2120,7 @@
<value>Path:</value>
</data>
<data name="frmMain_gMonSetupProcessManager" xml:space="preserve">
<value>Process &amp;Manager...</value>
<value>&amp;Process Manager...</value>
</data>
<data name="frmProcessManager_ChooseProcess" xml:space="preserve">
<value>Choose a file that starts the process</value>
@@ -2138,7 +2138,7 @@
<value>&amp;Close</value>
</data>
<data name="frmGameProcesses_btnOpenProcesses" xml:space="preserve">
<value>Process &amp;Manager...</value>
<value>&amp;Process Manager...</value>
</data>
<data name="frmGameProcesses_btnRemove" xml:space="preserve">
<value>&lt;</value>
@@ -2158,4 +2158,10 @@
<data name="App_GenericError" xml:space="preserve">
<value>Error: [PARAM]</value>
</data>
<data name="frmMain_ProcessKilled" xml:space="preserve">
<value>Kill signal was sent for [PARAM].</value>
</data>
<data name="frmMain_ProcessStarted" xml:space="preserve">
<value>[PARAM] has been started.</value>
</data>
</root>
+1 -1
View File
@@ -2,7 +2,7 @@ Game Backup Monitor v1.1.0 Readme
http://mikemaximus.github.io/gbm-web/
gamebackupmonitor@gmail.com
March 7th, 2018
March 8th, 2018
New in 1.1.0