Added field to Add Game Wizard for #160

This commit is contained in:
MikeMaximus
2018-11-15 20:19:39 -06:00
parent c93af8821f
commit 21cce19c92
3 changed files with 19 additions and 3 deletions
+14
View File
@@ -68,6 +68,7 @@ Partial Class frmAddWizard
Me.btnCancel = New System.Windows.Forms.Button() Me.btnCancel = New System.Windows.Forms.Button()
Me.btnNext = New System.Windows.Forms.Button() Me.btnNext = New System.Windows.Forms.Button()
Me.btnBack = New System.Windows.Forms.Button() Me.btnBack = New System.Windows.Forms.Button()
Me.chkRecurseSubFolders = New System.Windows.Forms.CheckBox()
Me.tabWizard.SuspendLayout() Me.tabWizard.SuspendLayout()
Me.tbPage1.SuspendLayout() Me.tbPage1.SuspendLayout()
Me.tbPage2.SuspendLayout() Me.tbPage2.SuspendLayout()
@@ -310,6 +311,7 @@ Partial Class frmAddWizard
'tbPage3a 'tbPage3a
' '
Me.tbPage3a.BackColor = System.Drawing.SystemColors.Control Me.tbPage3a.BackColor = System.Drawing.SystemColors.Control
Me.tbPage3a.Controls.Add(Me.chkRecurseSubFolders)
Me.tbPage3a.Controls.Add(Me.lblIncludePathTitle) Me.tbPage3a.Controls.Add(Me.lblIncludePathTitle)
Me.tbPage3a.Controls.Add(Me.lblIncludePath) Me.tbPage3a.Controls.Add(Me.lblIncludePath)
Me.tbPage3a.Controls.Add(Me.lblFileTypes) Me.tbPage3a.Controls.Add(Me.lblFileTypes)
@@ -540,6 +542,17 @@ Partial Class frmAddWizard
Me.btnBack.Text = "&Back" Me.btnBack.Text = "&Back"
Me.btnBack.UseVisualStyleBackColor = True Me.btnBack.UseVisualStyleBackColor = True
' '
'chkRecurseSubFolders
'
Me.chkRecurseSubFolders.AutoSize = True
Me.chkRecurseSubFolders.Location = New System.Drawing.Point(218, 40)
Me.chkRecurseSubFolders.Name = "chkRecurseSubFolders"
Me.chkRecurseSubFolders.Size = New System.Drawing.Size(15, 14)
Me.chkRecurseSubFolders.TabIndex = 0
Me.chkRecurseSubFolders.TabStop = False
Me.chkRecurseSubFolders.UseVisualStyleBackColor = True
Me.chkRecurseSubFolders.Visible = False
'
'frmAddWizard 'frmAddWizard
' '
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
@@ -618,4 +631,5 @@ Partial Class frmAddWizard
Friend WithEvents lblExcludePathTitle As Label Friend WithEvents lblExcludePathTitle As Label
Friend WithEvents lblLimit As Label Friend WithEvents lblLimit As Label
Friend WithEvents nudLimit As NumericUpDown Friend WithEvents nudLimit As NumericUpDown
Friend WithEvents chkRecurseSubFolders As CheckBox
End Class End Class
+5 -2
View File
@@ -66,6 +66,7 @@ Public Class frmAddWizard
chkFolderSave.Checked = True chkFolderSave.Checked = True
chkTimeStamp.Checked = False chkTimeStamp.Checked = False
chkRecurseSubFolders.Checked = True
StepHandler() StepHandler()
End Sub End Sub
@@ -112,6 +113,7 @@ Public Class frmAddWizard
Dim iLimit As Integer = nudLimit.Value Dim iLimit As Integer = nudLimit.Value
Dim sFileType As String = txtFileTypes.Text Dim sFileType As String = txtFileTypes.Text
Dim sExcludeList As String = txtExcludeList.Text Dim sExcludeList As String = txtExcludeList.Text
Dim bRecurseSubFolders As Boolean = chkRecurseSubFolders.Checked
Dim sProcess As String Dim sProcess As String
Dim sItem As String() Dim sItem As String()
Dim sItems As String() Dim sItems As String()
@@ -160,6 +162,7 @@ Public Class frmAddWizard
oGame.BackupLimit = iLimit oGame.BackupLimit = iLimit
oGame.ExcludeList = sExcludeList oGame.ExcludeList = sExcludeList
oGame.ProcessPath = sProcessPath oGame.ProcessPath = sProcessPath
oGame.RecurseSubFolders = bRecurseSubFolders
Return oGame Return oGame
End Function End Function
@@ -452,9 +455,9 @@ Public Class frmAddWizard
frm.FormName = sFormText frm.FormName = sFormText
frm.BuilderString = txtBox.Text frm.BuilderString = txtBox.Text
frm.RootFolder = txtSavePath.Text frm.RootFolder = txtSavePath.Text
frm.RecurseSubFolders = chkRecurseSubFolders.Checked
frm.ShowDialog() frm.ShowDialog()
chkRecurseSubFolders.Checked = frm.RecurseSubFolders
txtBox.Text = frm.BuilderString txtBox.Text = frm.BuilderString
End Sub End Sub
-1
View File
@@ -1198,7 +1198,6 @@ Public Class frmGameManager
Private Sub FolderSaveModeChange() Private Sub FolderSaveModeChange()
If chkFolderSave.Checked Then If chkFolderSave.Checked Then
btnInclude.Enabled = False btnInclude.Enabled = False
chkRecurseSubFolders.Checked = False
If txtFileType.Text <> String.Empty Then If txtFileType.Text <> String.Empty Then
txtFileType.Text = String.Empty txtFileType.Text = String.Empty
UpdateBuilderButtonLabel(txtFileType.Text, frmGameManager_IncludeShortcut, btnInclude, False) UpdateBuilderButtonLabel(txtFileType.Text, frmGameManager_IncludeShortcut, btnInclude, False)