Removed unrequired parameter validation
This commit is contained in:
@@ -1330,13 +1330,6 @@ Public Class frmGameManager
|
|||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If oApp.Parameter <> String.Empty Then
|
|
||||||
If mgrMonitorList.DoDuplicateParameterCheck(oApp.ProcessName, oApp.Parameter, , sCurrentID) Then
|
|
||||||
mgrCommon.ShowMessage(frmGameManager_ErrorProcessParameterDupe, MsgBoxStyle.Exclamation)
|
|
||||||
Return False
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
|
|
||||||
If oApp.IsRegEx Then
|
If oApp.IsRegEx Then
|
||||||
If Not mgrCommon.IsRegExValid(oApp.ProcessName) Then
|
If Not mgrCommon.IsRegExValid(oApp.ProcessName) Then
|
||||||
If mgrCommon.ShowMessage(frmGameManager_ErrorRegExFailure, MsgBoxStyle.Exclamation, MsgBoxStyle.YesNoCancel) = MsgBoxResult.Yes Then
|
If mgrCommon.ShowMessage(frmGameManager_ErrorRegExFailure, MsgBoxStyle.Exclamation, MsgBoxStyle.YesNoCancel) = MsgBoxResult.Yes Then
|
||||||
|
|||||||
@@ -341,31 +341,6 @@ Public Class mgrMonitorList
|
|||||||
End If
|
End If
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function DoDuplicateParameterCheck(ByVal sProcess As String, ByVal sParameter As String, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local, Optional ByVal sExcludeID As String = "") As Boolean
|
|
||||||
Dim oDatabase As New mgrSQLite(iSelectDB)
|
|
||||||
Dim sSQL As String
|
|
||||||
Dim oData As DataSet
|
|
||||||
Dim hshParams As New Hashtable
|
|
||||||
|
|
||||||
sSQL = "SELECT * FROM monitorlist WHERE Process = @Process AND Parameter = @Parameter"
|
|
||||||
|
|
||||||
hshParams.Add("Process", sProcess)
|
|
||||||
hshParams.Add("Parameter", sParameter)
|
|
||||||
|
|
||||||
If sExcludeID <> String.Empty Then
|
|
||||||
sSQL &= " AND MonitorID <> @MonitorID"
|
|
||||||
hshParams.Add("MonitorID", sExcludeID)
|
|
||||||
End If
|
|
||||||
|
|
||||||
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
|
||||||
|
|
||||||
If oData.Tables(0).Rows.Count > 0 Then
|
|
||||||
Return True
|
|
||||||
Else
|
|
||||||
Return False
|
|
||||||
End If
|
|
||||||
End Function
|
|
||||||
|
|
||||||
'Sync Functions
|
'Sync Functions
|
||||||
Public Shared Sub DoListAddUpdateSync(ByVal hshGames As Hashtable, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local,
|
Public Shared Sub DoListAddUpdateSync(ByVal hshGames As Hashtable, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local,
|
||||||
Optional ByVal eSyncFields As clsGame.eOptionalSyncFields = clsGame.eOptionalSyncFields.None)
|
Optional ByVal eSyncFields As clsGame.eOptionalSyncFields = clsGame.eOptionalSyncFields.None)
|
||||||
|
|||||||
Generated
-9
@@ -1995,15 +1995,6 @@ Namespace My.Resources
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
|
||||||
''' Looks up a localized string similar to A game with this exact process and parameter already exists..
|
|
||||||
'''</summary>
|
|
||||||
Friend ReadOnly Property frmGameManager_ErrorProcessParameterDupe() As String
|
|
||||||
Get
|
|
||||||
Return ResourceManager.GetString("frmGameManager_ErrorProcessParameterDupe", resourceCulture)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Looks up a localized string similar to The process is not a a valid regular expression.[BR][BR]Would you like help validating and testing your regular expression? [BR][BR]This will open your web browser and requires the internet..
|
''' Looks up a localized string similar to The process is not a a valid regular expression.[BR][BR]Would you like help validating and testing your regular expression? [BR][BR]This will open your web browser and requires the internet..
|
||||||
'''</summary>
|
'''</summary>
|
||||||
|
|||||||
@@ -1768,9 +1768,6 @@
|
|||||||
<data name="frmGameManager_lblParameter" xml:space="preserve">
|
<data name="frmGameManager_lblParameter" xml:space="preserve">
|
||||||
<value>Parameter:</value>
|
<value>Parameter:</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmGameManager_ErrorProcessParameterDupe" xml:space="preserve">
|
|
||||||
<value>A game with this exact process and parameter already exists.</value>
|
|
||||||
</data>
|
|
||||||
<data name="mgrCommon_B" xml:space="preserve">
|
<data name="mgrCommon_B" xml:space="preserve">
|
||||||
<value>[PARAM] B</value>
|
<value>[PARAM] B</value>
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
Reference in New Issue
Block a user