Compare commits
275 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0ed067e36f | ||
|
|
bca2fe2239 | ||
|
|
fa5d03ef52 | ||
|
|
998a680999 | ||
|
|
f5972da9eb | ||
|
|
794b0f9908 | ||
|
|
daa5f928bf | ||
|
|
72e3ccb661 | ||
|
|
9e7a4b5efc | ||
|
|
692deaaef9 | ||
|
|
a3572abb3d | ||
|
|
2680f857a9 | ||
|
|
1e2f4de816 | ||
|
|
b9b959f96c | ||
|
|
2ae705be18 | ||
|
|
ccade84b65 | ||
|
|
017c5def56 | ||
|
|
1f9dc18c49 | ||
|
|
bc1630a122 | ||
|
|
478721dbd1 | ||
|
|
8ad4810011 | ||
|
|
93bc974cc3 | ||
|
|
c9463c3a36 | ||
|
|
8b2c5f376b | ||
|
|
9e329476a2 | ||
|
|
626fca3e1e | ||
|
|
039f91cd6f | ||
|
|
f98a98af99 | ||
|
|
d9bd7f38f5 | ||
|
|
4e2ab9a0fb | ||
|
|
218ce3f367 | ||
|
|
b3cfab7ee6 | ||
|
|
39440e1f98 | ||
|
|
9b9d3f9125 | ||
|
|
7eab3b8841 | ||
|
|
539009c5de | ||
|
|
01b46107ad | ||
|
|
a5d2ce2255 | ||
|
|
c0764d0c08 | ||
|
|
35ea6fb74b | ||
|
|
a51a7bea89 | ||
|
|
b5f3408261 | ||
|
|
f859449a99 | ||
|
|
796f68d1a8 | ||
|
|
155759f7bd | ||
|
|
405237f1d5 | ||
|
|
a0ba4637f2 | ||
|
|
76a11d8f2e | ||
|
|
48b4dbea43 | ||
|
|
e8b0650a9a | ||
|
|
de157d516c | ||
|
|
8ced2d157f | ||
|
|
4d83be9ef3 | ||
|
|
52f7088ed7 | ||
|
|
e07b2d226f | ||
|
|
a5fe556108 | ||
|
|
1d57bc0cc4 | ||
|
|
907e3e309a | ||
|
|
5cf6d1c270 | ||
|
|
189976e892 | ||
|
|
251ea3b060 | ||
|
|
a2c96ee5e4 | ||
|
|
79fd874f60 | ||
|
|
2f66855166 | ||
|
|
8e26e97fd4 | ||
|
|
9eb095523e | ||
|
|
5ae238360d | ||
|
|
bba4d3a0a8 | ||
|
|
f4a54f8781 | ||
|
|
108ab4931f | ||
|
|
28a260bdfc | ||
|
|
6461c80ae0 | ||
|
|
9807094af6 | ||
|
|
259cc2c5dd | ||
|
|
c6ded1a349 | ||
|
|
7430551145 | ||
|
|
b9244eeeae | ||
|
|
ebc185d7b8 | ||
|
|
ad538da1d1 | ||
|
|
95acce428a | ||
|
|
afb479044c | ||
|
|
5245cc3ab3 | ||
|
|
4caa2df312 | ||
|
|
7d874f0079 | ||
|
|
b23ace4b54 | ||
|
|
fe6b90311a | ||
|
|
ddee737222 | ||
|
|
2e5fa70f58 | ||
|
|
b76a7dd6ab | ||
|
|
9907565145 | ||
|
|
9a024349f5 | ||
|
|
7c73b27af0 | ||
|
|
07b46f10f5 | ||
|
|
c94b8b83da | ||
|
|
1b6b2fa3a0 | ||
|
|
609ee09cfa | ||
|
|
c2a752573a | ||
|
|
b7b23cba4a | ||
|
|
848679c1b1 | ||
|
|
d07fc57dad | ||
|
|
dff3432c27 | ||
|
|
b54f98d82b | ||
|
|
a745624e83 | ||
|
|
2d0e4a136d | ||
|
|
9f99b32200 | ||
|
|
866f6005dc | ||
|
|
dca86beebe | ||
|
|
bb6e292c6f | ||
|
|
0dbda50291 | ||
|
|
1c54085d6c | ||
|
|
e897fda8e8 | ||
|
|
978242d0dd | ||
|
|
1ab0e77918 | ||
|
|
b3d9510edd | ||
|
|
31b50afc84 | ||
|
|
7b17093cd8 | ||
|
|
c63a188738 | ||
|
|
e7b3f809f1 | ||
|
|
66d280df49 | ||
|
|
7d4514c677 | ||
|
|
2581883827 | ||
|
|
248efa8878 | ||
|
|
93517f5236 | ||
|
|
5be80b2f02 | ||
|
|
2f2177fb84 | ||
|
|
636c1495a4 | ||
|
|
f69d10065a | ||
|
|
99d70b96fb | ||
|
|
f88cf1bd18 | ||
|
|
b4d9c84c36 | ||
|
|
5996e28edf | ||
|
|
6b9ebaab36 | ||
|
|
85588686cd | ||
|
|
2cab8b7ec4 | ||
|
|
93361bcd87 | ||
|
|
a89fdceb1a | ||
|
|
fa2910e184 | ||
|
|
ef6df6e89e | ||
|
|
36af55cacc | ||
|
|
f6a5d7bba1 | ||
|
|
27917f5859 | ||
|
|
2c8e0a1275 | ||
|
|
04f7b76456 | ||
|
|
477c1fa623 | ||
|
|
a5d7d6697a | ||
|
|
b1e6e7a9e6 | ||
|
|
c8db7ae4e4 | ||
|
|
f9a9074e56 | ||
|
|
77df7cf3dc | ||
|
|
1122499609 | ||
|
|
ecedda0779 | ||
|
|
40e36aaafd | ||
|
|
3c72799ceb | ||
|
|
0779132be9 | ||
|
|
35cb711ca1 | ||
|
|
aacda9eeb9 | ||
|
|
1ec5439c5d | ||
|
|
ebd7081b29 | ||
|
|
8907933285 | ||
|
|
7330c5bcba | ||
|
|
476ec70fe5 | ||
|
|
b7b3d053c7 | ||
|
|
8a41566b5f | ||
|
|
ff0f3b9dd4 | ||
|
|
5165ae27e7 | ||
|
|
c55875e31a | ||
|
|
08e8ed58d9 | ||
|
|
e6a73019ef | ||
|
|
11101f7f22 | ||
|
|
c8453c9cbd | ||
|
|
9a8350c2ed | ||
|
|
ab06db102c | ||
|
|
82f287f322 | ||
|
|
2c0fdb776e | ||
|
|
e106d7c09c | ||
|
|
bc1c9ecbd5 | ||
|
|
d610b2507e | ||
|
|
ad4c666051 | ||
|
|
644d073af0 | ||
|
|
03becc209c | ||
|
|
bd2b828bd3 | ||
|
|
4f3ed5c70e | ||
|
|
438fe193b6 | ||
|
|
c4a7f9bb2c | ||
|
|
3e913cc091 | ||
|
|
5d3fa68fc3 | ||
|
|
7c0a342f1d | ||
|
|
65c613ffcb | ||
|
|
1e278497b8 | ||
|
|
aab9b5718d | ||
|
|
96eac6a100 | ||
|
|
af13d51557 | ||
|
|
59748309ad | ||
|
|
0f874ae74a | ||
|
|
19de263050 | ||
|
|
34a9159719 | ||
|
|
f0bd3db4ad | ||
|
|
0003ee1f11 | ||
|
|
a4fff6b900 | ||
|
|
e3bfc6adb1 | ||
|
|
2ef141ee9b | ||
|
|
94086d0c05 | ||
|
|
6e2298df49 | ||
|
|
c0d6a79aa7 | ||
|
|
19812d1cd2 | ||
|
|
11cc244b18 | ||
|
|
8e82024c29 | ||
|
|
89aa57e6d6 | ||
|
|
44fdc4160e | ||
|
|
b5859d6541 | ||
|
|
d3d6482bfd | ||
|
|
9c8cbad7d5 | ||
|
|
e09e38a5c4 | ||
|
|
f245dee781 | ||
|
|
fd815f0c46 | ||
|
|
708e9ce1fe | ||
|
|
a68d2b718f | ||
|
|
d11f468add | ||
|
|
ef6997a2ab | ||
|
|
9386da4a2a | ||
|
|
d4210053ad | ||
|
|
41d11cca8e | ||
|
|
22df153513 | ||
|
|
2548d0dceb | ||
|
|
4b0d4a62c8 | ||
|
|
11d8e4594c | ||
|
|
7259f92ec1 | ||
|
|
024f17abe9 | ||
|
|
97cf2618e3 | ||
|
|
5fa746da8e | ||
|
|
91b9554f40 | ||
|
|
b5c977e66c | ||
|
|
15c33ca039 | ||
|
|
aa3237d0fa | ||
|
|
1f291bbcd8 | ||
|
|
9cd786c303 | ||
|
|
e701d67d79 | ||
|
|
be8cb66136 | ||
|
|
50563e3be0 | ||
|
|
2623bf7f7a | ||
|
|
6230d2f888 | ||
|
|
adc857fe5e | ||
|
|
bddf07ee44 | ||
|
|
63ed3dac67 | ||
|
|
922103e5aa | ||
|
|
d0fe33e953 | ||
|
|
934d17de47 | ||
|
|
2ccc10bb9c | ||
|
|
cc1db7e524 | ||
|
|
c2a9d3ee77 | ||
|
|
65fe7214eb | ||
|
|
71d09126c2 | ||
|
|
2eb0c30702 | ||
|
|
24e1c4b92f | ||
|
|
4e7eb58463 | ||
|
|
3ae0d1ba82 | ||
|
|
6f3ed9ab81 | ||
|
|
a490e6d1f2 | ||
|
|
a5dd1d547b | ||
|
|
974aaa3638 | ||
|
|
c3b73a9953 | ||
|
|
3bd4cbd0bd | ||
|
|
5a9b3c99b3 | ||
|
|
8ce1b00a8c | ||
|
|
e4237a74bb | ||
|
|
72f520f333 | ||
|
|
dc9ec7f190 | ||
|
|
c0dbd95504 | ||
|
|
6c5c54ea1b | ||
|
|
d0c40fd341 | ||
|
|
68855077cf | ||
|
|
3184cb61ec | ||
|
|
8ebfed7ab7 | ||
|
|
229afa92fd | ||
|
|
db6c96a80b |
Vendored
+4
@@ -1,6 +1,10 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
# Set default behavior to automatically normalize line endings.
|
# Set default behavior to automatically normalize line endings.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
*.sh -text eol=lf
|
||||||
|
makefile -text eol=lf
|
||||||
|
control -text eol=lf
|
||||||
|
postinst -text eol=lf
|
||||||
* text=auto
|
* text=auto
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|||||||
Vendored
+3
@@ -186,3 +186,6 @@ FakesAssemblies/
|
|||||||
GeneratedArtifacts/
|
GeneratedArtifacts/
|
||||||
_Pvt_Extensions/
|
_Pvt_Extensions/
|
||||||
ModelManifest.xml
|
ModelManifest.xml
|
||||||
|
/.vs/slnx.sqlite
|
||||||
|
/.vs/VSWorkspaceState.json
|
||||||
|
/.vs/Game Backup Monitor/v15
|
||||||
|
|||||||
@@ -0,0 +1,63 @@
|
|||||||
|
Imports System.Xml.Serialization
|
||||||
|
|
||||||
|
<XmlRoot("gbm")>
|
||||||
|
Public Class ExportData
|
||||||
|
Dim oConfigs As List(Of Game)
|
||||||
|
Private dExported As Int64
|
||||||
|
Private iTotalConfigs As Integer
|
||||||
|
Private iAppVer As Integer
|
||||||
|
|
||||||
|
<XmlAttribute("Exported")>
|
||||||
|
Property Exported As Int64
|
||||||
|
Set(value As Int64)
|
||||||
|
dExported = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return dExported
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
<XmlAttribute("TotalConfigurations")>
|
||||||
|
Property TotalConfigurations As Integer
|
||||||
|
Set(value As Integer)
|
||||||
|
iTotalConfigs = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return iTotalConfigs
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
<XmlAttribute("AppVer")>
|
||||||
|
Property AppVer As Integer
|
||||||
|
Set(value As Integer)
|
||||||
|
iAppVer = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return iAppVer
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
<XmlElement("Game")>
|
||||||
|
Property Configurations As List(Of Game)
|
||||||
|
Set(value As List(Of Game))
|
||||||
|
oConfigs = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return oConfigs
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Sub New()
|
||||||
|
dExported = 0
|
||||||
|
iTotalConfigs = 0
|
||||||
|
iAppVer = 0
|
||||||
|
oConfigs = New List(Of Game)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Sub New(ByVal dInitExported As Int64, ByVal iInitTotalConfigs As Integer, ByVal iInitAppVer As Integer, ByVal oInitConfigs As List(Of Game))
|
||||||
|
dExported = dInitExported
|
||||||
|
iTotalConfigs = iInitTotalConfigs
|
||||||
|
iAppVer = iInitAppVer
|
||||||
|
oConfigs = oInitConfigs
|
||||||
|
End Sub
|
||||||
|
End Class
|
||||||
@@ -1,13 +1,29 @@
|
|||||||
Public Class Game
|
Public Class Game
|
||||||
|
Private sGameID As String
|
||||||
Private sGameName As String
|
Private sGameName As String
|
||||||
Private sProcessName As String
|
Private sProcessName As String
|
||||||
|
Private sParameter As String
|
||||||
Private sPath As String
|
Private sPath As String
|
||||||
Private bAbsolutePath As Boolean
|
Private bAbsolutePath As Boolean
|
||||||
Private bFolderSave As Boolean
|
Private bFolderSave As Boolean
|
||||||
|
Private bAppendTimeStamp As Boolean
|
||||||
|
Private iBackupLimit As Integer
|
||||||
Private sFileType As String
|
Private sFileType As String
|
||||||
Private sExcludeList As String
|
Private sExcludeList As String
|
||||||
|
Private bMonitorOnly As Boolean
|
||||||
|
Private sComments As String
|
||||||
|
Private bIsRegEx As Boolean
|
||||||
Private oTags As List(Of Tag)
|
Private oTags As List(Of Tag)
|
||||||
|
|
||||||
|
Property ID As String
|
||||||
|
Set(value As String)
|
||||||
|
sGameID = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return sGameID
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Property Name As String
|
Property Name As String
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
sGameName = value
|
sGameName = value
|
||||||
@@ -26,6 +42,15 @@
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Property Parameter As String
|
||||||
|
Set(value As String)
|
||||||
|
sParameter = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return sParameter
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Property Path As String
|
Property Path As String
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
sPath = value
|
sPath = value
|
||||||
@@ -53,6 +78,24 @@
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Property AppendTimeStamp As Boolean
|
||||||
|
Set(value As Boolean)
|
||||||
|
bAppendTimeStamp = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return bAppendTimeStamp
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Property BackupLimit As Integer
|
||||||
|
Set(value As Integer)
|
||||||
|
iBackupLimit = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return iBackupLimit
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Property FileType As String
|
Property FileType As String
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
sFileType = value
|
sFileType = value
|
||||||
@@ -71,6 +114,33 @@
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Property MonitorOnly As Boolean
|
||||||
|
Set(value As Boolean)
|
||||||
|
bMonitorOnly = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return bMonitorOnly
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Property Comments As String
|
||||||
|
Set(value As String)
|
||||||
|
sComments = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return sComments
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Property IsRegEx As Boolean
|
||||||
|
Set(value As Boolean)
|
||||||
|
bIsRegEx = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return bIsRegEx
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Property Tags As List(Of Tag)
|
Property Tags As List(Of Tag)
|
||||||
Get
|
Get
|
||||||
Return oTags
|
Return oTags
|
||||||
|
|||||||
@@ -0,0 +1,49 @@
|
|||||||
|
Imports System.Xml.Serialization
|
||||||
|
|
||||||
|
<XmlRoot("Session")>
|
||||||
|
Public Class Session
|
||||||
|
Private sGame As String
|
||||||
|
Private sStart As String
|
||||||
|
Private sEnd As String
|
||||||
|
Private sHours As String
|
||||||
|
|
||||||
|
<XmlElement("Game")>
|
||||||
|
Public Property GameName As String
|
||||||
|
Set(value As String)
|
||||||
|
sGame = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return sGame
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
<XmlElement("Start")>
|
||||||
|
Public Property StartDate As String
|
||||||
|
Set(value As String)
|
||||||
|
sStart = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return sStart
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
<XmlElement("End")>
|
||||||
|
Public Property EndDate As String
|
||||||
|
Set(value As String)
|
||||||
|
sEnd = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return sEnd
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
<XmlElement("Hours")>
|
||||||
|
Public Property Hours As String
|
||||||
|
Set(value As String)
|
||||||
|
sHours = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return sHours
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
End Class
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
Public Class Tag
|
<Serializable()>
|
||||||
|
Public Class Tag
|
||||||
Private sTagName As String
|
Private sTagName As String
|
||||||
|
|
||||||
Property Name As String
|
Property Name As String
|
||||||
|
|||||||
+17
-21
@@ -1,5 +1,6 @@
|
|||||||
Public Class clsBackup
|
Public Class clsBackup
|
||||||
Private sBackupID As String = Guid.NewGuid.ToString
|
Private sBackupID As String = Guid.NewGuid.ToString
|
||||||
|
Private sMonitorID As String = String.Empty
|
||||||
Private sName As String = String.Empty
|
Private sName As String = String.Empty
|
||||||
Private sFileName As String = String.Empty
|
Private sFileName As String = String.Empty
|
||||||
Private sRestorePath As String = String.Empty
|
Private sRestorePath As String = String.Empty
|
||||||
@@ -7,11 +8,9 @@
|
|||||||
Private sRelativeRestorePath As String = String.Empty
|
Private sRelativeRestorePath As String = String.Empty
|
||||||
Private dDateUpdated As DateTime = Date.Now
|
Private dDateUpdated As DateTime = Date.Now
|
||||||
Private sUpdatedBy As String = String.Empty
|
Private sUpdatedBy As String = String.Empty
|
||||||
Private dLastDateUpdated As DateTime = Date.Now
|
|
||||||
Private sLastUpdatedBy As String = String.Empty
|
|
||||||
Private sCheckSum As String = String.Empty
|
Private sCheckSum As String = String.Empty
|
||||||
|
|
||||||
Property ID As String
|
Property ManifestID As String
|
||||||
Get
|
Get
|
||||||
Return sBackupID
|
Return sBackupID
|
||||||
End Get
|
End Get
|
||||||
@@ -20,6 +19,15 @@
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Property MonitorID As String
|
||||||
|
Get
|
||||||
|
Return sMonitorID
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sMonitorID = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
Property Name As String
|
Property Name As String
|
||||||
Get
|
Get
|
||||||
Return sName
|
Return sName
|
||||||
@@ -39,6 +47,12 @@
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
ReadOnly Property FileSafeName As String
|
||||||
|
Get
|
||||||
|
Return mgrPath.ValidateFileNameForOS(sName)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Property FileName As String
|
Property FileName As String
|
||||||
Get
|
Get
|
||||||
If mgrCommon.IsUnix Then
|
If mgrCommon.IsUnix Then
|
||||||
@@ -109,24 +123,6 @@
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Property LastDateUpdated As DateTime
|
|
||||||
Get
|
|
||||||
Return dLastDateUpdated
|
|
||||||
End Get
|
|
||||||
Set(value As DateTime)
|
|
||||||
dLastDateUpdated = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Property LastUpdatedBy As String
|
|
||||||
Get
|
|
||||||
Return sLastUpdatedBy
|
|
||||||
End Get
|
|
||||||
Set(value As String)
|
|
||||||
sLastUpdatedBy = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Property CheckSum As String
|
Property CheckSum As String
|
||||||
Get
|
Get
|
||||||
Return sCheckSum
|
Return sCheckSum
|
||||||
|
|||||||
+141
-23
@@ -1,13 +1,16 @@
|
|||||||
Public Class clsGame
|
<Serializable()>
|
||||||
|
Public Class clsGame
|
||||||
Private sGameID As String = Guid.NewGuid.ToString
|
Private sGameID As String = Guid.NewGuid.ToString
|
||||||
Private sGameName As String = String.Empty
|
Private sGameName As String = String.Empty
|
||||||
Private sProcessName As String = String.Empty
|
Private sProcessName As String = String.Empty
|
||||||
|
Private sParameter As String = String.Empty
|
||||||
Private sPath As String = String.Empty
|
Private sPath As String = String.Empty
|
||||||
Private bAbsolutePath As Boolean = False
|
Private bAbsolutePath As Boolean = False
|
||||||
Private bFolderSave As Boolean = False
|
Private bFolderSave As Boolean = False
|
||||||
Private sFileType As String = String.Empty
|
Private sFileType As String = String.Empty
|
||||||
Private bAppendTimeStamp As Boolean = False
|
Private bAppendTimeStamp As Boolean = False
|
||||||
Private iBackupLimit As Integer = 2
|
Private iBackupLimit As Integer = 0
|
||||||
|
Private bCleanFolder As Boolean = False
|
||||||
Private sExcludeList As String = String.Empty
|
Private sExcludeList As String = String.Empty
|
||||||
Private sProcessPath As String = String.Empty
|
Private sProcessPath As String = String.Empty
|
||||||
Private sIcon As String = String.Empty
|
Private sIcon As String = String.Empty
|
||||||
@@ -16,9 +19,11 @@
|
|||||||
Private sCompany As String = String.Empty
|
Private sCompany As String = String.Empty
|
||||||
Private bEnabled As Boolean = True
|
Private bEnabled As Boolean = True
|
||||||
Private bMonitorOnly As Boolean = False
|
Private bMonitorOnly As Boolean = False
|
||||||
|
Private sComments As String = String.Empty
|
||||||
|
Private bIsRegEx As Boolean = False
|
||||||
Private bDuplicate As Boolean = False
|
Private bDuplicate As Boolean = False
|
||||||
Private bTempGame As Boolean = False
|
|
||||||
Private oImportTags As New List(Of Tag)
|
Private oImportTags As New List(Of Tag)
|
||||||
|
Private bImportUpdate As Boolean = False
|
||||||
|
|
||||||
<Flags()> Public Enum eOptionalSyncFields
|
<Flags()> Public Enum eOptionalSyncFields
|
||||||
None = 0
|
None = 0
|
||||||
@@ -26,13 +31,15 @@
|
|||||||
Company = 2
|
Company = 2
|
||||||
Version = 4
|
Version = 4
|
||||||
Icon = 16
|
Icon = 16
|
||||||
TimeStamp = 32
|
Unused = 32 'Do not remove to maintain compatability, re-use for a future field.
|
||||||
MonitorGame = 64
|
MonitorGame = 64
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
Property ID As String
|
Property ID As String
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
sGameID = value
|
If Not value Is Nothing Then
|
||||||
|
sGameID = mgrPath.ValidateFileNameForOS(value)
|
||||||
|
End If
|
||||||
End Set
|
End Set
|
||||||
Get
|
Get
|
||||||
Return sGameID
|
Return sGameID
|
||||||
@@ -41,7 +48,7 @@
|
|||||||
|
|
||||||
ReadOnly Property CompoundKey As String
|
ReadOnly Property CompoundKey As String
|
||||||
Get
|
Get
|
||||||
Return ProcessName & ":" & Name
|
Return ProcessName & ":" & ID
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -55,6 +62,12 @@
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
ReadOnly Property FileSafeName As String
|
||||||
|
Get
|
||||||
|
Return mgrPath.ValidateFileNameForOS(sGameName)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Property Name As String
|
Property Name As String
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
sGameName = value
|
sGameName = value
|
||||||
@@ -73,6 +86,15 @@
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Property Parameter As String
|
||||||
|
Set(value As String)
|
||||||
|
sParameter = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return sParameter
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Property Path As String
|
Property Path As String
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
sPath = mgrPath.ReverseSpecialPaths(value)
|
sPath = mgrPath.ReverseSpecialPaths(value)
|
||||||
@@ -127,6 +149,15 @@
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Property CleanFolder As Boolean
|
||||||
|
Get
|
||||||
|
Return bCleanFolder
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bCleanFolder = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
Property ExcludeList As String
|
Property ExcludeList As String
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
sExcludeList = value
|
sExcludeList = value
|
||||||
@@ -199,6 +230,24 @@
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Property Comments As String
|
||||||
|
Get
|
||||||
|
Return sComments
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sComments = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Property IsRegEx As Boolean
|
||||||
|
Get
|
||||||
|
Return bIsRegEx
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bIsRegEx = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
Property Duplicate As Boolean
|
Property Duplicate As Boolean
|
||||||
Get
|
Get
|
||||||
Return bDuplicate
|
Return bDuplicate
|
||||||
@@ -220,15 +269,6 @@
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Property Temporary As Boolean
|
|
||||||
Get
|
|
||||||
Return bTempGame
|
|
||||||
End Get
|
|
||||||
Set(value As Boolean)
|
|
||||||
bTempGame = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Property ImportTags As List(Of Tag)
|
Property ImportTags As List(Of Tag)
|
||||||
Get
|
Get
|
||||||
Return oImportTags
|
Return oImportTags
|
||||||
@@ -238,6 +278,35 @@
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Property ImportUpdate As Boolean
|
||||||
|
Get
|
||||||
|
Return bImportUpdate
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bImportUpdate = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
ReadOnly Property IncludeArray As String()
|
||||||
|
Get
|
||||||
|
If FileType = String.Empty Then
|
||||||
|
Return New String() {}
|
||||||
|
Else
|
||||||
|
Return FileType.Split(":")
|
||||||
|
End If
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
ReadOnly Property ExcludeArray As String()
|
||||||
|
Get
|
||||||
|
If ExcludeList = String.Empty Then
|
||||||
|
Return New String() {}
|
||||||
|
Else
|
||||||
|
Return ExcludeList.Split(":")
|
||||||
|
End If
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Public Function SyncEquals(obj As Object, eSyncFields As eOptionalSyncFields) As Boolean
|
Public Function SyncEquals(obj As Object, eSyncFields As eOptionalSyncFields) As Boolean
|
||||||
Dim oGame As clsGame = TryCast(obj, clsGame)
|
Dim oGame As clsGame = TryCast(obj, clsGame)
|
||||||
If oGame Is Nothing Then
|
If oGame Is Nothing Then
|
||||||
@@ -253,6 +322,9 @@
|
|||||||
If ProcessName <> oGame.ProcessName Then
|
If ProcessName <> oGame.ProcessName Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
If Parameter <> oGame.Parameter Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
If Path <> oGame.Path Then
|
If Path <> oGame.Path Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
@@ -271,12 +343,24 @@
|
|||||||
If AppendTimeStamp <> oGame.AppendTimeStamp Then
|
If AppendTimeStamp <> oGame.AppendTimeStamp Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
If BackupLimit <> oGame.BackupLimit Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
If CleanFolder <> oGame.CleanFolder Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
If Hours <> oGame.Hours Then
|
If Hours <> oGame.Hours Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
If MonitorOnly <> oGame.MonitorOnly Then
|
If MonitorOnly <> oGame.MonitorOnly Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
If Comments <> oGame.Comments Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
If IsRegEx <> oGame.IsRegEx Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
|
||||||
'Optional Sync Fields
|
'Optional Sync Fields
|
||||||
If (eSyncFields And eOptionalSyncFields.Company) = eOptionalSyncFields.Company Then
|
If (eSyncFields And eOptionalSyncFields.Company) = eOptionalSyncFields.Company Then
|
||||||
@@ -299,14 +383,6 @@
|
|||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
If (eSyncFields And eOptionalSyncFields.TimeStamp) = eOptionalSyncFields.TimeStamp Then
|
|
||||||
If AppendTimeStamp <> oGame.AppendTimeStamp Then
|
|
||||||
Return False
|
|
||||||
End If
|
|
||||||
If BackupLimit <> oGame.BackupLimit Then
|
|
||||||
Return False
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
If (eSyncFields And eOptionalSyncFields.Version) = eOptionalSyncFields.Version Then
|
If (eSyncFields And eOptionalSyncFields.Version) = eOptionalSyncFields.Version Then
|
||||||
If Version <> oGame.Version Then
|
If Version <> oGame.Version Then
|
||||||
Return False
|
Return False
|
||||||
@@ -321,12 +397,46 @@
|
|||||||
If oGame Is Nothing Then
|
If oGame Is Nothing Then
|
||||||
Return False
|
Return False
|
||||||
Else
|
Else
|
||||||
|
'Core Fields
|
||||||
|
If ID <> oGame.ID Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
If Name <> oGame.Name Then
|
If Name <> oGame.Name Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
If ProcessName <> oGame.ProcessName Then
|
If ProcessName <> oGame.ProcessName Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
If Parameter <> oGame.Parameter Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
If Path <> oGame.Path Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
If FileType <> oGame.FileType Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
If ExcludeList <> oGame.ExcludeList Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
If AbsolutePath <> oGame.AbsolutePath Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
If FolderSave <> oGame.FolderSave Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
If AppendTimeStamp <> oGame.AppendTimeStamp Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
If MonitorOnly <> oGame.MonitorOnly Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
If Comments <> oGame.Comments Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
If IsRegEx <> oGame.IsRegEx Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
Return True
|
Return True
|
||||||
End If
|
End If
|
||||||
End Function
|
End Function
|
||||||
@@ -359,4 +469,12 @@
|
|||||||
Return sProcessName
|
Return sProcessName
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function SetSyncField(ByVal eSyncFields As eOptionalSyncFields, ByVal eSyncField As eOptionalSyncFields) As eOptionalSyncFields
|
||||||
|
Return eSyncFields Or eSyncField
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function RemoveSyncField(ByVal eSyncFields As eOptionalSyncFields, ByVal eSyncField As eOptionalSyncFields) As eOptionalSyncFields
|
||||||
|
Return eSyncFields And (Not eSyncField)
|
||||||
|
End Function
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -0,0 +1,81 @@
|
|||||||
|
Public Class clsGameFilter
|
||||||
|
|
||||||
|
Private sID As String
|
||||||
|
Private oField As clsGameFilterField
|
||||||
|
Private bNot As Boolean
|
||||||
|
Private oData As Object
|
||||||
|
Private eNumericOperator As eNumericOperators = eNumericOperators.Equals
|
||||||
|
|
||||||
|
Public Enum eNumericOperators
|
||||||
|
Equals = 1
|
||||||
|
Greater = 2
|
||||||
|
Lesser = 3
|
||||||
|
GreaterEquals = 4
|
||||||
|
LesserEquals = 5
|
||||||
|
End Enum
|
||||||
|
|
||||||
|
Public Property ID As String
|
||||||
|
Get
|
||||||
|
Return sID
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sID = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property Field As clsGameFilterField
|
||||||
|
Get
|
||||||
|
Return oField
|
||||||
|
End Get
|
||||||
|
Set(value As clsGameFilterField)
|
||||||
|
oField = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property NotCondition As Boolean
|
||||||
|
Get
|
||||||
|
Return bNot
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bNot = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property Data As Object
|
||||||
|
Get
|
||||||
|
Return oData
|
||||||
|
End Get
|
||||||
|
Set(value As Object)
|
||||||
|
oData = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property NumericOperator As eNumericOperators
|
||||||
|
Get
|
||||||
|
Return eNumericOperator
|
||||||
|
End Get
|
||||||
|
Set(value As eNumericOperators)
|
||||||
|
eNumericOperator = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property NumericOperatorAsString As String
|
||||||
|
Get
|
||||||
|
Select Case eNumericOperator
|
||||||
|
Case eNumericOperators.Equals
|
||||||
|
Return "="
|
||||||
|
Case eNumericOperators.Greater
|
||||||
|
Return ">"
|
||||||
|
Case eNumericOperators.GreaterEquals
|
||||||
|
Return ">="
|
||||||
|
Case eNumericOperators.Lesser
|
||||||
|
Return "<"
|
||||||
|
Case eNumericOperators.LesserEquals
|
||||||
|
Return "<="
|
||||||
|
Case Else
|
||||||
|
Return String.Empty
|
||||||
|
End Select
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
Public Class clsGameFilterField
|
||||||
|
|
||||||
|
Public Enum eDataType As Integer
|
||||||
|
fString = 1
|
||||||
|
fNumeric = 2
|
||||||
|
fBool = 3
|
||||||
|
End Enum
|
||||||
|
|
||||||
|
<Flags()> Public Enum eFieldStatus
|
||||||
|
None = 0
|
||||||
|
ValidFilter = 1
|
||||||
|
ValidSort = 2
|
||||||
|
End Enum
|
||||||
|
|
||||||
|
Private sFieldName As String
|
||||||
|
Private sFriendlyFieldName As String
|
||||||
|
Private eType As eDataType
|
||||||
|
Private eStatus As eFieldStatus
|
||||||
|
|
||||||
|
Public Property FieldName As String
|
||||||
|
Get
|
||||||
|
Return sFieldName
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sFieldName = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property FriendlyFieldName As String
|
||||||
|
Get
|
||||||
|
Return sFriendlyFieldName
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sFriendlyFieldName = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property Type As eDataType
|
||||||
|
Get
|
||||||
|
Return eType
|
||||||
|
End Get
|
||||||
|
Set(value As eDataType)
|
||||||
|
eType = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'This is a flag property - Setting a value will toggle that flag on and off.
|
||||||
|
Public Property Status As eFieldStatus
|
||||||
|
Get
|
||||||
|
Return eStatus
|
||||||
|
End Get
|
||||||
|
Set(value As eFieldStatus)
|
||||||
|
If (eStatus And value) = value Then
|
||||||
|
eStatus = RemoveFieldStatus(value)
|
||||||
|
Else
|
||||||
|
eStatus = SetFieldStatus(value)
|
||||||
|
End If
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Function SetFieldStatus(ByVal eFlag As eFieldStatus) As eFieldStatus
|
||||||
|
Return eStatus Or eFlag
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Function RemoveFieldStatus(ByVal eFlag As eFieldStatus) As eFieldStatus
|
||||||
|
Return eStatus And (Not eFlag)
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function CheckStatus(ByVal eFlag As eFieldStatus) As Boolean
|
||||||
|
If (eStatus And eFlag) = eFlag Then
|
||||||
|
Return True
|
||||||
|
Else
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
End Function
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
Public Class clsGameProcess
|
||||||
|
Private sProcessID As String
|
||||||
|
Private sMonitorID As String
|
||||||
|
|
||||||
|
Public Property ProcessID As String
|
||||||
|
Get
|
||||||
|
Return sProcessID
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sProcessID = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property MonitorID As String
|
||||||
|
Get
|
||||||
|
Return sMonitorID
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sMonitorID = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
<Serializable()>
|
||||||
|
Public Class clsProcess
|
||||||
|
Private sProcessID As String = Guid.NewGuid.ToString
|
||||||
|
Private sName As String = String.Empty
|
||||||
|
Private sPath As String = String.Empty
|
||||||
|
Private sArgs As String = String.Empty
|
||||||
|
Private bKill As Boolean = True
|
||||||
|
|
||||||
|
Public Property ID As String
|
||||||
|
Get
|
||||||
|
Return sProcessID
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sProcessID = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property Name As String
|
||||||
|
Get
|
||||||
|
Return sName
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sName = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property Path As String
|
||||||
|
Get
|
||||||
|
Return sPath
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sPath = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property Args As String
|
||||||
|
Get
|
||||||
|
Return sArgs
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sArgs = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property Kill As Boolean
|
||||||
|
Get
|
||||||
|
Return bKill
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bKill = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
End Class
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
Public Class clsRestoreCache
|
Public Class clsSavedPath
|
||||||
Private sName As String
|
Private sPathName As String = String.Empty
|
||||||
Private sPath As String
|
Private sPath As String = String.Empty
|
||||||
|
|
||||||
Property Name As String
|
Property PathName As String
|
||||||
Get
|
Get
|
||||||
Return sName
|
Return sPathName
|
||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
sName = value
|
sPathName = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -19,5 +19,4 @@
|
|||||||
sPath = value
|
sPath = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
Public Class clsSession
|
||||||
|
|
||||||
|
Private sMonitorID As String
|
||||||
|
Private iStart As Int64
|
||||||
|
Private iEnd As Int64
|
||||||
|
|
||||||
|
Public Property MonitorID As String
|
||||||
|
Set(value As String)
|
||||||
|
sMonitorID = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return sMonitorID
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property SessionStart As Int64
|
||||||
|
Set(value As Int64)
|
||||||
|
iStart = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return iStart
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public WriteOnly Property SessionStartFromDate As DateTime
|
||||||
|
Set(value As DateTime)
|
||||||
|
iStart = mgrCommon.DateToUnix(value)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property SessionStartFormatted As DateTime
|
||||||
|
Get
|
||||||
|
Return mgrCommon.UnixToDate(iStart)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property SessionEnd As Int64
|
||||||
|
Set(value As Int64)
|
||||||
|
iEnd = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return iEnd
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public WriteOnly Property SessionEndFromDate As DateTime
|
||||||
|
Set(value As DateTime)
|
||||||
|
iEnd = mgrCommon.DateToUnix(value)
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property SessionEndFormatted As DateTime
|
||||||
|
Get
|
||||||
|
Return mgrCommon.UnixToDate(iEnd)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
End Class
|
||||||
Generated
+2
-3
@@ -124,9 +124,8 @@ Partial Class frmAddWizard
|
|||||||
Me.lblStep1Instructions.Name = "lblStep1Instructions"
|
Me.lblStep1Instructions.Name = "lblStep1Instructions"
|
||||||
Me.lblStep1Instructions.Size = New System.Drawing.Size(303, 85)
|
Me.lblStep1Instructions.Size = New System.Drawing.Size(303, 85)
|
||||||
Me.lblStep1Instructions.TabIndex = 6
|
Me.lblStep1Instructions.TabIndex = 6
|
||||||
Me.lblStep1Instructions.Text = "The name will be automatically filtered for length and invalid characters. You m" &
|
Me.lblStep1Instructions.Text = "You may drag and drop a shortcut here to complete this step, only Windows shortcu" &
|
||||||
"ay drag and drop a shortcut here to complete this step, only Windows shortcuts a" &
|
"ts are currently supported."
|
||||||
"re currently supported."
|
|
||||||
'
|
'
|
||||||
'txtName
|
'txtName
|
||||||
'
|
'
|
||||||
|
|||||||
+15
-25
@@ -195,10 +195,7 @@ Public Class frmAddWizard
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Function ValidateName(ByVal strName As String, ByRef sErrorMessage As String) As Boolean
|
Private Function ValidateName(ByVal strName As String, ByRef sErrorMessage As String) As Boolean
|
||||||
If txtName.Text <> String.Empty Then
|
If txtName.Text.Trim = String.Empty Then
|
||||||
txtName.Text = mgrPath.ValidateForFileSystem(txtName.Text)
|
|
||||||
Return True
|
|
||||||
Else
|
|
||||||
sErrorMessage = frmAddWizard_ErrorValidName
|
sErrorMessage = frmAddWizard_ErrorValidName
|
||||||
txtName.Focus()
|
txtName.Focus()
|
||||||
Return False
|
Return False
|
||||||
@@ -207,7 +204,9 @@ Public Class frmAddWizard
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function ValidateProcessPath(ByVal strPath As String, ByRef sErrorMessage As String) As Boolean
|
Private Function ValidateProcessPath(ByVal strPath As String, ByRef sErrorMessage As String) As Boolean
|
||||||
If strPath = String.Empty Then
|
strPath = mgrPath.ValidatePathForOS(strPath)
|
||||||
|
|
||||||
|
If strPath.Trim = String.Empty Then
|
||||||
sErrorMessage = frmAddWizard_ErrorValidProcess
|
sErrorMessage = frmAddWizard_ErrorValidProcess
|
||||||
txtProcessPath.Focus()
|
txtProcessPath.Focus()
|
||||||
Return False
|
Return False
|
||||||
@@ -235,7 +234,9 @@ Public Class frmAddWizard
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function ValidateSavePath(ByVal strPath As String, ByRef sErrorMessage As String) As Boolean
|
Private Function ValidateSavePath(ByVal strPath As String, ByRef sErrorMessage As String) As Boolean
|
||||||
If strPath = String.Empty Then
|
strPath = mgrPath.ValidatePathForOS(strPath)
|
||||||
|
|
||||||
|
If strPath.Trim = String.Empty Then
|
||||||
sErrorMessage = frmAddWizard_ErrorValidSavePath
|
sErrorMessage = frmAddWizard_ErrorValidSavePath
|
||||||
txtSavePath.Focus()
|
txtSavePath.Focus()
|
||||||
Return False
|
Return False
|
||||||
@@ -257,7 +258,7 @@ Public Class frmAddWizard
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function ValidateSaveType(ByVal strSaveType As String, ByRef sErrorMessage As String)
|
Private Function ValidateSaveType(ByVal strSaveType As String, ByRef sErrorMessage As String)
|
||||||
If strSaveType = String.Empty Then
|
If strSaveType.Trim = String.Empty Then
|
||||||
sErrorMessage = frmAddWizard_ErrorValidSaveType
|
sErrorMessage = frmAddWizard_ErrorValidSaveType
|
||||||
txtFileTypes.Focus()
|
txtFileTypes.Focus()
|
||||||
Return False
|
Return False
|
||||||
@@ -267,22 +268,11 @@ Public Class frmAddWizard
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Sub DoSave()
|
Private Sub DoSave()
|
||||||
Dim hshDupeCheck As New Hashtable
|
mgrMonitorList.DoListAdd(oGameToSave)
|
||||||
Dim sNewGame As String = oGameToSave.ProcessName & ":" & oGameToSave.Name
|
If mgrCommon.ShowMessage(frmAddWizard_ConfirmSaveTags, New String() {oGameToSave.Name, oGameToSave.Name}, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
|
||||||
|
OpenTags(oGameToSave)
|
||||||
For Each o As clsGame In GameData.Values
|
|
||||||
hshDupeCheck.Add(o.CompoundKey, String.Empty)
|
|
||||||
Next
|
|
||||||
|
|
||||||
If hshDupeCheck.Contains(sNewGame) Then
|
|
||||||
mgrCommon.ShowMessage(frmAddWizard_ErrorGameDupe, MsgBoxStyle.Exclamation)
|
|
||||||
Else
|
|
||||||
mgrMonitorList.DoListAdd(oGameToSave)
|
|
||||||
If mgrCommon.ShowMessage(frmAddWizard_ConfirmSaveTags, New String() {oGameToSave.Name, oGameToSave.Name}, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
|
|
||||||
OpenTags(oGameToSave)
|
|
||||||
End If
|
|
||||||
Me.Close()
|
|
||||||
End If
|
End If
|
||||||
|
Me.Close()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub ValidateBack()
|
Private Sub ValidateBack()
|
||||||
@@ -425,8 +415,8 @@ Public Class frmAddWizard
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
sNewPath = mgrCommon.OpenFileBrowser(frmAddWizard_ChooseProcess, "exe",
|
sNewPath = mgrCommon.OpenFileBrowser("Wizard_Process_Path", frmAddWizard_ChooseProcess, "exe",
|
||||||
frmAddWizard_Executable, sDefaultFolder, False)
|
frmAddWizard_Executable, sDefaultFolder, False, False)
|
||||||
|
|
||||||
If sNewPath <> String.Empty Then txtProcessPath.Text = sNewPath
|
If sNewPath <> String.Empty Then txtProcessPath.Text = sNewPath
|
||||||
End Sub
|
End Sub
|
||||||
@@ -442,7 +432,7 @@ Public Class frmAddWizard
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
sNewPath = mgrCommon.OpenFolderBrowser(frmAddWizard_ChooseSavePath, sDefaultFolder, False)
|
sNewPath = mgrCommon.OpenFolderBrowser("Wizard_Save_Path", frmAddWizard_ChooseSavePath, sDefaultFolder, False, False)
|
||||||
|
|
||||||
If sNewPath <> String.Empty Then txtSavePath.Text = sNewPath
|
If sNewPath <> String.Empty Then txtSavePath.Text = sNewPath
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
Generated
+6
-6
@@ -1,9 +1,9 @@
|
|||||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
|
||||||
Partial Class frmAdvancedImport
|
Partial Class frmAdvancedImport
|
||||||
Inherits System.Windows.Forms.Form
|
Inherits System.Windows.Forms.Form
|
||||||
|
|
||||||
'Form overrides dispose to clean up the component list.
|
'Form overrides dispose to clean up the component list.
|
||||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
<System.Diagnostics.DebuggerNonUserCode()>
|
||||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
Try
|
Try
|
||||||
If disposing AndAlso components IsNot Nothing Then
|
If disposing AndAlso components IsNot Nothing Then
|
||||||
@@ -20,7 +20,7 @@ Partial Class frmAdvancedImport
|
|||||||
'NOTE: The following procedure is required by the Windows Form Designer
|
'NOTE: The following procedure is required by the Windows Form Designer
|
||||||
'It can be modified using the Windows Form Designer.
|
'It can be modified using the Windows Form Designer.
|
||||||
'Do not modify it using the code editor.
|
'Do not modify it using the code editor.
|
||||||
<System.Diagnostics.DebuggerStepThrough()> _
|
<System.Diagnostics.DebuggerStepThrough()>
|
||||||
Private Sub InitializeComponent()
|
Private Sub InitializeComponent()
|
||||||
Me.btnImport = New System.Windows.Forms.Button()
|
Me.btnImport = New System.Windows.Forms.Button()
|
||||||
Me.chkSelectAll = New System.Windows.Forms.CheckBox()
|
Me.chkSelectAll = New System.Windows.Forms.CheckBox()
|
||||||
@@ -44,7 +44,7 @@ Partial Class frmAdvancedImport
|
|||||||
'chkSelectAll
|
'chkSelectAll
|
||||||
'
|
'
|
||||||
Me.chkSelectAll.AutoSize = True
|
Me.chkSelectAll.AutoSize = True
|
||||||
Me.chkSelectAll.Location = New System.Drawing.Point(12, 12)
|
Me.chkSelectAll.Location = New System.Drawing.Point(12, 11)
|
||||||
Me.chkSelectAll.Name = "chkSelectAll"
|
Me.chkSelectAll.Name = "chkSelectAll"
|
||||||
Me.chkSelectAll.Size = New System.Drawing.Size(70, 17)
|
Me.chkSelectAll.Size = New System.Drawing.Size(70, 17)
|
||||||
Me.chkSelectAll.TabIndex = 0
|
Me.chkSelectAll.TabIndex = 0
|
||||||
@@ -98,9 +98,9 @@ Partial Class frmAdvancedImport
|
|||||||
'
|
'
|
||||||
'lblFilter
|
'lblFilter
|
||||||
'
|
'
|
||||||
Me.lblFilter.Location = New System.Drawing.Point(307, 12)
|
Me.lblFilter.Location = New System.Drawing.Point(371, 12)
|
||||||
Me.lblFilter.Name = "lblFilter"
|
Me.lblFilter.Name = "lblFilter"
|
||||||
Me.lblFilter.Size = New System.Drawing.Size(103, 14)
|
Me.lblFilter.Size = New System.Drawing.Size(39, 14)
|
||||||
Me.lblFilter.TabIndex = 0
|
Me.lblFilter.TabIndex = 0
|
||||||
Me.lblFilter.Text = "Filter:"
|
Me.lblFilter.Text = "Filter:"
|
||||||
Me.lblFilter.TextAlign = System.Drawing.ContentAlignment.TopRight
|
Me.lblFilter.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
|||||||
@@ -1,14 +1,26 @@
|
|||||||
Imports GBM.My.Resources
|
Imports GBM.My.Resources
|
||||||
|
Imports System.IO
|
||||||
|
|
||||||
Public Class frmAdvancedImport
|
Public Class frmAdvancedImport
|
||||||
|
|
||||||
|
Private oImportData As ExportData
|
||||||
Private hshImportData As Hashtable
|
Private hshImportData As Hashtable
|
||||||
Private hshFinalData As New Hashtable
|
Private hshFinalData As New Hashtable
|
||||||
Private bSelectAll As Boolean = False
|
Private bSelectAll As Boolean = True
|
||||||
Private bIsLoading As Boolean = False
|
Private bIsLoading As Boolean = False
|
||||||
Private iCurrentSort As Integer = 0
|
Private iCurrentSort As Integer = 0
|
||||||
|
Private oImageList As ImageList
|
||||||
Private WithEvents tmFilterTimer As Timer
|
Private WithEvents tmFilterTimer As Timer
|
||||||
|
|
||||||
|
Public Property ImportInfo As ExportData
|
||||||
|
Set(value As ExportData)
|
||||||
|
oImportData = value
|
||||||
|
End Set
|
||||||
|
Get
|
||||||
|
Return oImportData
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Public Property ImportData As Hashtable
|
Public Property ImportData As Hashtable
|
||||||
Set(value As Hashtable)
|
Set(value As Hashtable)
|
||||||
hshImportData = value
|
hshImportData = value
|
||||||
@@ -44,7 +56,7 @@ Public Class frmAdvancedImport
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub LoadData(Optional ByVal sFilter As String = "")
|
Private Sub LoadData(Optional ByVal sFilter As String = "", Optional ByVal bAutoDetect As Boolean = False)
|
||||||
Dim oApp As clsGame
|
Dim oApp As clsGame
|
||||||
Dim oListViewItem As ListViewItem
|
Dim oListViewItem As ListViewItem
|
||||||
Dim sTags As String
|
Dim sTags As String
|
||||||
@@ -71,14 +83,34 @@ Public Class frmAdvancedImport
|
|||||||
sTags = sTags.TrimEnd(New Char() {",", " "})
|
sTags = sTags.TrimEnd(New Char() {",", " "})
|
||||||
|
|
||||||
oListViewItem = New ListViewItem(New String() {oApp.Name, oApp.TrueProcess, sTags})
|
oListViewItem = New ListViewItem(New String() {oApp.Name, oApp.TrueProcess, sTags})
|
||||||
oListViewItem.Tag = oApp.CompoundKey
|
oListViewItem.Tag = oApp.ID
|
||||||
|
|
||||||
If FinalData.ContainsKey(oApp.CompoundKey) Then
|
If FinalData.ContainsKey(oApp.ID) Then
|
||||||
oListViewItem.Checked = True
|
oListViewItem.Checked = True
|
||||||
Else
|
Else
|
||||||
oListViewItem.Checked = False
|
oListViewItem.Checked = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If bAutoDetect Then
|
||||||
|
If oApp.AbsolutePath Then
|
||||||
|
If Directory.Exists(oApp.Path) Then
|
||||||
|
oListViewItem.Checked = True
|
||||||
|
SaveChecked(oListViewItem)
|
||||||
|
Else
|
||||||
|
oListViewItem.Checked = False
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
oListViewItem.Checked = False
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
If oApp.ImportUpdate Then
|
||||||
|
oListViewItem.ImageIndex = 1
|
||||||
|
oListViewItem.Checked = True
|
||||||
|
Else
|
||||||
|
oListViewItem.ImageIndex = 0
|
||||||
|
End If
|
||||||
|
|
||||||
If sFilter = String.Empty Then
|
If sFilter = String.Empty Then
|
||||||
bAddItem = True
|
bAddItem = True
|
||||||
Else
|
Else
|
||||||
@@ -121,12 +153,24 @@ Public Class frmAdvancedImport
|
|||||||
'Set Form Name
|
'Set Form Name
|
||||||
Me.Text = frmAdvancedImport_FormName
|
Me.Text = frmAdvancedImport_FormName
|
||||||
|
|
||||||
|
'Add configuration date to title if applicable
|
||||||
|
If ImportInfo.Exported <> 0 Then
|
||||||
|
Me.Text &= " [" & mgrCommon.UnixToDate(ImportInfo.Exported).Date & "]"
|
||||||
|
End If
|
||||||
|
|
||||||
'Set Form Text
|
'Set Form Text
|
||||||
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.Text = frmAdvancedImport_chkSelectAll
|
||||||
|
|
||||||
|
|
||||||
|
'Set Icons
|
||||||
|
oImageList = New ImageList()
|
||||||
|
oImageList.Images.Add(Icon_New)
|
||||||
|
oImageList.Images.Add(Icon_Update)
|
||||||
|
lstGames.SmallImageList = oImageList
|
||||||
|
|
||||||
chkSelectAll.Checked = True
|
chkSelectAll.Checked = True
|
||||||
|
|
||||||
'Init Filter Timer
|
'Init Filter Timer
|
||||||
@@ -142,8 +186,7 @@ Public Class frmAdvancedImport
|
|||||||
Private Sub frmAdvancedImport_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
Private Sub frmAdvancedImport_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||||
bIsLoading = True
|
bIsLoading = True
|
||||||
SetForm()
|
SetForm()
|
||||||
LoadData()
|
LoadData(String.Empty, True)
|
||||||
SelectToggle()
|
|
||||||
bIsLoading = False
|
bIsLoading = False
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -184,6 +227,7 @@ Public Class frmAdvancedImport
|
|||||||
tmFilterTimer.Stop()
|
tmFilterTimer.Stop()
|
||||||
tmFilterTimer.Enabled = False
|
tmFilterTimer.Enabled = False
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
' Column Sorter
|
' Column Sorter
|
||||||
|
|||||||
@@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
Public Class frmChooseGame
|
Public Class frmChooseGame
|
||||||
|
|
||||||
Private oProcess As mgrProcesses
|
Private oProcess As mgrProcessDetection
|
||||||
Private oGame As clsGame
|
Private oGame As clsGame
|
||||||
Private oGamesHash As New Hashtable
|
Private oGamesHash As New Hashtable
|
||||||
Private bGameSelected As Boolean = False
|
Private bGameSelected As Boolean = False
|
||||||
|
|
||||||
Property Process As mgrProcesses
|
Property Process As mgrProcessDetection
|
||||||
Get
|
Get
|
||||||
Return oProcess
|
Return oProcess
|
||||||
End Get
|
End Get
|
||||||
Set(value As mgrProcesses)
|
Set(value As mgrProcessDetection)
|
||||||
oProcess = value
|
oProcess = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|||||||
Generated
+385
-154
@@ -22,75 +22,117 @@ Partial Class frmFilter
|
|||||||
'Do not modify it using the code editor.
|
'Do not modify it using the code editor.
|
||||||
<System.Diagnostics.DebuggerStepThrough()> _
|
<System.Diagnostics.DebuggerStepThrough()> _
|
||||||
Private Sub InitializeComponent()
|
Private Sub InitializeComponent()
|
||||||
Me.optGameInfo = New System.Windows.Forms.RadioButton()
|
|
||||||
Me.optTag = New System.Windows.Forms.RadioButton()
|
|
||||||
Me.grpTagFilter = New System.Windows.Forms.GroupBox()
|
Me.grpTagFilter = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.lblExcludeTags = New System.Windows.Forms.Label()
|
||||||
|
Me.btnExcludeRemove = New System.Windows.Forms.Button()
|
||||||
|
Me.btnExcludeAdd = New System.Windows.Forms.Button()
|
||||||
|
Me.lstExcludeTags = New System.Windows.Forms.ListBox()
|
||||||
Me.grpTagOptions = New System.Windows.Forms.GroupBox()
|
Me.grpTagOptions = New System.Windows.Forms.GroupBox()
|
||||||
Me.optAll = New System.Windows.Forms.RadioButton()
|
Me.optAll = New System.Windows.Forms.RadioButton()
|
||||||
Me.optAny = New System.Windows.Forms.RadioButton()
|
Me.optAny = New System.Windows.Forms.RadioButton()
|
||||||
Me.lblGameTags = New System.Windows.Forms.Label()
|
Me.lblIncludeTags = New System.Windows.Forms.Label()
|
||||||
Me.lblTags = New System.Windows.Forms.Label()
|
Me.lblTags = New System.Windows.Forms.Label()
|
||||||
Me.btnRemove = New System.Windows.Forms.Button()
|
Me.btnIncludeRemove = New System.Windows.Forms.Button()
|
||||||
Me.btnAdd = New System.Windows.Forms.Button()
|
Me.btnIncludeAdd = New System.Windows.Forms.Button()
|
||||||
Me.lstFilter = New System.Windows.Forms.ListBox()
|
Me.lstIncludeTags = New System.Windows.Forms.ListBox()
|
||||||
Me.lstTags = New System.Windows.Forms.ListBox()
|
Me.lstTags = New System.Windows.Forms.ListBox()
|
||||||
Me.btnOK = New System.Windows.Forms.Button()
|
Me.btnOK = New System.Windows.Forms.Button()
|
||||||
Me.grpGameFilter = New System.Windows.Forms.GroupBox()
|
Me.grpGameFilter = New System.Windows.Forms.GroupBox()
|
||||||
Me.grpGameInfoOptions = New System.Windows.Forms.GroupBox()
|
Me.lblNot = New System.Windows.Forms.Label()
|
||||||
|
Me.chkNot = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.cboBoolFilter = New System.Windows.Forms.ComboBox()
|
||||||
|
Me.numFilter = New System.Windows.Forms.NumericUpDown()
|
||||||
|
Me.cboNumericOps = New System.Windows.Forms.ComboBox()
|
||||||
|
Me.lblCurrentFilters = New System.Windows.Forms.Label()
|
||||||
|
Me.lblFilterData = New System.Windows.Forms.Label()
|
||||||
|
Me.lblFields = New System.Windows.Forms.Label()
|
||||||
|
Me.btnRemoveFilter = New System.Windows.Forms.Button()
|
||||||
|
Me.lstFilter = New System.Windows.Forms.ListBox()
|
||||||
|
Me.btnAddFilter = New System.Windows.Forms.Button()
|
||||||
|
Me.cboFilterField = New System.Windows.Forms.ComboBox()
|
||||||
|
Me.grpFilterType = New System.Windows.Forms.GroupBox()
|
||||||
Me.optOr = New System.Windows.Forms.RadioButton()
|
Me.optOr = New System.Windows.Forms.RadioButton()
|
||||||
Me.optAnd = New System.Windows.Forms.RadioButton()
|
Me.optAnd = New System.Windows.Forms.RadioButton()
|
||||||
Me.txtCompany = New System.Windows.Forms.TextBox()
|
Me.txtStringFilter = New System.Windows.Forms.TextBox()
|
||||||
Me.lblCompany = New System.Windows.Forms.Label()
|
Me.grpSorting = New System.Windows.Forms.GroupBox()
|
||||||
Me.txtProcess = New System.Windows.Forms.TextBox()
|
Me.grpSortOptions = New System.Windows.Forms.GroupBox()
|
||||||
Me.lblProcess = New System.Windows.Forms.Label()
|
Me.optSortAsc = New System.Windows.Forms.RadioButton()
|
||||||
Me.lblName = New System.Windows.Forms.Label()
|
Me.optSortDesc = New System.Windows.Forms.RadioButton()
|
||||||
Me.txtName = New System.Windows.Forms.TextBox()
|
Me.lblSortFields = New System.Windows.Forms.Label()
|
||||||
|
Me.cboSortField = New System.Windows.Forms.ComboBox()
|
||||||
|
Me.chkTag = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.chkGameInfo = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.Label1 = New System.Windows.Forms.Label()
|
||||||
Me.grpTagFilter.SuspendLayout()
|
Me.grpTagFilter.SuspendLayout()
|
||||||
Me.grpTagOptions.SuspendLayout()
|
Me.grpTagOptions.SuspendLayout()
|
||||||
Me.grpGameFilter.SuspendLayout()
|
Me.grpGameFilter.SuspendLayout()
|
||||||
Me.grpGameInfoOptions.SuspendLayout()
|
CType(Me.numFilter, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
Me.grpFilterType.SuspendLayout()
|
||||||
|
Me.grpSorting.SuspendLayout()
|
||||||
|
Me.grpSortOptions.SuspendLayout()
|
||||||
Me.SuspendLayout()
|
Me.SuspendLayout()
|
||||||
'
|
'
|
||||||
'optGameInfo
|
|
||||||
'
|
|
||||||
Me.optGameInfo.AutoSize = True
|
|
||||||
Me.optGameInfo.Location = New System.Drawing.Point(12, 12)
|
|
||||||
Me.optGameInfo.Name = "optGameInfo"
|
|
||||||
Me.optGameInfo.Size = New System.Drawing.Size(108, 17)
|
|
||||||
Me.optGameInfo.TabIndex = 0
|
|
||||||
Me.optGameInfo.Text = "Game Information"
|
|
||||||
Me.optGameInfo.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'optTag
|
|
||||||
'
|
|
||||||
Me.optTag.AutoSize = True
|
|
||||||
Me.optTag.Location = New System.Drawing.Point(12, 190)
|
|
||||||
Me.optTag.Name = "optTag"
|
|
||||||
Me.optTag.Size = New System.Drawing.Size(44, 17)
|
|
||||||
Me.optTag.TabIndex = 2
|
|
||||||
Me.optTag.Text = "Tag"
|
|
||||||
Me.optTag.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'grpTagFilter
|
'grpTagFilter
|
||||||
'
|
'
|
||||||
|
Me.grpTagFilter.Controls.Add(Me.lblExcludeTags)
|
||||||
|
Me.grpTagFilter.Controls.Add(Me.btnExcludeRemove)
|
||||||
|
Me.grpTagFilter.Controls.Add(Me.btnExcludeAdd)
|
||||||
|
Me.grpTagFilter.Controls.Add(Me.lstExcludeTags)
|
||||||
Me.grpTagFilter.Controls.Add(Me.grpTagOptions)
|
Me.grpTagFilter.Controls.Add(Me.grpTagOptions)
|
||||||
Me.grpTagFilter.Controls.Add(Me.lblGameTags)
|
Me.grpTagFilter.Controls.Add(Me.lblIncludeTags)
|
||||||
Me.grpTagFilter.Controls.Add(Me.lblTags)
|
Me.grpTagFilter.Controls.Add(Me.lblTags)
|
||||||
Me.grpTagFilter.Controls.Add(Me.btnRemove)
|
Me.grpTagFilter.Controls.Add(Me.btnIncludeRemove)
|
||||||
Me.grpTagFilter.Controls.Add(Me.btnAdd)
|
Me.grpTagFilter.Controls.Add(Me.btnIncludeAdd)
|
||||||
Me.grpTagFilter.Controls.Add(Me.lstFilter)
|
Me.grpTagFilter.Controls.Add(Me.lstIncludeTags)
|
||||||
Me.grpTagFilter.Controls.Add(Me.lstTags)
|
Me.grpTagFilter.Controls.Add(Me.lstTags)
|
||||||
Me.grpTagFilter.Location = New System.Drawing.Point(12, 213)
|
Me.grpTagFilter.Location = New System.Drawing.Point(12, 236)
|
||||||
Me.grpTagFilter.Name = "grpTagFilter"
|
Me.grpTagFilter.Name = "grpTagFilter"
|
||||||
Me.grpTagFilter.Size = New System.Drawing.Size(385, 265)
|
Me.grpTagFilter.Size = New System.Drawing.Size(410, 198)
|
||||||
Me.grpTagFilter.TabIndex = 3
|
Me.grpTagFilter.TabIndex = 3
|
||||||
Me.grpTagFilter.TabStop = False
|
Me.grpTagFilter.TabStop = False
|
||||||
'
|
'
|
||||||
|
'lblExcludeTags
|
||||||
|
'
|
||||||
|
Me.lblExcludeTags.AutoSize = True
|
||||||
|
Me.lblExcludeTags.Location = New System.Drawing.Point(313, 16)
|
||||||
|
Me.lblExcludeTags.Name = "lblExcludeTags"
|
||||||
|
Me.lblExcludeTags.Size = New System.Drawing.Size(72, 13)
|
||||||
|
Me.lblExcludeTags.TabIndex = 10
|
||||||
|
Me.lblExcludeTags.Text = "Exclude Tags"
|
||||||
|
'
|
||||||
|
'btnExcludeRemove
|
||||||
|
'
|
||||||
|
Me.btnExcludeRemove.Location = New System.Drawing.Point(261, 91)
|
||||||
|
Me.btnExcludeRemove.Name = "btnExcludeRemove"
|
||||||
|
Me.btnExcludeRemove.Size = New System.Drawing.Size(31, 23)
|
||||||
|
Me.btnExcludeRemove.TabIndex = 9
|
||||||
|
Me.btnExcludeRemove.Text = "<"
|
||||||
|
Me.btnExcludeRemove.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'btnExcludeAdd
|
||||||
|
'
|
||||||
|
Me.btnExcludeAdd.Location = New System.Drawing.Point(261, 62)
|
||||||
|
Me.btnExcludeAdd.Name = "btnExcludeAdd"
|
||||||
|
Me.btnExcludeAdd.Size = New System.Drawing.Size(31, 23)
|
||||||
|
Me.btnExcludeAdd.TabIndex = 8
|
||||||
|
Me.btnExcludeAdd.Text = ">"
|
||||||
|
Me.btnExcludeAdd.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'lstExcludeTags
|
||||||
|
'
|
||||||
|
Me.lstExcludeTags.FormattingEnabled = True
|
||||||
|
Me.lstExcludeTags.Location = New System.Drawing.Point(298, 32)
|
||||||
|
Me.lstExcludeTags.Name = "lstExcludeTags"
|
||||||
|
Me.lstExcludeTags.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended
|
||||||
|
Me.lstExcludeTags.Size = New System.Drawing.Size(103, 108)
|
||||||
|
Me.lstExcludeTags.Sorted = True
|
||||||
|
Me.lstExcludeTags.TabIndex = 7
|
||||||
|
'
|
||||||
'grpTagOptions
|
'grpTagOptions
|
||||||
'
|
'
|
||||||
Me.grpTagOptions.Controls.Add(Me.optAll)
|
Me.grpTagOptions.Controls.Add(Me.optAll)
|
||||||
Me.grpTagOptions.Controls.Add(Me.optAny)
|
Me.grpTagOptions.Controls.Add(Me.optAny)
|
||||||
Me.grpTagOptions.Location = New System.Drawing.Point(6, 211)
|
Me.grpTagOptions.Location = New System.Drawing.Point(6, 146)
|
||||||
Me.grpTagOptions.Name = "grpTagOptions"
|
Me.grpTagOptions.Name = "grpTagOptions"
|
||||||
Me.grpTagOptions.Size = New System.Drawing.Size(150, 46)
|
Me.grpTagOptions.Size = New System.Drawing.Size(150, 46)
|
||||||
Me.grpTagOptions.TabIndex = 6
|
Me.grpTagOptions.TabIndex = 6
|
||||||
@@ -118,176 +160,342 @@ Partial Class frmFilter
|
|||||||
Me.optAny.Text = "Any Tag"
|
Me.optAny.Text = "Any Tag"
|
||||||
Me.optAny.UseVisualStyleBackColor = True
|
Me.optAny.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'lblGameTags
|
'lblIncludeTags
|
||||||
'
|
'
|
||||||
Me.lblGameTags.AutoSize = True
|
Me.lblIncludeTags.AutoSize = True
|
||||||
Me.lblGameTags.Location = New System.Drawing.Point(271, 16)
|
Me.lblIncludeTags.Location = New System.Drawing.Point(23, 16)
|
||||||
Me.lblGameTags.Name = "lblGameTags"
|
Me.lblIncludeTags.Name = "lblIncludeTags"
|
||||||
Me.lblGameTags.Size = New System.Drawing.Size(66, 13)
|
Me.lblIncludeTags.Size = New System.Drawing.Size(69, 13)
|
||||||
Me.lblGameTags.TabIndex = 4
|
Me.lblIncludeTags.TabIndex = 4
|
||||||
Me.lblGameTags.Text = "Current Filter"
|
Me.lblIncludeTags.Text = "Include Tags"
|
||||||
'
|
'
|
||||||
'lblTags
|
'lblTags
|
||||||
'
|
'
|
||||||
Me.lblTags.AutoSize = True
|
Me.lblTags.AutoSize = True
|
||||||
Me.lblTags.Location = New System.Drawing.Point(43, 16)
|
Me.lblTags.Location = New System.Drawing.Point(165, 16)
|
||||||
Me.lblTags.Name = "lblTags"
|
Me.lblTags.Name = "lblTags"
|
||||||
Me.lblTags.Size = New System.Drawing.Size(77, 13)
|
Me.lblTags.Size = New System.Drawing.Size(77, 13)
|
||||||
Me.lblTags.TabIndex = 0
|
Me.lblTags.TabIndex = 0
|
||||||
Me.lblTags.Text = "Available Tags"
|
Me.lblTags.Text = "Available Tags"
|
||||||
'
|
'
|
||||||
'btnRemove
|
'btnIncludeRemove
|
||||||
'
|
'
|
||||||
Me.btnRemove.Location = New System.Drawing.Point(162, 122)
|
Me.btnIncludeRemove.Location = New System.Drawing.Point(115, 91)
|
||||||
Me.btnRemove.Name = "btnRemove"
|
Me.btnIncludeRemove.Name = "btnIncludeRemove"
|
||||||
Me.btnRemove.Size = New System.Drawing.Size(61, 23)
|
Me.btnIncludeRemove.Size = New System.Drawing.Size(31, 23)
|
||||||
Me.btnRemove.TabIndex = 3
|
Me.btnIncludeRemove.TabIndex = 3
|
||||||
Me.btnRemove.Text = "<"
|
Me.btnIncludeRemove.Text = ">"
|
||||||
Me.btnRemove.UseVisualStyleBackColor = True
|
Me.btnIncludeRemove.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'btnAdd
|
'btnIncludeAdd
|
||||||
'
|
'
|
||||||
Me.btnAdd.Location = New System.Drawing.Point(162, 93)
|
Me.btnIncludeAdd.Location = New System.Drawing.Point(115, 62)
|
||||||
Me.btnAdd.Name = "btnAdd"
|
Me.btnIncludeAdd.Name = "btnIncludeAdd"
|
||||||
Me.btnAdd.Size = New System.Drawing.Size(61, 23)
|
Me.btnIncludeAdd.Size = New System.Drawing.Size(31, 23)
|
||||||
Me.btnAdd.TabIndex = 2
|
Me.btnIncludeAdd.TabIndex = 2
|
||||||
Me.btnAdd.Text = ">"
|
Me.btnIncludeAdd.Text = "<"
|
||||||
Me.btnAdd.UseVisualStyleBackColor = True
|
Me.btnIncludeAdd.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'lstFilter
|
'lstIncludeTags
|
||||||
'
|
'
|
||||||
Me.lstFilter.FormattingEnabled = True
|
Me.lstIncludeTags.FormattingEnabled = True
|
||||||
Me.lstFilter.Location = New System.Drawing.Point(229, 32)
|
Me.lstIncludeTags.Location = New System.Drawing.Point(6, 32)
|
||||||
Me.lstFilter.Name = "lstFilter"
|
Me.lstIncludeTags.Name = "lstIncludeTags"
|
||||||
Me.lstFilter.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended
|
Me.lstIncludeTags.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended
|
||||||
Me.lstFilter.Size = New System.Drawing.Size(150, 173)
|
Me.lstIncludeTags.Size = New System.Drawing.Size(103, 108)
|
||||||
Me.lstFilter.Sorted = True
|
Me.lstIncludeTags.Sorted = True
|
||||||
Me.lstFilter.TabIndex = 5
|
Me.lstIncludeTags.TabIndex = 5
|
||||||
'
|
'
|
||||||
'lstTags
|
'lstTags
|
||||||
'
|
'
|
||||||
Me.lstTags.FormattingEnabled = True
|
Me.lstTags.FormattingEnabled = True
|
||||||
Me.lstTags.Location = New System.Drawing.Point(6, 32)
|
Me.lstTags.Location = New System.Drawing.Point(152, 32)
|
||||||
Me.lstTags.Name = "lstTags"
|
Me.lstTags.Name = "lstTags"
|
||||||
Me.lstTags.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended
|
Me.lstTags.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended
|
||||||
Me.lstTags.Size = New System.Drawing.Size(150, 173)
|
Me.lstTags.Size = New System.Drawing.Size(103, 108)
|
||||||
Me.lstTags.Sorted = True
|
Me.lstTags.Sorted = True
|
||||||
Me.lstTags.TabIndex = 1
|
Me.lstTags.TabIndex = 1
|
||||||
'
|
'
|
||||||
'btnOK
|
'btnOK
|
||||||
'
|
'
|
||||||
Me.btnOK.Location = New System.Drawing.Point(322, 484)
|
Me.btnOK.Location = New System.Drawing.Point(347, 526)
|
||||||
Me.btnOK.Name = "btnOK"
|
Me.btnOK.Name = "btnOK"
|
||||||
Me.btnOK.Size = New System.Drawing.Size(75, 23)
|
Me.btnOK.Size = New System.Drawing.Size(75, 23)
|
||||||
Me.btnOK.TabIndex = 4
|
Me.btnOK.TabIndex = 6
|
||||||
Me.btnOK.Text = "&OK"
|
Me.btnOK.Text = "&OK"
|
||||||
Me.btnOK.UseVisualStyleBackColor = True
|
Me.btnOK.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'grpGameFilter
|
'grpGameFilter
|
||||||
'
|
'
|
||||||
Me.grpGameFilter.Controls.Add(Me.grpGameInfoOptions)
|
Me.grpGameFilter.Controls.Add(Me.lblNot)
|
||||||
Me.grpGameFilter.Controls.Add(Me.txtCompany)
|
Me.grpGameFilter.Controls.Add(Me.chkNot)
|
||||||
Me.grpGameFilter.Controls.Add(Me.lblCompany)
|
Me.grpGameFilter.Controls.Add(Me.cboBoolFilter)
|
||||||
Me.grpGameFilter.Controls.Add(Me.txtProcess)
|
Me.grpGameFilter.Controls.Add(Me.numFilter)
|
||||||
Me.grpGameFilter.Controls.Add(Me.lblProcess)
|
Me.grpGameFilter.Controls.Add(Me.cboNumericOps)
|
||||||
Me.grpGameFilter.Controls.Add(Me.lblName)
|
Me.grpGameFilter.Controls.Add(Me.lblCurrentFilters)
|
||||||
Me.grpGameFilter.Controls.Add(Me.txtName)
|
Me.grpGameFilter.Controls.Add(Me.lblFilterData)
|
||||||
|
Me.grpGameFilter.Controls.Add(Me.lblFields)
|
||||||
|
Me.grpGameFilter.Controls.Add(Me.btnRemoveFilter)
|
||||||
|
Me.grpGameFilter.Controls.Add(Me.lstFilter)
|
||||||
|
Me.grpGameFilter.Controls.Add(Me.btnAddFilter)
|
||||||
|
Me.grpGameFilter.Controls.Add(Me.cboFilterField)
|
||||||
|
Me.grpGameFilter.Controls.Add(Me.grpFilterType)
|
||||||
|
Me.grpGameFilter.Controls.Add(Me.txtStringFilter)
|
||||||
Me.grpGameFilter.Location = New System.Drawing.Point(12, 35)
|
Me.grpGameFilter.Location = New System.Drawing.Point(12, 35)
|
||||||
Me.grpGameFilter.Name = "grpGameFilter"
|
Me.grpGameFilter.Name = "grpGameFilter"
|
||||||
Me.grpGameFilter.Size = New System.Drawing.Size(385, 150)
|
Me.grpGameFilter.Size = New System.Drawing.Size(410, 172)
|
||||||
Me.grpGameFilter.TabIndex = 1
|
Me.grpGameFilter.TabIndex = 1
|
||||||
Me.grpGameFilter.TabStop = False
|
Me.grpGameFilter.TabStop = False
|
||||||
'
|
'
|
||||||
'grpGameInfoOptions
|
'lblNot
|
||||||
'
|
'
|
||||||
Me.grpGameInfoOptions.Controls.Add(Me.optOr)
|
Me.lblNot.AutoSize = True
|
||||||
Me.grpGameInfoOptions.Controls.Add(Me.optAnd)
|
Me.lblNot.Location = New System.Drawing.Point(161, 20)
|
||||||
Me.grpGameInfoOptions.Location = New System.Drawing.Point(14, 97)
|
Me.lblNot.Name = "lblNot"
|
||||||
Me.grpGameInfoOptions.Name = "grpGameInfoOptions"
|
Me.lblNot.Size = New System.Drawing.Size(24, 13)
|
||||||
Me.grpGameInfoOptions.Size = New System.Drawing.Size(106, 46)
|
Me.lblNot.TabIndex = 11
|
||||||
Me.grpGameInfoOptions.TabIndex = 6
|
Me.lblNot.Text = "Not"
|
||||||
Me.grpGameInfoOptions.TabStop = False
|
'
|
||||||
Me.grpGameInfoOptions.Text = "Options"
|
'chkNot
|
||||||
|
'
|
||||||
|
Me.chkNot.AutoSize = True
|
||||||
|
Me.chkNot.Location = New System.Drawing.Point(166, 39)
|
||||||
|
Me.chkNot.Name = "chkNot"
|
||||||
|
Me.chkNot.Size = New System.Drawing.Size(15, 14)
|
||||||
|
Me.chkNot.TabIndex = 10
|
||||||
|
Me.chkNot.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'cboBoolFilter
|
||||||
|
'
|
||||||
|
Me.cboBoolFilter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
|
||||||
|
Me.cboBoolFilter.FormattingEnabled = True
|
||||||
|
Me.cboBoolFilter.Location = New System.Drawing.Point(187, 36)
|
||||||
|
Me.cboBoolFilter.Name = "cboBoolFilter"
|
||||||
|
Me.cboBoolFilter.Size = New System.Drawing.Size(136, 21)
|
||||||
|
Me.cboBoolFilter.TabIndex = 3
|
||||||
|
'
|
||||||
|
'numFilter
|
||||||
|
'
|
||||||
|
Me.numFilter.DecimalPlaces = 1
|
||||||
|
Me.numFilter.Location = New System.Drawing.Point(258, 37)
|
||||||
|
Me.numFilter.Maximum = New Decimal(New Integer() {1000000, 0, 0, 0})
|
||||||
|
Me.numFilter.Name = "numFilter"
|
||||||
|
Me.numFilter.Size = New System.Drawing.Size(65, 20)
|
||||||
|
Me.numFilter.TabIndex = 4
|
||||||
|
'
|
||||||
|
'cboNumericOps
|
||||||
|
'
|
||||||
|
Me.cboNumericOps.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
|
||||||
|
Me.cboNumericOps.FormattingEnabled = True
|
||||||
|
Me.cboNumericOps.Location = New System.Drawing.Point(188, 36)
|
||||||
|
Me.cboNumericOps.Name = "cboNumericOps"
|
||||||
|
Me.cboNumericOps.Size = New System.Drawing.Size(65, 21)
|
||||||
|
Me.cboNumericOps.TabIndex = 3
|
||||||
|
'
|
||||||
|
'lblCurrentFilters
|
||||||
|
'
|
||||||
|
Me.lblCurrentFilters.AutoSize = True
|
||||||
|
Me.lblCurrentFilters.Location = New System.Drawing.Point(94, 65)
|
||||||
|
Me.lblCurrentFilters.Name = "lblCurrentFilters"
|
||||||
|
Me.lblCurrentFilters.Size = New System.Drawing.Size(71, 13)
|
||||||
|
Me.lblCurrentFilters.TabIndex = 6
|
||||||
|
Me.lblCurrentFilters.Text = "Current Filters"
|
||||||
|
'
|
||||||
|
'lblFilterData
|
||||||
|
'
|
||||||
|
Me.lblFilterData.AutoSize = True
|
||||||
|
Me.lblFilterData.Location = New System.Drawing.Point(239, 20)
|
||||||
|
Me.lblFilterData.Name = "lblFilterData"
|
||||||
|
Me.lblFilterData.Size = New System.Drawing.Size(32, 13)
|
||||||
|
Me.lblFilterData.TabIndex = 2
|
||||||
|
Me.lblFilterData.Text = "Filter "
|
||||||
|
'
|
||||||
|
'lblFields
|
||||||
|
'
|
||||||
|
Me.lblFields.AutoSize = True
|
||||||
|
Me.lblFields.Location = New System.Drawing.Point(41, 20)
|
||||||
|
Me.lblFields.Name = "lblFields"
|
||||||
|
Me.lblFields.Size = New System.Drawing.Size(80, 13)
|
||||||
|
Me.lblFields.TabIndex = 0
|
||||||
|
Me.lblFields.Text = "Available Fields"
|
||||||
|
'
|
||||||
|
'btnRemoveFilter
|
||||||
|
'
|
||||||
|
Me.btnRemoveFilter.Location = New System.Drawing.Point(259, 140)
|
||||||
|
Me.btnRemoveFilter.Name = "btnRemoveFilter"
|
||||||
|
Me.btnRemoveFilter.Size = New System.Drawing.Size(75, 23)
|
||||||
|
Me.btnRemoveFilter.TabIndex = 9
|
||||||
|
Me.btnRemoveFilter.Text = "Remove"
|
||||||
|
Me.btnRemoveFilter.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'lstFilter
|
||||||
|
'
|
||||||
|
Me.lstFilter.FormattingEnabled = True
|
||||||
|
Me.lstFilter.Location = New System.Drawing.Point(6, 81)
|
||||||
|
Me.lstFilter.Name = "lstFilter"
|
||||||
|
Me.lstFilter.Size = New System.Drawing.Size(247, 82)
|
||||||
|
Me.lstFilter.TabIndex = 7
|
||||||
|
'
|
||||||
|
'btnAddFilter
|
||||||
|
'
|
||||||
|
Me.btnAddFilter.Location = New System.Drawing.Point(329, 34)
|
||||||
|
Me.btnAddFilter.Name = "btnAddFilter"
|
||||||
|
Me.btnAddFilter.Size = New System.Drawing.Size(75, 23)
|
||||||
|
Me.btnAddFilter.TabIndex = 5
|
||||||
|
Me.btnAddFilter.Text = "Add"
|
||||||
|
Me.btnAddFilter.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'cboFilterField
|
||||||
|
'
|
||||||
|
Me.cboFilterField.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
|
||||||
|
Me.cboFilterField.FormattingEnabled = True
|
||||||
|
Me.cboFilterField.Location = New System.Drawing.Point(6, 36)
|
||||||
|
Me.cboFilterField.Name = "cboFilterField"
|
||||||
|
Me.cboFilterField.Size = New System.Drawing.Size(150, 21)
|
||||||
|
Me.cboFilterField.TabIndex = 1
|
||||||
|
'
|
||||||
|
'grpFilterType
|
||||||
|
'
|
||||||
|
Me.grpFilterType.Controls.Add(Me.optOr)
|
||||||
|
Me.grpFilterType.Controls.Add(Me.optAnd)
|
||||||
|
Me.grpFilterType.Location = New System.Drawing.Point(259, 81)
|
||||||
|
Me.grpFilterType.Name = "grpFilterType"
|
||||||
|
Me.grpFilterType.Size = New System.Drawing.Size(105, 46)
|
||||||
|
Me.grpFilterType.TabIndex = 8
|
||||||
|
Me.grpFilterType.TabStop = False
|
||||||
|
Me.grpFilterType.Text = "Filter Type"
|
||||||
'
|
'
|
||||||
'optOr
|
'optOr
|
||||||
'
|
'
|
||||||
Me.optOr.Location = New System.Drawing.Point(56, 19)
|
Me.optOr.Checked = True
|
||||||
|
Me.optOr.Location = New System.Drawing.Point(6, 19)
|
||||||
Me.optOr.Name = "optOr"
|
Me.optOr.Name = "optOr"
|
||||||
Me.optOr.Size = New System.Drawing.Size(36, 17)
|
Me.optOr.Size = New System.Drawing.Size(44, 17)
|
||||||
Me.optOr.TabIndex = 1
|
Me.optOr.TabIndex = 0
|
||||||
Me.optOr.TabStop = True
|
Me.optOr.TabStop = True
|
||||||
Me.optOr.Text = "Or"
|
Me.optOr.Text = "Any"
|
||||||
Me.optOr.UseVisualStyleBackColor = True
|
Me.optOr.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'optAnd
|
'optAnd
|
||||||
'
|
'
|
||||||
Me.optAnd.Checked = True
|
Me.optAnd.Location = New System.Drawing.Point(56, 19)
|
||||||
Me.optAnd.Location = New System.Drawing.Point(6, 19)
|
|
||||||
Me.optAnd.Name = "optAnd"
|
Me.optAnd.Name = "optAnd"
|
||||||
Me.optAnd.Size = New System.Drawing.Size(44, 17)
|
Me.optAnd.Size = New System.Drawing.Size(44, 17)
|
||||||
Me.optAnd.TabIndex = 0
|
Me.optAnd.TabIndex = 1
|
||||||
Me.optAnd.TabStop = True
|
Me.optAnd.Text = "All"
|
||||||
Me.optAnd.Text = "And"
|
|
||||||
Me.optAnd.UseVisualStyleBackColor = True
|
Me.optAnd.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'txtCompany
|
'txtStringFilter
|
||||||
'
|
'
|
||||||
Me.txtCompany.Location = New System.Drawing.Point(70, 71)
|
Me.txtStringFilter.Location = New System.Drawing.Point(187, 36)
|
||||||
Me.txtCompany.Name = "txtCompany"
|
Me.txtStringFilter.Name = "txtStringFilter"
|
||||||
Me.txtCompany.Size = New System.Drawing.Size(309, 20)
|
Me.txtStringFilter.Size = New System.Drawing.Size(136, 20)
|
||||||
Me.txtCompany.TabIndex = 5
|
Me.txtStringFilter.TabIndex = 3
|
||||||
'
|
'
|
||||||
'lblCompany
|
'grpSorting
|
||||||
'
|
'
|
||||||
Me.lblCompany.AutoSize = True
|
Me.grpSorting.Controls.Add(Me.grpSortOptions)
|
||||||
Me.lblCompany.Location = New System.Drawing.Point(11, 74)
|
Me.grpSorting.Controls.Add(Me.lblSortFields)
|
||||||
Me.lblCompany.Name = "lblCompany"
|
Me.grpSorting.Controls.Add(Me.cboSortField)
|
||||||
Me.lblCompany.Size = New System.Drawing.Size(54, 13)
|
Me.grpSorting.Location = New System.Drawing.Point(12, 440)
|
||||||
Me.lblCompany.TabIndex = 4
|
Me.grpSorting.Name = "grpSorting"
|
||||||
Me.lblCompany.Text = "Company:"
|
Me.grpSorting.Size = New System.Drawing.Size(410, 80)
|
||||||
|
Me.grpSorting.TabIndex = 4
|
||||||
|
Me.grpSorting.TabStop = False
|
||||||
|
Me.grpSorting.Text = "Sorting"
|
||||||
'
|
'
|
||||||
'txtProcess
|
'grpSortOptions
|
||||||
'
|
'
|
||||||
Me.txtProcess.Location = New System.Drawing.Point(70, 45)
|
Me.grpSortOptions.Controls.Add(Me.optSortAsc)
|
||||||
Me.txtProcess.Name = "txtProcess"
|
Me.grpSortOptions.Controls.Add(Me.optSortDesc)
|
||||||
Me.txtProcess.Size = New System.Drawing.Size(309, 20)
|
Me.grpSortOptions.Location = New System.Drawing.Point(162, 19)
|
||||||
Me.txtProcess.TabIndex = 3
|
Me.grpSortOptions.Name = "grpSortOptions"
|
||||||
|
Me.grpSortOptions.Size = New System.Drawing.Size(189, 43)
|
||||||
|
Me.grpSortOptions.TabIndex = 3
|
||||||
|
Me.grpSortOptions.TabStop = False
|
||||||
|
Me.grpSortOptions.Text = "Sort Options"
|
||||||
'
|
'
|
||||||
'lblProcess
|
'optSortAsc
|
||||||
'
|
'
|
||||||
Me.lblProcess.AutoSize = True
|
Me.optSortAsc.AutoSize = True
|
||||||
Me.lblProcess.Location = New System.Drawing.Point(11, 48)
|
Me.optSortAsc.Location = New System.Drawing.Point(6, 17)
|
||||||
Me.lblProcess.Name = "lblProcess"
|
Me.optSortAsc.Name = "optSortAsc"
|
||||||
Me.lblProcess.Size = New System.Drawing.Size(48, 13)
|
Me.optSortAsc.Size = New System.Drawing.Size(75, 17)
|
||||||
Me.lblProcess.TabIndex = 2
|
Me.optSortAsc.TabIndex = 0
|
||||||
Me.lblProcess.Text = "Process:"
|
Me.optSortAsc.TabStop = True
|
||||||
|
Me.optSortAsc.Text = "Ascending"
|
||||||
|
Me.optSortAsc.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'lblName
|
'optSortDesc
|
||||||
'
|
'
|
||||||
Me.lblName.AutoSize = True
|
Me.optSortDesc.AutoSize = True
|
||||||
Me.lblName.Location = New System.Drawing.Point(11, 22)
|
Me.optSortDesc.Location = New System.Drawing.Point(90, 17)
|
||||||
Me.lblName.Name = "lblName"
|
Me.optSortDesc.Name = "optSortDesc"
|
||||||
Me.lblName.Size = New System.Drawing.Size(38, 13)
|
Me.optSortDesc.Size = New System.Drawing.Size(82, 17)
|
||||||
Me.lblName.TabIndex = 0
|
Me.optSortDesc.TabIndex = 1
|
||||||
Me.lblName.Text = "Name:"
|
Me.optSortDesc.TabStop = True
|
||||||
|
Me.optSortDesc.Text = "Descending"
|
||||||
|
Me.optSortDesc.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'txtName
|
'lblSortFields
|
||||||
'
|
'
|
||||||
Me.txtName.Location = New System.Drawing.Point(70, 19)
|
Me.lblSortFields.AutoSize = True
|
||||||
Me.txtName.Name = "txtName"
|
Me.lblSortFields.Location = New System.Drawing.Point(41, 19)
|
||||||
Me.txtName.Size = New System.Drawing.Size(309, 20)
|
Me.lblSortFields.Name = "lblSortFields"
|
||||||
Me.txtName.TabIndex = 1
|
Me.lblSortFields.Size = New System.Drawing.Size(80, 13)
|
||||||
|
Me.lblSortFields.TabIndex = 1
|
||||||
|
Me.lblSortFields.Text = "Available Fields"
|
||||||
|
'
|
||||||
|
'cboSortField
|
||||||
|
'
|
||||||
|
Me.cboSortField.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
|
||||||
|
Me.cboSortField.FormattingEnabled = True
|
||||||
|
Me.cboSortField.Location = New System.Drawing.Point(6, 35)
|
||||||
|
Me.cboSortField.Name = "cboSortField"
|
||||||
|
Me.cboSortField.Size = New System.Drawing.Size(150, 21)
|
||||||
|
Me.cboSortField.TabIndex = 2
|
||||||
|
'
|
||||||
|
'chkTag
|
||||||
|
'
|
||||||
|
Me.chkTag.AutoSize = True
|
||||||
|
Me.chkTag.Location = New System.Drawing.Point(12, 213)
|
||||||
|
Me.chkTag.Name = "chkTag"
|
||||||
|
Me.chkTag.Size = New System.Drawing.Size(45, 17)
|
||||||
|
Me.chkTag.TabIndex = 2
|
||||||
|
Me.chkTag.Text = "Tag"
|
||||||
|
Me.chkTag.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'chkGameInfo
|
||||||
|
'
|
||||||
|
Me.chkGameInfo.AutoSize = True
|
||||||
|
Me.chkGameInfo.Location = New System.Drawing.Point(12, 12)
|
||||||
|
Me.chkGameInfo.Name = "chkGameInfo"
|
||||||
|
Me.chkGameInfo.Size = New System.Drawing.Size(109, 17)
|
||||||
|
Me.chkGameInfo.TabIndex = 0
|
||||||
|
Me.chkGameInfo.Text = "Game Information"
|
||||||
|
Me.chkGameInfo.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'Label1
|
||||||
|
'
|
||||||
|
Me.Label1.AutoSize = True
|
||||||
|
Me.Label1.Location = New System.Drawing.Point(12, 531)
|
||||||
|
Me.Label1.Name = "Label1"
|
||||||
|
Me.Label1.Size = New System.Drawing.Size(249, 13)
|
||||||
|
Me.Label1.TabIndex = 5
|
||||||
|
Me.Label1.Text = "* Indicates a field that may give unexpected results."
|
||||||
'
|
'
|
||||||
'frmFilter
|
'frmFilter
|
||||||
'
|
'
|
||||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||||
Me.ClientSize = New System.Drawing.Size(409, 516)
|
Me.ClientSize = New System.Drawing.Size(434, 561)
|
||||||
|
Me.Controls.Add(Me.Label1)
|
||||||
|
Me.Controls.Add(Me.grpSorting)
|
||||||
|
Me.Controls.Add(Me.chkTag)
|
||||||
Me.Controls.Add(Me.grpGameFilter)
|
Me.Controls.Add(Me.grpGameFilter)
|
||||||
|
Me.Controls.Add(Me.chkGameInfo)
|
||||||
Me.Controls.Add(Me.grpTagFilter)
|
Me.Controls.Add(Me.grpTagFilter)
|
||||||
Me.Controls.Add(Me.btnOK)
|
Me.Controls.Add(Me.btnOK)
|
||||||
Me.Controls.Add(Me.optTag)
|
|
||||||
Me.Controls.Add(Me.optGameInfo)
|
|
||||||
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
|
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
|
||||||
Me.MaximizeBox = False
|
Me.MaximizeBox = False
|
||||||
Me.MinimizeBox = False
|
Me.MinimizeBox = False
|
||||||
@@ -300,32 +508,55 @@ Partial Class frmFilter
|
|||||||
Me.grpTagOptions.ResumeLayout(False)
|
Me.grpTagOptions.ResumeLayout(False)
|
||||||
Me.grpGameFilter.ResumeLayout(False)
|
Me.grpGameFilter.ResumeLayout(False)
|
||||||
Me.grpGameFilter.PerformLayout()
|
Me.grpGameFilter.PerformLayout()
|
||||||
Me.grpGameInfoOptions.ResumeLayout(False)
|
CType(Me.numFilter, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
Me.grpFilterType.ResumeLayout(False)
|
||||||
|
Me.grpSorting.ResumeLayout(False)
|
||||||
|
Me.grpSorting.PerformLayout()
|
||||||
|
Me.grpSortOptions.ResumeLayout(False)
|
||||||
|
Me.grpSortOptions.PerformLayout()
|
||||||
Me.ResumeLayout(False)
|
Me.ResumeLayout(False)
|
||||||
Me.PerformLayout()
|
Me.PerformLayout()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Friend WithEvents optGameInfo As System.Windows.Forms.RadioButton
|
|
||||||
Friend WithEvents optTag As System.Windows.Forms.RadioButton
|
|
||||||
Friend WithEvents grpTagFilter As System.Windows.Forms.GroupBox
|
Friend WithEvents grpTagFilter As System.Windows.Forms.GroupBox
|
||||||
Friend WithEvents grpTagOptions As System.Windows.Forms.GroupBox
|
Friend WithEvents grpTagOptions As System.Windows.Forms.GroupBox
|
||||||
Friend WithEvents optAll As System.Windows.Forms.RadioButton
|
Friend WithEvents optAll As System.Windows.Forms.RadioButton
|
||||||
Friend WithEvents optAny As System.Windows.Forms.RadioButton
|
Friend WithEvents optAny As System.Windows.Forms.RadioButton
|
||||||
Friend WithEvents lblGameTags As System.Windows.Forms.Label
|
Friend WithEvents lblIncludeTags As System.Windows.Forms.Label
|
||||||
Friend WithEvents lblTags As System.Windows.Forms.Label
|
Friend WithEvents lblTags As System.Windows.Forms.Label
|
||||||
Friend WithEvents btnRemove As System.Windows.Forms.Button
|
Friend WithEvents btnIncludeRemove As System.Windows.Forms.Button
|
||||||
Friend WithEvents btnAdd As System.Windows.Forms.Button
|
Friend WithEvents btnIncludeAdd As System.Windows.Forms.Button
|
||||||
Friend WithEvents lstFilter As System.Windows.Forms.ListBox
|
Friend WithEvents lstIncludeTags As System.Windows.Forms.ListBox
|
||||||
Friend WithEvents lstTags As System.Windows.Forms.ListBox
|
Friend WithEvents lstTags As System.Windows.Forms.ListBox
|
||||||
Friend WithEvents btnOK As System.Windows.Forms.Button
|
Friend WithEvents btnOK As System.Windows.Forms.Button
|
||||||
Friend WithEvents grpGameFilter As System.Windows.Forms.GroupBox
|
Friend WithEvents grpGameFilter As System.Windows.Forms.GroupBox
|
||||||
Friend WithEvents txtProcess As System.Windows.Forms.TextBox
|
Friend WithEvents txtStringFilter As System.Windows.Forms.TextBox
|
||||||
Friend WithEvents lblProcess As System.Windows.Forms.Label
|
Friend WithEvents grpFilterType As System.Windows.Forms.GroupBox
|
||||||
Friend WithEvents lblName As System.Windows.Forms.Label
|
|
||||||
Friend WithEvents txtName As System.Windows.Forms.TextBox
|
|
||||||
Friend WithEvents txtCompany As System.Windows.Forms.TextBox
|
|
||||||
Friend WithEvents lblCompany As System.Windows.Forms.Label
|
|
||||||
Friend WithEvents grpGameInfoOptions As System.Windows.Forms.GroupBox
|
|
||||||
Friend WithEvents optOr As System.Windows.Forms.RadioButton
|
Friend WithEvents optOr As System.Windows.Forms.RadioButton
|
||||||
Friend WithEvents optAnd As System.Windows.Forms.RadioButton
|
Friend WithEvents optAnd As System.Windows.Forms.RadioButton
|
||||||
|
Friend WithEvents grpSorting As GroupBox
|
||||||
|
Friend WithEvents optSortDesc As RadioButton
|
||||||
|
Friend WithEvents optSortAsc As RadioButton
|
||||||
|
Friend WithEvents cboSortField As ComboBox
|
||||||
|
Friend WithEvents chkTag As CheckBox
|
||||||
|
Friend WithEvents chkGameInfo As CheckBox
|
||||||
|
Friend WithEvents cboFilterField As ComboBox
|
||||||
|
Friend WithEvents lstFilter As ListBox
|
||||||
|
Friend WithEvents btnAddFilter As Button
|
||||||
|
Friend WithEvents btnRemoveFilter As Button
|
||||||
|
Friend WithEvents lblCurrentFilters As Label
|
||||||
|
Friend WithEvents lblFilterData As Label
|
||||||
|
Friend WithEvents lblFields As Label
|
||||||
|
Friend WithEvents cboNumericOps As ComboBox
|
||||||
|
Friend WithEvents numFilter As NumericUpDown
|
||||||
|
Friend WithEvents cboBoolFilter As ComboBox
|
||||||
|
Friend WithEvents lblSortFields As Label
|
||||||
|
Friend WithEvents Label1 As Label
|
||||||
|
Friend WithEvents grpSortOptions As GroupBox
|
||||||
|
Friend WithEvents lblExcludeTags As Label
|
||||||
|
Friend WithEvents btnExcludeRemove As Button
|
||||||
|
Friend WithEvents btnExcludeAdd As Button
|
||||||
|
Friend WithEvents lstExcludeTags As ListBox
|
||||||
|
Friend WithEvents lblNot As Label
|
||||||
|
Friend WithEvents chkNot As CheckBox
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
+552
-65
@@ -3,45 +3,93 @@
|
|||||||
Public Class frmFilter
|
Public Class frmFilter
|
||||||
|
|
||||||
Public Enum eFilterType As Integer
|
Public Enum eFilterType As Integer
|
||||||
NoFilter = 1
|
BaseFilter = 1
|
||||||
AnyTag = 2
|
AnyTag = 2
|
||||||
AllTags = 3
|
AllTags = 3
|
||||||
NoTags = 4
|
NoTags = 4
|
||||||
FieldAnd = 5
|
|
||||||
FieldOr = 6
|
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
Dim oTagFilters As New List(Of clsTag)
|
Dim oIncludeTagFilters As New List(Of clsTag)
|
||||||
Dim hshStringFilters As New Hashtable
|
Dim oExcludeTagFilters As New List(Of clsTag)
|
||||||
Dim eCurrentFilterType As eFilterType = eFilterType.AnyTag
|
Dim oGameFilters As New List(Of clsGameFilter)
|
||||||
|
Dim oValidFields As New List(Of clsGameFilterField)
|
||||||
|
Dim eCurrentFilterType As eFilterType = eFilterType.BaseFilter
|
||||||
|
Dim bAndOperator As Boolean = False
|
||||||
|
Dim bSortAsc As Boolean = True
|
||||||
|
Dim sSortField As String = "Name"
|
||||||
Dim hshTags As New Hashtable
|
Dim hshTags As New Hashtable
|
||||||
Dim bShutdown As Boolean = False
|
Dim bShutdown As Boolean = False
|
||||||
|
|
||||||
Public ReadOnly Property StringFilters As Hashtable
|
Public Property GameFilters As List(Of clsGameFilter)
|
||||||
Get
|
Get
|
||||||
Return hshStringFilters
|
Return oGameFilters
|
||||||
End Get
|
End Get
|
||||||
|
Set(value As List(Of clsGameFilter))
|
||||||
|
oGameFilters = value
|
||||||
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public ReadOnly Property TagFilters As List(Of clsTag)
|
Public Property IncludeTagFilters As List(Of clsTag)
|
||||||
Get
|
Get
|
||||||
Return oTagFilters
|
Return oIncludeTagFilters
|
||||||
End Get
|
End Get
|
||||||
|
Set(value As List(Of clsTag))
|
||||||
|
oIncludeTagFilters = value
|
||||||
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public ReadOnly Property FilterType As eFilterType
|
Public Property ExcludeTagFilters As List(Of clsTag)
|
||||||
|
Get
|
||||||
|
Return oExcludeTagFilters
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of clsTag))
|
||||||
|
oExcludeTagFilters = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property FilterType As eFilterType
|
||||||
Get
|
Get
|
||||||
Return eCurrentFilterType
|
Return eCurrentFilterType
|
||||||
End Get
|
End Get
|
||||||
|
Set(value As eFilterType)
|
||||||
|
eCurrentFilterType = value
|
||||||
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private Sub AddTag()
|
Public Property AndOperator As Boolean
|
||||||
|
Get
|
||||||
|
Return bAndOperator
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bAndOperator = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property SortAsc As Boolean
|
||||||
|
Get
|
||||||
|
Return bSortAsc
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bSortAsc = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property SortField As String
|
||||||
|
Get
|
||||||
|
Return sSortField
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sSortField = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Sub AddTag(ByRef lst As ListBox)
|
||||||
Dim oData As KeyValuePair(Of String, String)
|
Dim oData As KeyValuePair(Of String, String)
|
||||||
Dim oTags As List(Of KeyValuePair(Of String, String))
|
Dim oTags As List(Of KeyValuePair(Of String, String))
|
||||||
|
|
||||||
If lstTags.SelectedItems.Count = 1 Then
|
If lstTags.SelectedItems.Count = 1 Then
|
||||||
oData = lstTags.SelectedItems(0)
|
oData = lstTags.SelectedItems(0)
|
||||||
lstFilter.Items.Add(oData)
|
lst.Items.Add(oData)
|
||||||
lstTags.Items.Remove(oData)
|
lstTags.Items.Remove(oData)
|
||||||
ElseIf lstTags.SelectedItems.Count > 1 Then
|
ElseIf lstTags.SelectedItems.Count > 1 Then
|
||||||
oTags = New List(Of KeyValuePair(Of String, String))
|
oTags = New List(Of KeyValuePair(Of String, String))
|
||||||
@@ -51,37 +99,211 @@ Public Class frmFilter
|
|||||||
Next
|
Next
|
||||||
|
|
||||||
For Each kp As KeyValuePair(Of String, String) In oTags
|
For Each kp As KeyValuePair(Of String, String) In oTags
|
||||||
lstFilter.Items.Add(kp)
|
lst.Items.Add(kp)
|
||||||
lstTags.Items.Remove(kp)
|
lstTags.Items.Remove(kp)
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub RemoveTag()
|
Private Sub RemoveTag(ByRef lst As ListBox)
|
||||||
Dim oData As KeyValuePair(Of String, String)
|
Dim oData As KeyValuePair(Of String, String)
|
||||||
Dim oTags As List(Of KeyValuePair(Of String, String))
|
Dim oTags As List(Of KeyValuePair(Of String, String))
|
||||||
|
|
||||||
If lstFilter.SelectedItems.Count = 1 Then
|
If lst.SelectedItems.Count = 1 Then
|
||||||
oData = lstFilter.SelectedItems(0)
|
oData = lst.SelectedItems(0)
|
||||||
lstFilter.Items.Remove(oData)
|
lst.Items.Remove(oData)
|
||||||
lstTags.Items.Add(oData)
|
lstTags.Items.Add(oData)
|
||||||
ElseIf lstFilter.SelectedItems.Count > 1 Then
|
ElseIf lst.SelectedItems.Count > 1 Then
|
||||||
oTags = New List(Of KeyValuePair(Of String, String))
|
oTags = New List(Of KeyValuePair(Of String, String))
|
||||||
|
|
||||||
For Each oData In lstFilter.SelectedItems
|
For Each oData In lst.SelectedItems
|
||||||
oTags.Add(oData)
|
oTags.Add(oData)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
For Each kp As KeyValuePair(Of String, String) In oTags
|
For Each kp As KeyValuePair(Of String, String) In oTags
|
||||||
lstFilter.Items.Remove(kp)
|
lst.Items.Remove(kp)
|
||||||
lstTags.Items.Add(kp)
|
lstTags.Items.Add(kp)
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub LoadData()
|
Private Sub LoadFilterFields()
|
||||||
|
Dim oField As clsGameFilterField
|
||||||
|
|
||||||
|
|
||||||
|
'Game ID
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "MonitorID"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldGameID
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fString
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidSort
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
|
||||||
|
'Name
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "Name"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldName
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fString
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidSort
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Process
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "Process"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldProcess
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fString
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidSort
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Parameter
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "Parameter"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldParameter
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fString
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidSort
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Save Path
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "Path"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldPath
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fString
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Include Items
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "FileType"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldFileType
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fString
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Exclude Items
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "ExcludeList"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldExcludeList
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fString
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Save Entire Folder
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "FolderSave"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldFolderSave
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fBool
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Delete Folder on Restore
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "CleanFolder"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldCleanFolder
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fBool
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Save Multiple Backups
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "TimeStamp"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldTimeStamp
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fBool
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Backup Limit
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "BackupLimit"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldBackupLimit
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fNumeric
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Comments
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "Comments"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldComments
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fString
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'IsRegEx
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "IsRegEx"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldIsRegEx
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fBool
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Game Path
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "ProcessPath"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldProcessPath
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fString
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Company
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "Company"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldCompany
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fString
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidSort
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Version
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "Version"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldVersion
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fString
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidSort
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Icon
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "Icon"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldIcon
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fString
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Hours
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "Hours"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldHours
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fNumeric
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidSort
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Enabled
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "Enabled"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldEnabled
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fBool
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
'Monitor Only
|
||||||
|
oField = New clsGameFilterField
|
||||||
|
oField.FieldName = "MonitorOnly"
|
||||||
|
oField.FriendlyFieldName = frmFilter_FieldMonitorOnly
|
||||||
|
oField.Type = clsGameFilterField.eDataType.fBool
|
||||||
|
oField.Status = clsGameFilterField.eFieldStatus.ValidFilter
|
||||||
|
oValidFields.Add(oField)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub LoadTagData()
|
||||||
Dim oTag As clsTag
|
Dim oTag As clsTag
|
||||||
Dim oData As KeyValuePair(Of String, String)
|
Dim oData As KeyValuePair(Of String, String)
|
||||||
|
|
||||||
@@ -90,12 +312,17 @@ Public Class frmFilter
|
|||||||
|
|
||||||
'Handle Lists
|
'Handle Lists
|
||||||
lstTags.Items.Clear()
|
lstTags.Items.Clear()
|
||||||
lstFilter.Items.Clear()
|
lstIncludeTags.Items.Clear()
|
||||||
|
lstExcludeTags.Items.Clear()
|
||||||
|
|
||||||
lstTags.ValueMember = "Key"
|
lstTags.ValueMember = "Key"
|
||||||
lstTags.DisplayMember = "Value"
|
lstTags.DisplayMember = "Value"
|
||||||
lstFilter.ValueMember = "Key"
|
|
||||||
lstFilter.DisplayMember = "Value"
|
lstIncludeTags.ValueMember = "Key"
|
||||||
|
lstIncludeTags.DisplayMember = "Value"
|
||||||
|
|
||||||
|
lstExcludeTags.ValueMember = "Key"
|
||||||
|
lstExcludeTags.DisplayMember = "Value"
|
||||||
|
|
||||||
For Each de As DictionaryEntry In hshTags
|
For Each de As DictionaryEntry In hshTags
|
||||||
oTag = DirectCast(de.Value, clsTag)
|
oTag = DirectCast(de.Value, clsTag)
|
||||||
@@ -105,38 +332,178 @@ Public Class frmFilter
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub LoadExistingFilters()
|
||||||
|
Dim sFilter As String = String.Empty
|
||||||
|
Dim oListTag As KeyValuePair(Of String, String)
|
||||||
|
|
||||||
|
'Game Filters
|
||||||
|
If bAndOperator Then
|
||||||
|
optAnd.Checked = True
|
||||||
|
Else
|
||||||
|
optOr.Checked = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
If oGameFilters.Count > 0 Then
|
||||||
|
chkGameInfo.Checked = True
|
||||||
|
For Each oFilter As clsGameFilter In oGameFilters
|
||||||
|
Select Case oFilter.Field.Type
|
||||||
|
Case clsGameFilterField.eDataType.fString
|
||||||
|
sFilter = oFilter.Field.FriendlyFieldName & " " & frmFilter_lstFilterContains & " """ & oFilter.Data & """"
|
||||||
|
Case clsGameFilterField.eDataType.fNumeric
|
||||||
|
sFilter = oFilter.Field.FriendlyFieldName & " " & oFilter.NumericOperatorAsString & " " & oFilter.Data
|
||||||
|
Case clsGameFilterField.eDataType.fBool
|
||||||
|
sFilter = oFilter.Field.FriendlyFieldName & " = " & oFilter.Data
|
||||||
|
End Select
|
||||||
|
|
||||||
|
If oFilter.NotCondition Then
|
||||||
|
sFilter &= " (" & frmFilter_lblNot & ")"
|
||||||
|
End If
|
||||||
|
|
||||||
|
lstFilter.Items.Add(New KeyValuePair(Of clsGameFilter, String)(oFilter, sFilter))
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
|
||||||
|
'Tag Filters
|
||||||
|
If oIncludeTagFilters.Count > 0 Then
|
||||||
|
chkTag.Checked = True
|
||||||
|
For Each oTag As clsTag In oIncludeTagFilters
|
||||||
|
oListTag = New KeyValuePair(Of String, String)(oTag.ID, oTag.Name)
|
||||||
|
lstIncludeTags.Items.Add(oListTag)
|
||||||
|
lstTags.Items.Remove(oListTag)
|
||||||
|
Next
|
||||||
|
|
||||||
|
If eCurrentFilterType = eFilterType.AllTags Then
|
||||||
|
optAll.Checked = True
|
||||||
|
Else
|
||||||
|
optAny.Checked = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
If oExcludeTagFilters.Count > 0 Then
|
||||||
|
chkTag.Checked = True
|
||||||
|
For Each oTag As clsTag In oExcludeTagFilters
|
||||||
|
oListTag = New KeyValuePair(Of String, String)(oTag.ID, oTag.Name)
|
||||||
|
lstExcludeTags.Items.Add(oListTag)
|
||||||
|
lstTags.Items.Remove(oListTag)
|
||||||
|
Next
|
||||||
|
|
||||||
|
If eCurrentFilterType = eFilterType.AllTags Then
|
||||||
|
optAll.Checked = True
|
||||||
|
Else
|
||||||
|
optAny.Checked = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
'Sorting
|
||||||
|
cboSortField.SelectedValue = sSortField
|
||||||
|
If bSortAsc Then
|
||||||
|
optSortAsc.Checked = True
|
||||||
|
Else
|
||||||
|
optSortDesc.Checked = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ChangeFilterMode()
|
||||||
|
Dim oFilterType As clsGameFilterField.eDataType = DirectCast(cboFilterField.SelectedValue, clsGameFilterField).Type
|
||||||
|
|
||||||
|
'Reset
|
||||||
|
cboNumericOps.SelectedIndex = 0
|
||||||
|
cboBoolFilter.SelectedIndex = 0
|
||||||
|
numFilter.Value = 0
|
||||||
|
txtStringFilter.Text = String.Empty
|
||||||
|
chkNot.Checked = False
|
||||||
|
|
||||||
|
'Reset Visibilty
|
||||||
|
cboBoolFilter.Visible = False
|
||||||
|
cboNumericOps.Visible = False
|
||||||
|
numFilter.Visible = False
|
||||||
|
txtStringFilter.Visible = False
|
||||||
|
|
||||||
|
'Set Visiblity
|
||||||
|
Select Case oFilterType
|
||||||
|
Case clsGameFilterField.eDataType.fString
|
||||||
|
txtStringFilter.Visible = True
|
||||||
|
Case clsGameFilterField.eDataType.fNumeric
|
||||||
|
cboNumericOps.Visible = True
|
||||||
|
numFilter.Visible = True
|
||||||
|
txtStringFilter.Visible = False
|
||||||
|
Case clsGameFilterField.eDataType.fBool
|
||||||
|
cboBoolFilter.Visible = True
|
||||||
|
End Select
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub AddFilter()
|
||||||
|
Dim oFilter As New clsGameFilter
|
||||||
|
Dim sFilter As String = String.Empty
|
||||||
|
|
||||||
|
'Build Filter
|
||||||
|
oFilter.ID = Guid.NewGuid.ToString.Split("-")(0)
|
||||||
|
oFilter.Field = cboFilterField.SelectedValue
|
||||||
|
|
||||||
|
Select Case oFilter.Field.Type
|
||||||
|
Case clsGameFilterField.eDataType.fString
|
||||||
|
oFilter.Data = txtStringFilter.Text
|
||||||
|
sFilter = oFilter.Field.FriendlyFieldName & " " & frmFilter_lstFilterContains & " """ & oFilter.Data & """"
|
||||||
|
Case clsGameFilterField.eDataType.fNumeric
|
||||||
|
oFilter.Data = numFilter.Value
|
||||||
|
oFilter.NumericOperator = DirectCast(cboNumericOps.SelectedValue, clsGameFilter.eNumericOperators)
|
||||||
|
sFilter = oFilter.Field.FriendlyFieldName & " " & oFilter.NumericOperatorAsString & " " & oFilter.Data
|
||||||
|
Case clsGameFilterField.eDataType.fBool
|
||||||
|
oFilter.Data = cboBoolFilter.SelectedValue
|
||||||
|
sFilter = oFilter.Field.FriendlyFieldName & " = " & oFilter.Data
|
||||||
|
End Select
|
||||||
|
|
||||||
|
If chkNot.Checked Then
|
||||||
|
oFilter.NotCondition = True
|
||||||
|
sFilter &= " (" & frmFilter_lblNot & ")"
|
||||||
|
Else
|
||||||
|
oFilter.NotCondition = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
oGameFilters.Add(oFilter)
|
||||||
|
lstFilter.Items.Add(New KeyValuePair(Of clsGameFilter, String)(oFilter, sFilter))
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub RemoveFilter()
|
||||||
|
Dim oFilter As Object
|
||||||
|
|
||||||
|
If lstFilter.SelectedIndex <> -1 Then
|
||||||
|
oFilter = lstFilter.SelectedItem
|
||||||
|
oGameFilters.Remove(DirectCast(oFilter, KeyValuePair(Of clsGameFilter, String)).Key)
|
||||||
|
lstFilter.Items.Remove(oFilter)
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub GetFilters()
|
Private Sub GetFilters()
|
||||||
Dim oData As KeyValuePair(Of String, String)
|
Dim oData As KeyValuePair(Of String, String)
|
||||||
Dim oTag As clsTag
|
Dim oTag As clsTag
|
||||||
|
|
||||||
|
|
||||||
If optGameInfo.Checked Then
|
If chkGameInfo.Checked Then
|
||||||
'Set Filter Type
|
'Set Filter Type(s)
|
||||||
If optAnd.Checked Then
|
eCurrentFilterType = eFilterType.BaseFilter
|
||||||
eCurrentFilterType = eFilterType.FieldAnd
|
bAndOperator = optAnd.Checked
|
||||||
Else
|
End If
|
||||||
eCurrentFilterType = eFilterType.FieldOr
|
|
||||||
End If
|
|
||||||
|
|
||||||
'Set String Filter
|
If chkTag.Checked Then
|
||||||
If txtName.Text <> String.Empty Then
|
|
||||||
hshStringFilters.Add("Name", txtName.Text)
|
|
||||||
End If
|
|
||||||
If txtProcess.Text <> String.Empty Then
|
|
||||||
hshStringFilters.Add("Process", txtProcess.Text)
|
|
||||||
End If
|
|
||||||
If txtCompany.Text <> String.Empty Then
|
|
||||||
hshStringFilters.Add("Company", txtCompany.Text)
|
|
||||||
End If
|
|
||||||
Else
|
|
||||||
'Set Tags
|
'Set Tags
|
||||||
For Each oData In lstFilter.Items
|
IncludeTagFilters.Clear()
|
||||||
|
For Each oData In lstIncludeTags.Items
|
||||||
oTag = DirectCast(hshTags(oData.Value), clsTag)
|
oTag = DirectCast(hshTags(oData.Value), clsTag)
|
||||||
TagFilters.Add(oTag)
|
IncludeTagFilters.Add(oTag)
|
||||||
|
Next
|
||||||
|
ExcludeTagFilters.Clear()
|
||||||
|
For Each oData In lstExcludeTags.Items
|
||||||
|
oTag = DirectCast(hshTags(oData.Value), clsTag)
|
||||||
|
ExcludeTagFilters.Add(oTag)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
'Set Filter Type
|
'Set Filter Type
|
||||||
If TagFilters.Count = 0 Then
|
If IncludeTagFilters.Count = 0 And ExcludeTagFilters.Count = 0 Then
|
||||||
eCurrentFilterType = eFilterType.NoTags
|
eCurrentFilterType = eFilterType.NoTags
|
||||||
ElseIf optAll.Checked Then
|
ElseIf optAll.Checked Then
|
||||||
eCurrentFilterType = eFilterType.AllTags
|
eCurrentFilterType = eFilterType.AllTags
|
||||||
@@ -145,6 +512,72 @@ Public Class frmFilter
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
'Sorting
|
||||||
|
If optSortAsc.Checked Then
|
||||||
|
bSortAsc = True
|
||||||
|
Else
|
||||||
|
bSortAsc = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
sSortField = cboSortField.SelectedValue
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub LoadCombos()
|
||||||
|
Dim oFilterFields As New List(Of KeyValuePair(Of clsGameFilterField, String))
|
||||||
|
Dim oSortFields As New List(Of KeyValuePair(Of String, String))
|
||||||
|
Dim oNumericOperators As New List(Of KeyValuePair(Of clsGameFilter.eNumericOperators, String))
|
||||||
|
Dim oBoolOperators As New List(Of KeyValuePair(Of Boolean, String))
|
||||||
|
|
||||||
|
'cboBoolFilter
|
||||||
|
cboBoolFilter.ValueMember = "Key"
|
||||||
|
cboBoolFilter.DisplayMember = "Value"
|
||||||
|
|
||||||
|
oBoolOperators.Add(New KeyValuePair(Of Boolean, String)(True, frmFilter_cboBoolFilterEnabled))
|
||||||
|
oBoolOperators.Add(New KeyValuePair(Of Boolean, String)(False, frmFilter_cboBoolFilterDisabled))
|
||||||
|
|
||||||
|
cboBoolFilter.DataSource = oBoolOperators
|
||||||
|
|
||||||
|
'cboNumericOps
|
||||||
|
cboNumericOps.ValueMember = "Key"
|
||||||
|
cboNumericOps.DisplayMember = "Value"
|
||||||
|
|
||||||
|
oNumericOperators.Add(New KeyValuePair(Of clsGameFilter.eNumericOperators, String)(clsGameFilter.eNumericOperators.Equals, "="))
|
||||||
|
oNumericOperators.Add(New KeyValuePair(Of clsGameFilter.eNumericOperators, String)(clsGameFilter.eNumericOperators.Greater, ">"))
|
||||||
|
oNumericOperators.Add(New KeyValuePair(Of clsGameFilter.eNumericOperators, String)(clsGameFilter.eNumericOperators.Lesser, "<"))
|
||||||
|
oNumericOperators.Add(New KeyValuePair(Of clsGameFilter.eNumericOperators, String)(clsGameFilter.eNumericOperators.GreaterEquals, ">="))
|
||||||
|
oNumericOperators.Add(New KeyValuePair(Of clsGameFilter.eNumericOperators, String)(clsGameFilter.eNumericOperators.LesserEquals, "<="))
|
||||||
|
|
||||||
|
cboNumericOps.DataSource = oNumericOperators
|
||||||
|
|
||||||
|
'cboFilterField
|
||||||
|
cboFilterField.ValueMember = "Key"
|
||||||
|
cboFilterField.DisplayMember = "Value"
|
||||||
|
|
||||||
|
For Each oField As clsGameFilterField In oValidFields
|
||||||
|
If oField.CheckStatus(clsGameFilterField.eFieldStatus.ValidFilter) Then
|
||||||
|
oFilterFields.Add(New KeyValuePair(Of clsGameFilterField, String)(oField, oField.FriendlyFieldName))
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
cboFilterField.DataSource = oFilterFields
|
||||||
|
|
||||||
|
'cboSortField
|
||||||
|
cboSortField.ValueMember = "Key"
|
||||||
|
cboSortField.DisplayMember = "Value"
|
||||||
|
|
||||||
|
For Each oField As clsGameFilterField In oValidFields
|
||||||
|
If oField.CheckStatus(clsGameFilterField.eFieldStatus.ValidSort) Then
|
||||||
|
oSortFields.Add(New KeyValuePair(Of String, String)(oField.FieldName, oField.FriendlyFieldName))
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
cboSortField.DataSource = oSortFields
|
||||||
|
|
||||||
|
'Select Defaults
|
||||||
|
cboNumericOps.SelectedIndex = 0
|
||||||
|
cboFilterField.SelectedIndex = 0
|
||||||
|
cboSortField.SelectedIndex = 0
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub SetForm()
|
Private Sub SetForm()
|
||||||
@@ -154,26 +587,48 @@ Public Class frmFilter
|
|||||||
'Set Form Text
|
'Set Form Text
|
||||||
optOr.Text = frmFilter_optOr
|
optOr.Text = frmFilter_optOr
|
||||||
optAnd.Text = frmFilter_optAnd
|
optAnd.Text = frmFilter_optAnd
|
||||||
lblCompany.Text = frmFilter_lblCompany
|
grpFilterType.Text = frmFilter_grpFilterType
|
||||||
lblProcess.Text = frmFilter_lblProcess
|
|
||||||
lblName.Text = frmFilter_lblName
|
|
||||||
grpGameInfoOptions.Text = frmFilter_grpGameInfoOptions
|
|
||||||
optAll.Text = frmFilter_optAll
|
optAll.Text = frmFilter_optAll
|
||||||
optAny.Text = frmFilter_optAny
|
optAny.Text = frmFilter_optAny
|
||||||
lblGameTags.Text = frmFilter_lblGameTags
|
lblIncludeTags.Text = frmFilter_lblIncludeTags
|
||||||
|
lblExcludeTags.Text = frmFilter_lblExcludeTags
|
||||||
lblTags.Text = frmFilter_lblTags
|
lblTags.Text = frmFilter_lblTags
|
||||||
btnRemove.Text = frmFilter_btnRemove
|
btnIncludeRemove.Text = frmFilter_btnIncludeRemove
|
||||||
btnAdd.Text = frmFilter_btnAdd
|
btnIncludeAdd.Text = frmFilter_btnIncludeAdd
|
||||||
|
btnExcludeRemove.Text = frmFilter_btnExcludeRemove
|
||||||
|
btnExcludeAdd.Text = frmFilter_btnExcludeAdd
|
||||||
btnOK.Text = frmFilter_btnOK
|
btnOK.Text = frmFilter_btnOK
|
||||||
grpTagOptions.Text = frmFilter_grpTagOptions
|
grpTagOptions.Text = frmFilter_grpTagOptions
|
||||||
optTag.Text = frmFilter_optTag
|
chkTag.Text = frmFilter_chkTag
|
||||||
optGameInfo.Text = frmFilter_optGameInfo
|
chkGameInfo.Text = frmFilter_chkGameInfo
|
||||||
|
grpSorting.Text = frmFilter_grpSorting
|
||||||
|
lblSortFields.Text = frmFilter_lblSortsFields
|
||||||
|
optSortAsc.Text = frmFilter_optSortAsc
|
||||||
|
optSortDesc.Text = frmFilter_optSortDesc
|
||||||
|
btnAddFilter.Text = frmFilter_btnAddFilter
|
||||||
|
btnRemoveFilter.Text = frmFilter_btnRemoveFilter
|
||||||
|
lblCurrentFilters.Text = frmFilter_lblCurrentFilters
|
||||||
|
lblFields.Text = frmFilter_lblFields
|
||||||
|
lblFilterData.Text = frmFilter_lblFilterData
|
||||||
|
grpSortOptions.Text = frmFilter_grpSortOptions
|
||||||
|
|
||||||
|
'Defaults
|
||||||
|
optOr.Checked = True
|
||||||
|
optSortAsc.Checked = True
|
||||||
|
grpGameFilter.Enabled = False
|
||||||
|
grpTagFilter.Enabled = False
|
||||||
|
|
||||||
|
'Init Game Filter
|
||||||
|
lstFilter.ValueMember = "Key"
|
||||||
|
lstFilter.DisplayMember = "Value"
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub frmGameTags_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
Private Sub frmGameTags_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||||
SetForm()
|
SetForm()
|
||||||
optGameInfo.Checked = True
|
LoadFilterFields()
|
||||||
LoadData()
|
LoadCombos()
|
||||||
|
LoadTagData()
|
||||||
|
LoadExistingFilters()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub btnOK_Click(sender As Object, e As EventArgs) Handles btnOK.Click
|
Private Sub btnOK_Click(sender As Object, e As EventArgs) Handles btnOK.Click
|
||||||
@@ -182,12 +637,20 @@ Public Class frmFilter
|
|||||||
Me.Close()
|
Me.Close()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub btnAdd_Click(sender As Object, e As EventArgs) Handles btnAdd.Click
|
Private Sub btnIncludeAdd_Click(sender As Object, e As EventArgs) Handles btnIncludeAdd.Click
|
||||||
AddTag()
|
AddTag(lstIncludeTags)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub btnRemove_Click(sender As Object, e As EventArgs) Handles btnRemove.Click
|
Private Sub btnExcludeAdd_Click(sender As Object, e As EventArgs) Handles btnExcludeAdd.Click
|
||||||
RemoveTag()
|
AddTag(lstExcludeTags)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnExcludeRemove_Click(sender As Object, e As EventArgs) Handles btnExcludeRemove.Click
|
||||||
|
RemoveTag(lstExcludeTags)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnIncludeRemove_Click(sender As Object, e As EventArgs) Handles btnIncludeRemove.Click
|
||||||
|
RemoveTag(lstIncludeTags)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub frmFilter_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing
|
Private Sub frmFilter_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing
|
||||||
@@ -196,13 +659,37 @@ Public Class frmFilter
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub optGameInfo_Click(sender As Object, e As EventArgs) Handles optGameInfo.Click, optTag.Click
|
Private Sub chkGameInfo_CheckedChanged(sender As Object, e As EventArgs) Handles chkGameInfo.CheckedChanged
|
||||||
If optGameInfo.Checked = True Then
|
If chkGameInfo.Checked Then
|
||||||
grpGameFilter.Enabled = True
|
grpGameFilter.Enabled = True
|
||||||
grpTagFilter.Enabled = False
|
|
||||||
Else
|
Else
|
||||||
|
optOr.Checked = True
|
||||||
grpGameFilter.Enabled = False
|
grpGameFilter.Enabled = False
|
||||||
grpTagFilter.Enabled = True
|
oGameFilters.Clear()
|
||||||
|
lstFilter.Items.Clear()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub chkTag_CheckedChanged(sender As Object, e As EventArgs) Handles chkTag.CheckedChanged
|
||||||
|
If chkTag.Checked Then
|
||||||
|
grpTagFilter.Enabled = True
|
||||||
|
Else
|
||||||
|
grpTagFilter.Enabled = False
|
||||||
|
oIncludeTagFilters.Clear()
|
||||||
|
LoadTagData()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnAddFilter_Click(sender As Object, e As EventArgs) Handles btnAddFilter.Click
|
||||||
|
AddFilter()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnRemoveFilter_Click(sender As Object, e As EventArgs) Handles btnRemoveFilter.Click
|
||||||
|
RemoveFilter()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub cboFilterField_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cboFilterField.SelectedIndexChanged
|
||||||
|
ChangeFilterMode()
|
||||||
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
Generated
+153
-59
@@ -1,9 +1,9 @@
|
|||||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
|
||||||
Partial Class frmGameManager
|
Partial Class frmGameManager
|
||||||
Inherits System.Windows.Forms.Form
|
Inherits System.Windows.Forms.Form
|
||||||
|
|
||||||
'Form overrides dispose to clean up the component list.
|
'Form overrides dispose to clean up the component list.
|
||||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
<System.Diagnostics.DebuggerNonUserCode()>
|
||||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
Try
|
Try
|
||||||
If disposing AndAlso components IsNot Nothing Then
|
If disposing AndAlso components IsNot Nothing Then
|
||||||
@@ -20,7 +20,7 @@ Partial Class frmGameManager
|
|||||||
'NOTE: The following procedure is required by the Windows Form Designer
|
'NOTE: The following procedure is required by the Windows Form Designer
|
||||||
'It can be modified using the Windows Form Designer.
|
'It can be modified using the Windows Form Designer.
|
||||||
'Do not modify it using the code editor.
|
'Do not modify it using the code editor.
|
||||||
<System.Diagnostics.DebuggerStepThrough()> _
|
<System.Diagnostics.DebuggerStepThrough()>
|
||||||
Private Sub InitializeComponent()
|
Private Sub InitializeComponent()
|
||||||
Me.components = New System.ComponentModel.Container()
|
Me.components = New System.ComponentModel.Container()
|
||||||
Me.btnAdd = New System.Windows.Forms.Button()
|
Me.btnAdd = New System.Windows.Forms.Button()
|
||||||
@@ -28,6 +28,13 @@ Partial Class frmGameManager
|
|||||||
Me.btnBackup = New System.Windows.Forms.Button()
|
Me.btnBackup = New System.Windows.Forms.Button()
|
||||||
Me.btnClose = New System.Windows.Forms.Button()
|
Me.btnClose = New System.Windows.Forms.Button()
|
||||||
Me.grpConfig = New System.Windows.Forms.GroupBox()
|
Me.grpConfig = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.btnGameID = New System.Windows.Forms.Button()
|
||||||
|
Me.chkRegEx = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.lblComments = New System.Windows.Forms.Label()
|
||||||
|
Me.txtComments = New System.Windows.Forms.TextBox()
|
||||||
|
Me.txtParameter = New System.Windows.Forms.TextBox()
|
||||||
|
Me.lblParameter = New System.Windows.Forms.Label()
|
||||||
|
Me.chkCleanFolder = New System.Windows.Forms.CheckBox()
|
||||||
Me.lblLimit = New System.Windows.Forms.Label()
|
Me.lblLimit = New System.Windows.Forms.Label()
|
||||||
Me.nudLimit = New System.Windows.Forms.NumericUpDown()
|
Me.nudLimit = New System.Windows.Forms.NumericUpDown()
|
||||||
Me.btnExclude = New System.Windows.Forms.Button()
|
Me.btnExclude = New System.Windows.Forms.Button()
|
||||||
@@ -95,6 +102,7 @@ Partial Class frmGameManager
|
|||||||
Me.cmsDeleteBackup = New System.Windows.Forms.ContextMenuStrip(Me.components)
|
Me.cmsDeleteBackup = New System.Windows.Forms.ContextMenuStrip(Me.components)
|
||||||
Me.cmsDeleteOne = New System.Windows.Forms.ToolStripMenuItem()
|
Me.cmsDeleteOne = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.cmsDeleteAll = New System.Windows.Forms.ToolStripMenuItem()
|
Me.cmsDeleteAll = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
|
Me.btnProcesses = New System.Windows.Forms.Button()
|
||||||
Me.grpConfig.SuspendLayout()
|
Me.grpConfig.SuspendLayout()
|
||||||
CType(Me.nudLimit, System.ComponentModel.ISupportInitialize).BeginInit()
|
CType(Me.nudLimit, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
Me.grpExtra.SuspendLayout()
|
Me.grpExtra.SuspendLayout()
|
||||||
@@ -110,7 +118,7 @@ Partial Class frmGameManager
|
|||||||
'
|
'
|
||||||
Me.btnAdd.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
|
Me.btnAdd.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
|
||||||
Me.btnAdd.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
Me.btnAdd.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
Me.btnAdd.Location = New System.Drawing.Point(12, 526)
|
Me.btnAdd.Location = New System.Drawing.Point(12, 626)
|
||||||
Me.btnAdd.Name = "btnAdd"
|
Me.btnAdd.Name = "btnAdd"
|
||||||
Me.btnAdd.Size = New System.Drawing.Size(30, 23)
|
Me.btnAdd.Size = New System.Drawing.Size(30, 23)
|
||||||
Me.btnAdd.TabIndex = 4
|
Me.btnAdd.TabIndex = 4
|
||||||
@@ -121,7 +129,7 @@ Partial Class frmGameManager
|
|||||||
'
|
'
|
||||||
Me.btnDelete.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
|
Me.btnDelete.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
|
||||||
Me.btnDelete.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
Me.btnDelete.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
Me.btnDelete.Location = New System.Drawing.Point(48, 526)
|
Me.btnDelete.Location = New System.Drawing.Point(48, 626)
|
||||||
Me.btnDelete.Name = "btnDelete"
|
Me.btnDelete.Name = "btnDelete"
|
||||||
Me.btnDelete.Size = New System.Drawing.Size(30, 23)
|
Me.btnDelete.Size = New System.Drawing.Size(30, 23)
|
||||||
Me.btnDelete.TabIndex = 5
|
Me.btnDelete.TabIndex = 5
|
||||||
@@ -131,26 +139,33 @@ Partial Class frmGameManager
|
|||||||
'btnBackup
|
'btnBackup
|
||||||
'
|
'
|
||||||
Me.btnBackup.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
Me.btnBackup.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.btnBackup.Location = New System.Drawing.Point(616, 526)
|
Me.btnBackup.Location = New System.Drawing.Point(616, 626)
|
||||||
Me.btnBackup.Name = "btnBackup"
|
Me.btnBackup.Name = "btnBackup"
|
||||||
Me.btnBackup.Size = New System.Drawing.Size(75, 23)
|
Me.btnBackup.Size = New System.Drawing.Size(75, 23)
|
||||||
Me.btnBackup.TabIndex = 19
|
Me.btnBackup.TabIndex = 18
|
||||||
Me.btnBackup.Text = "&Backup"
|
Me.btnBackup.Text = "&Backup"
|
||||||
Me.btnBackup.UseVisualStyleBackColor = True
|
Me.btnBackup.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'btnClose
|
'btnClose
|
||||||
'
|
'
|
||||||
Me.btnClose.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
Me.btnClose.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.btnClose.Location = New System.Drawing.Point(697, 526)
|
Me.btnClose.Location = New System.Drawing.Point(697, 626)
|
||||||
Me.btnClose.Name = "btnClose"
|
Me.btnClose.Name = "btnClose"
|
||||||
Me.btnClose.Size = New System.Drawing.Size(75, 23)
|
Me.btnClose.Size = New System.Drawing.Size(75, 23)
|
||||||
Me.btnClose.TabIndex = 20
|
Me.btnClose.TabIndex = 19
|
||||||
Me.btnClose.Text = "C&lose"
|
Me.btnClose.Text = "C&lose"
|
||||||
Me.btnClose.UseVisualStyleBackColor = True
|
Me.btnClose.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'grpConfig
|
'grpConfig
|
||||||
'
|
'
|
||||||
Me.grpConfig.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
Me.grpConfig.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.grpConfig.Controls.Add(Me.btnGameID)
|
||||||
|
Me.grpConfig.Controls.Add(Me.chkRegEx)
|
||||||
|
Me.grpConfig.Controls.Add(Me.lblComments)
|
||||||
|
Me.grpConfig.Controls.Add(Me.txtComments)
|
||||||
|
Me.grpConfig.Controls.Add(Me.txtParameter)
|
||||||
|
Me.grpConfig.Controls.Add(Me.lblParameter)
|
||||||
|
Me.grpConfig.Controls.Add(Me.chkCleanFolder)
|
||||||
Me.grpConfig.Controls.Add(Me.lblLimit)
|
Me.grpConfig.Controls.Add(Me.lblLimit)
|
||||||
Me.grpConfig.Controls.Add(Me.nudLimit)
|
Me.grpConfig.Controls.Add(Me.nudLimit)
|
||||||
Me.grpConfig.Controls.Add(Me.btnExclude)
|
Me.grpConfig.Controls.Add(Me.btnExclude)
|
||||||
@@ -171,53 +186,114 @@ Partial Class frmGameManager
|
|||||||
Me.grpConfig.Enabled = False
|
Me.grpConfig.Enabled = False
|
||||||
Me.grpConfig.Location = New System.Drawing.Point(247, 12)
|
Me.grpConfig.Location = New System.Drawing.Point(247, 12)
|
||||||
Me.grpConfig.Name = "grpConfig"
|
Me.grpConfig.Name = "grpConfig"
|
||||||
Me.grpConfig.Size = New System.Drawing.Size(525, 157)
|
Me.grpConfig.Size = New System.Drawing.Size(525, 258)
|
||||||
Me.grpConfig.TabIndex = 8
|
Me.grpConfig.TabIndex = 8
|
||||||
Me.grpConfig.TabStop = False
|
Me.grpConfig.TabStop = False
|
||||||
Me.grpConfig.Text = "Configuration"
|
Me.grpConfig.Text = "Configuration"
|
||||||
'
|
'
|
||||||
|
'btnGameID
|
||||||
|
'
|
||||||
|
Me.btnGameID.Location = New System.Drawing.Point(402, 17)
|
||||||
|
Me.btnGameID.Name = "btnGameID"
|
||||||
|
Me.btnGameID.Size = New System.Drawing.Size(117, 23)
|
||||||
|
Me.btnGameID.TabIndex = 2
|
||||||
|
Me.btnGameID.Text = "&Game ID..."
|
||||||
|
Me.btnGameID.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'chkRegEx
|
||||||
|
'
|
||||||
|
Me.chkRegEx.AutoSize = True
|
||||||
|
Me.chkRegEx.Location = New System.Drawing.Point(402, 46)
|
||||||
|
Me.chkRegEx.Name = "chkRegEx"
|
||||||
|
Me.chkRegEx.Size = New System.Drawing.Size(117, 17)
|
||||||
|
Me.chkRegEx.TabIndex = 6
|
||||||
|
Me.chkRegEx.Text = "Regular Expression"
|
||||||
|
Me.chkRegEx.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'lblComments
|
||||||
|
'
|
||||||
|
Me.lblComments.AutoSize = True
|
||||||
|
Me.lblComments.Location = New System.Drawing.Point(7, 181)
|
||||||
|
Me.lblComments.Name = "lblComments"
|
||||||
|
Me.lblComments.Size = New System.Drawing.Size(59, 13)
|
||||||
|
Me.lblComments.TabIndex = 19
|
||||||
|
Me.lblComments.Text = "Comments:"
|
||||||
|
'
|
||||||
|
'txtComments
|
||||||
|
'
|
||||||
|
Me.txtComments.Location = New System.Drawing.Point(70, 181)
|
||||||
|
Me.txtComments.Multiline = True
|
||||||
|
Me.txtComments.Name = "txtComments"
|
||||||
|
Me.txtComments.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
|
||||||
|
Me.txtComments.Size = New System.Drawing.Size(413, 71)
|
||||||
|
Me.txtComments.TabIndex = 20
|
||||||
|
'
|
||||||
|
'txtParameter
|
||||||
|
'
|
||||||
|
Me.txtParameter.Location = New System.Drawing.Point(70, 71)
|
||||||
|
Me.txtParameter.Name = "txtParameter"
|
||||||
|
Me.txtParameter.Size = New System.Drawing.Size(414, 20)
|
||||||
|
Me.txtParameter.TabIndex = 8
|
||||||
|
'
|
||||||
|
'lblParameter
|
||||||
|
'
|
||||||
|
Me.lblParameter.AutoSize = True
|
||||||
|
Me.lblParameter.Location = New System.Drawing.Point(7, 74)
|
||||||
|
Me.lblParameter.Name = "lblParameter"
|
||||||
|
Me.lblParameter.Size = New System.Drawing.Size(58, 13)
|
||||||
|
Me.lblParameter.TabIndex = 7
|
||||||
|
Me.lblParameter.Text = "Parameter:"
|
||||||
|
'
|
||||||
|
'chkCleanFolder
|
||||||
|
'
|
||||||
|
Me.chkCleanFolder.AutoSize = True
|
||||||
|
Me.chkCleanFolder.Location = New System.Drawing.Point(330, 127)
|
||||||
|
Me.chkCleanFolder.Name = "chkCleanFolder"
|
||||||
|
Me.chkCleanFolder.Size = New System.Drawing.Size(136, 17)
|
||||||
|
Me.chkCleanFolder.TabIndex = 14
|
||||||
|
Me.chkCleanFolder.Text = "Delete folder on restore"
|
||||||
|
Me.chkCleanFolder.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
'lblLimit
|
'lblLimit
|
||||||
'
|
'
|
||||||
Me.lblLimit.AutoSize = True
|
Me.lblLimit.AutoSize = True
|
||||||
Me.lblLimit.Location = New System.Drawing.Point(375, 130)
|
Me.lblLimit.Location = New System.Drawing.Point(376, 157)
|
||||||
Me.lblLimit.Name = "lblLimit"
|
Me.lblLimit.Name = "lblLimit"
|
||||||
Me.lblLimit.Size = New System.Drawing.Size(68, 13)
|
Me.lblLimit.Size = New System.Drawing.Size(68, 13)
|
||||||
Me.lblLimit.TabIndex = 13
|
Me.lblLimit.TabIndex = 18
|
||||||
Me.lblLimit.Text = "Backup Limit"
|
Me.lblLimit.Text = "Backup Limit"
|
||||||
Me.lblLimit.Visible = False
|
Me.lblLimit.Visible = False
|
||||||
'
|
'
|
||||||
'nudLimit
|
'nudLimit
|
||||||
'
|
'
|
||||||
Me.nudLimit.Location = New System.Drawing.Point(329, 128)
|
Me.nudLimit.Location = New System.Drawing.Point(330, 155)
|
||||||
Me.nudLimit.Minimum = New Decimal(New Integer() {2, 0, 0, 0})
|
|
||||||
Me.nudLimit.Name = "nudLimit"
|
Me.nudLimit.Name = "nudLimit"
|
||||||
Me.nudLimit.Size = New System.Drawing.Size(40, 20)
|
Me.nudLimit.Size = New System.Drawing.Size(40, 20)
|
||||||
Me.nudLimit.TabIndex = 12
|
Me.nudLimit.TabIndex = 17
|
||||||
Me.nudLimit.Value = New Decimal(New Integer() {2, 0, 0, 0})
|
|
||||||
Me.nudLimit.Visible = False
|
Me.nudLimit.Visible = False
|
||||||
'
|
'
|
||||||
'btnExclude
|
'btnExclude
|
||||||
'
|
'
|
||||||
Me.btnExclude.Location = New System.Drawing.Point(9, 125)
|
Me.btnExclude.Location = New System.Drawing.Point(10, 152)
|
||||||
Me.btnExclude.Name = "btnExclude"
|
Me.btnExclude.Name = "btnExclude"
|
||||||
Me.btnExclude.Size = New System.Drawing.Size(175, 23)
|
Me.btnExclude.Size = New System.Drawing.Size(175, 23)
|
||||||
Me.btnExclude.TabIndex = 9
|
Me.btnExclude.TabIndex = 15
|
||||||
Me.btnExclude.Text = "E&xclude Items..."
|
Me.btnExclude.Text = "E&xclude Items..."
|
||||||
Me.btnExclude.UseVisualStyleBackColor = True
|
Me.btnExclude.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'btnInclude
|
'btnInclude
|
||||||
'
|
'
|
||||||
Me.btnInclude.Location = New System.Drawing.Point(9, 97)
|
Me.btnInclude.Location = New System.Drawing.Point(10, 123)
|
||||||
Me.btnInclude.Name = "btnInclude"
|
Me.btnInclude.Name = "btnInclude"
|
||||||
Me.btnInclude.Size = New System.Drawing.Size(175, 23)
|
Me.btnInclude.Size = New System.Drawing.Size(175, 23)
|
||||||
Me.btnInclude.TabIndex = 8
|
Me.btnInclude.TabIndex = 12
|
||||||
Me.btnInclude.Text = "In&clude Items..."
|
Me.btnInclude.Text = "In&clude Items..."
|
||||||
Me.btnInclude.UseVisualStyleBackColor = True
|
Me.btnInclude.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'txtID
|
'txtID
|
||||||
'
|
'
|
||||||
Me.txtID.Enabled = False
|
Me.txtID.Enabled = False
|
||||||
Me.txtID.Location = New System.Drawing.Point(489, 19)
|
Me.txtID.Location = New System.Drawing.Point(489, 180)
|
||||||
Me.txtID.Name = "txtID"
|
Me.txtID.Name = "txtID"
|
||||||
Me.txtID.Size = New System.Drawing.Size(30, 20)
|
Me.txtID.Size = New System.Drawing.Size(30, 20)
|
||||||
Me.txtID.TabIndex = 0
|
Me.txtID.TabIndex = 0
|
||||||
@@ -226,16 +302,16 @@ Partial Class frmGameManager
|
|||||||
'
|
'
|
||||||
'btnSavePathBrowse
|
'btnSavePathBrowse
|
||||||
'
|
'
|
||||||
Me.btnSavePathBrowse.Location = New System.Drawing.Point(489, 71)
|
Me.btnSavePathBrowse.Location = New System.Drawing.Point(490, 97)
|
||||||
Me.btnSavePathBrowse.Name = "btnSavePathBrowse"
|
Me.btnSavePathBrowse.Name = "btnSavePathBrowse"
|
||||||
Me.btnSavePathBrowse.Size = New System.Drawing.Size(30, 20)
|
Me.btnSavePathBrowse.Size = New System.Drawing.Size(30, 20)
|
||||||
Me.btnSavePathBrowse.TabIndex = 7
|
Me.btnSavePathBrowse.TabIndex = 11
|
||||||
Me.btnSavePathBrowse.Text = "..."
|
Me.btnSavePathBrowse.Text = "..."
|
||||||
Me.btnSavePathBrowse.UseVisualStyleBackColor = True
|
Me.btnSavePathBrowse.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'btnProcessBrowse
|
'btnProcessBrowse
|
||||||
'
|
'
|
||||||
Me.btnProcessBrowse.Location = New System.Drawing.Point(489, 45)
|
Me.btnProcessBrowse.Location = New System.Drawing.Point(366, 44)
|
||||||
Me.btnProcessBrowse.Name = "btnProcessBrowse"
|
Me.btnProcessBrowse.Name = "btnProcessBrowse"
|
||||||
Me.btnProcessBrowse.Size = New System.Drawing.Size(30, 20)
|
Me.btnProcessBrowse.Size = New System.Drawing.Size(30, 20)
|
||||||
Me.btnProcessBrowse.TabIndex = 5
|
Me.btnProcessBrowse.TabIndex = 5
|
||||||
@@ -245,25 +321,25 @@ Partial Class frmGameManager
|
|||||||
'lblSavePath
|
'lblSavePath
|
||||||
'
|
'
|
||||||
Me.lblSavePath.AutoSize = True
|
Me.lblSavePath.AutoSize = True
|
||||||
Me.lblSavePath.Location = New System.Drawing.Point(6, 74)
|
Me.lblSavePath.Location = New System.Drawing.Point(7, 101)
|
||||||
Me.lblSavePath.Name = "lblSavePath"
|
Me.lblSavePath.Name = "lblSavePath"
|
||||||
Me.lblSavePath.Size = New System.Drawing.Size(60, 13)
|
Me.lblSavePath.Size = New System.Drawing.Size(60, 13)
|
||||||
Me.lblSavePath.TabIndex = 2
|
Me.lblSavePath.TabIndex = 9
|
||||||
Me.lblSavePath.Text = "Save Path:"
|
Me.lblSavePath.Text = "Save Path:"
|
||||||
'
|
'
|
||||||
'lblProcess
|
'lblProcess
|
||||||
'
|
'
|
||||||
Me.lblProcess.AutoSize = True
|
Me.lblProcess.AutoSize = True
|
||||||
Me.lblProcess.Location = New System.Drawing.Point(6, 48)
|
Me.lblProcess.Location = New System.Drawing.Point(7, 47)
|
||||||
Me.lblProcess.Name = "lblProcess"
|
Me.lblProcess.Name = "lblProcess"
|
||||||
Me.lblProcess.Size = New System.Drawing.Size(48, 13)
|
Me.lblProcess.Size = New System.Drawing.Size(48, 13)
|
||||||
Me.lblProcess.TabIndex = 1
|
Me.lblProcess.TabIndex = 3
|
||||||
Me.lblProcess.Text = "Process:"
|
Me.lblProcess.Text = "Process:"
|
||||||
'
|
'
|
||||||
'lblName
|
'lblName
|
||||||
'
|
'
|
||||||
Me.lblName.AutoSize = True
|
Me.lblName.AutoSize = True
|
||||||
Me.lblName.Location = New System.Drawing.Point(6, 22)
|
Me.lblName.Location = New System.Drawing.Point(7, 22)
|
||||||
Me.lblName.Name = "lblName"
|
Me.lblName.Name = "lblName"
|
||||||
Me.lblName.Size = New System.Drawing.Size(38, 13)
|
Me.lblName.Size = New System.Drawing.Size(38, 13)
|
||||||
Me.lblName.TabIndex = 0
|
Me.lblName.TabIndex = 0
|
||||||
@@ -271,7 +347,7 @@ Partial Class frmGameManager
|
|||||||
'
|
'
|
||||||
'txtExclude
|
'txtExclude
|
||||||
'
|
'
|
||||||
Me.txtExclude.Location = New System.Drawing.Point(489, 122)
|
Me.txtExclude.Location = New System.Drawing.Point(489, 154)
|
||||||
Me.txtExclude.Name = "txtExclude"
|
Me.txtExclude.Name = "txtExclude"
|
||||||
Me.txtExclude.Size = New System.Drawing.Size(30, 20)
|
Me.txtExclude.Size = New System.Drawing.Size(30, 20)
|
||||||
Me.txtExclude.TabIndex = 0
|
Me.txtExclude.TabIndex = 0
|
||||||
@@ -280,7 +356,7 @@ Partial Class frmGameManager
|
|||||||
'
|
'
|
||||||
'txtFileType
|
'txtFileType
|
||||||
'
|
'
|
||||||
Me.txtFileType.Location = New System.Drawing.Point(489, 99)
|
Me.txtFileType.Location = New System.Drawing.Point(489, 125)
|
||||||
Me.txtFileType.Name = "txtFileType"
|
Me.txtFileType.Name = "txtFileType"
|
||||||
Me.txtFileType.Size = New System.Drawing.Size(30, 20)
|
Me.txtFileType.Size = New System.Drawing.Size(30, 20)
|
||||||
Me.txtFileType.TabIndex = 0
|
Me.txtFileType.TabIndex = 0
|
||||||
@@ -290,48 +366,48 @@ Partial Class frmGameManager
|
|||||||
'chkTimeStamp
|
'chkTimeStamp
|
||||||
'
|
'
|
||||||
Me.chkTimeStamp.AutoSize = True
|
Me.chkTimeStamp.AutoSize = True
|
||||||
Me.chkTimeStamp.Location = New System.Drawing.Point(190, 129)
|
Me.chkTimeStamp.Location = New System.Drawing.Point(191, 156)
|
||||||
Me.chkTimeStamp.Name = "chkTimeStamp"
|
Me.chkTimeStamp.Name = "chkTimeStamp"
|
||||||
Me.chkTimeStamp.Size = New System.Drawing.Size(133, 17)
|
Me.chkTimeStamp.Size = New System.Drawing.Size(133, 17)
|
||||||
Me.chkTimeStamp.TabIndex = 11
|
Me.chkTimeStamp.TabIndex = 16
|
||||||
Me.chkTimeStamp.Text = "Save multiple backups"
|
Me.chkTimeStamp.Text = "Save multiple backups"
|
||||||
Me.chkTimeStamp.UseVisualStyleBackColor = True
|
Me.chkTimeStamp.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'chkFolderSave
|
'chkFolderSave
|
||||||
'
|
'
|
||||||
Me.chkFolderSave.AutoSize = True
|
Me.chkFolderSave.AutoSize = True
|
||||||
Me.chkFolderSave.Location = New System.Drawing.Point(190, 101)
|
Me.chkFolderSave.Location = New System.Drawing.Point(191, 127)
|
||||||
Me.chkFolderSave.Name = "chkFolderSave"
|
Me.chkFolderSave.Name = "chkFolderSave"
|
||||||
Me.chkFolderSave.Size = New System.Drawing.Size(109, 17)
|
Me.chkFolderSave.Size = New System.Drawing.Size(109, 17)
|
||||||
Me.chkFolderSave.TabIndex = 10
|
Me.chkFolderSave.TabIndex = 13
|
||||||
Me.chkFolderSave.Text = "Save entire folder"
|
Me.chkFolderSave.Text = "Save entire folder"
|
||||||
Me.chkFolderSave.UseVisualStyleBackColor = True
|
Me.chkFolderSave.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'txtSavePath
|
'txtSavePath
|
||||||
'
|
'
|
||||||
Me.txtSavePath.Location = New System.Drawing.Point(69, 71)
|
Me.txtSavePath.Location = New System.Drawing.Point(70, 97)
|
||||||
Me.txtSavePath.Name = "txtSavePath"
|
Me.txtSavePath.Name = "txtSavePath"
|
||||||
Me.txtSavePath.Size = New System.Drawing.Size(414, 20)
|
Me.txtSavePath.Size = New System.Drawing.Size(414, 20)
|
||||||
Me.txtSavePath.TabIndex = 6
|
Me.txtSavePath.TabIndex = 10
|
||||||
'
|
'
|
||||||
'txtProcess
|
'txtProcess
|
||||||
'
|
'
|
||||||
Me.txtProcess.Location = New System.Drawing.Point(69, 45)
|
Me.txtProcess.Location = New System.Drawing.Point(70, 44)
|
||||||
Me.txtProcess.Name = "txtProcess"
|
Me.txtProcess.Name = "txtProcess"
|
||||||
Me.txtProcess.Size = New System.Drawing.Size(414, 20)
|
Me.txtProcess.Size = New System.Drawing.Size(290, 20)
|
||||||
Me.txtProcess.TabIndex = 4
|
Me.txtProcess.TabIndex = 4
|
||||||
'
|
'
|
||||||
'txtName
|
'txtName
|
||||||
'
|
'
|
||||||
Me.txtName.Location = New System.Drawing.Point(69, 19)
|
Me.txtName.Location = New System.Drawing.Point(70, 19)
|
||||||
Me.txtName.Name = "txtName"
|
Me.txtName.Name = "txtName"
|
||||||
Me.txtName.Size = New System.Drawing.Size(414, 20)
|
Me.txtName.Size = New System.Drawing.Size(326, 20)
|
||||||
Me.txtName.TabIndex = 3
|
Me.txtName.TabIndex = 1
|
||||||
'
|
'
|
||||||
'chkMonitorOnly
|
'chkMonitorOnly
|
||||||
'
|
'
|
||||||
Me.chkMonitorOnly.AutoSize = True
|
Me.chkMonitorOnly.AutoSize = True
|
||||||
Me.chkMonitorOnly.Location = New System.Drawing.Point(362, 340)
|
Me.chkMonitorOnly.Location = New System.Drawing.Point(363, 441)
|
||||||
Me.chkMonitorOnly.Name = "chkMonitorOnly"
|
Me.chkMonitorOnly.Name = "chkMonitorOnly"
|
||||||
Me.chkMonitorOnly.Size = New System.Drawing.Size(83, 17)
|
Me.chkMonitorOnly.Size = New System.Drawing.Size(83, 17)
|
||||||
Me.chkMonitorOnly.TabIndex = 11
|
Me.chkMonitorOnly.TabIndex = 11
|
||||||
@@ -355,7 +431,7 @@ Partial Class frmGameManager
|
|||||||
Me.grpExtra.Controls.Add(Me.txtAppPath)
|
Me.grpExtra.Controls.Add(Me.txtAppPath)
|
||||||
Me.grpExtra.Controls.Add(Me.nudHours)
|
Me.grpExtra.Controls.Add(Me.nudHours)
|
||||||
Me.grpExtra.Controls.Add(Me.lblHours)
|
Me.grpExtra.Controls.Add(Me.lblHours)
|
||||||
Me.grpExtra.Location = New System.Drawing.Point(247, 175)
|
Me.grpExtra.Location = New System.Drawing.Point(248, 276)
|
||||||
Me.grpExtra.Name = "grpExtra"
|
Me.grpExtra.Name = "grpExtra"
|
||||||
Me.grpExtra.Size = New System.Drawing.Size(525, 155)
|
Me.grpExtra.Size = New System.Drawing.Size(525, 155)
|
||||||
Me.grpExtra.TabIndex = 9
|
Me.grpExtra.TabIndex = 9
|
||||||
@@ -486,7 +562,7 @@ Partial Class frmGameManager
|
|||||||
'
|
'
|
||||||
'btnTags
|
'btnTags
|
||||||
'
|
'
|
||||||
Me.btnTags.Location = New System.Drawing.Point(535, 336)
|
Me.btnTags.Location = New System.Drawing.Point(535, 437)
|
||||||
Me.btnTags.Name = "btnTags"
|
Me.btnTags.Name = "btnTags"
|
||||||
Me.btnTags.Size = New System.Drawing.Size(75, 23)
|
Me.btnTags.Size = New System.Drawing.Size(75, 23)
|
||||||
Me.btnTags.TabIndex = 12
|
Me.btnTags.TabIndex = 12
|
||||||
@@ -507,7 +583,7 @@ Partial Class frmGameManager
|
|||||||
Me.grpStats.Controls.Add(Me.lblBackupFile)
|
Me.grpStats.Controls.Add(Me.lblBackupFile)
|
||||||
Me.grpStats.Controls.Add(Me.lblRemote)
|
Me.grpStats.Controls.Add(Me.lblRemote)
|
||||||
Me.grpStats.Controls.Add(Me.lblLocalData)
|
Me.grpStats.Controls.Add(Me.lblLocalData)
|
||||||
Me.grpStats.Location = New System.Drawing.Point(247, 365)
|
Me.grpStats.Location = New System.Drawing.Point(248, 466)
|
||||||
Me.grpStats.Name = "grpStats"
|
Me.grpStats.Name = "grpStats"
|
||||||
Me.grpStats.Size = New System.Drawing.Size(525, 154)
|
Me.grpStats.Size = New System.Drawing.Size(525, 154)
|
||||||
Me.grpStats.TabIndex = 15
|
Me.grpStats.TabIndex = 15
|
||||||
@@ -622,27 +698,27 @@ Partial Class frmGameManager
|
|||||||
'btnMarkAsRestored
|
'btnMarkAsRestored
|
||||||
'
|
'
|
||||||
Me.btnMarkAsRestored.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
Me.btnMarkAsRestored.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.btnMarkAsRestored.Location = New System.Drawing.Point(429, 526)
|
Me.btnMarkAsRestored.Location = New System.Drawing.Point(429, 626)
|
||||||
Me.btnMarkAsRestored.Name = "btnMarkAsRestored"
|
Me.btnMarkAsRestored.Name = "btnMarkAsRestored"
|
||||||
Me.btnMarkAsRestored.Size = New System.Drawing.Size(100, 23)
|
Me.btnMarkAsRestored.Size = New System.Drawing.Size(100, 23)
|
||||||
Me.btnMarkAsRestored.TabIndex = 17
|
Me.btnMarkAsRestored.TabIndex = 16
|
||||||
Me.btnMarkAsRestored.Text = "&Mark as Restored"
|
Me.btnMarkAsRestored.Text = "&Mark as Restored"
|
||||||
Me.btnMarkAsRestored.UseVisualStyleBackColor = True
|
Me.btnMarkAsRestored.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'btnRestore
|
'btnRestore
|
||||||
'
|
'
|
||||||
Me.btnRestore.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
Me.btnRestore.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.btnRestore.Location = New System.Drawing.Point(535, 526)
|
Me.btnRestore.Location = New System.Drawing.Point(535, 626)
|
||||||
Me.btnRestore.Name = "btnRestore"
|
Me.btnRestore.Name = "btnRestore"
|
||||||
Me.btnRestore.Size = New System.Drawing.Size(75, 23)
|
Me.btnRestore.Size = New System.Drawing.Size(75, 23)
|
||||||
Me.btnRestore.TabIndex = 18
|
Me.btnRestore.TabIndex = 17
|
||||||
Me.btnRestore.Text = "&Restore"
|
Me.btnRestore.Text = "&Restore"
|
||||||
Me.btnRestore.UseVisualStyleBackColor = True
|
Me.btnRestore.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'btnSave
|
'btnSave
|
||||||
'
|
'
|
||||||
Me.btnSave.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
Me.btnSave.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.btnSave.Location = New System.Drawing.Point(616, 336)
|
Me.btnSave.Location = New System.Drawing.Point(616, 437)
|
||||||
Me.btnSave.Name = "btnSave"
|
Me.btnSave.Name = "btnSave"
|
||||||
Me.btnSave.Size = New System.Drawing.Size(75, 23)
|
Me.btnSave.Size = New System.Drawing.Size(75, 23)
|
||||||
Me.btnSave.TabIndex = 13
|
Me.btnSave.TabIndex = 13
|
||||||
@@ -655,13 +731,13 @@ Partial Class frmGameManager
|
|||||||
Me.lstGames.Location = New System.Drawing.Point(12, 160)
|
Me.lstGames.Location = New System.Drawing.Point(12, 160)
|
||||||
Me.lstGames.Name = "lstGames"
|
Me.lstGames.Name = "lstGames"
|
||||||
Me.lstGames.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended
|
Me.lstGames.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended
|
||||||
Me.lstGames.Size = New System.Drawing.Size(228, 355)
|
Me.lstGames.Size = New System.Drawing.Size(228, 459)
|
||||||
Me.lstGames.TabIndex = 3
|
Me.lstGames.TabIndex = 3
|
||||||
'
|
'
|
||||||
'btnCancel
|
'btnCancel
|
||||||
'
|
'
|
||||||
Me.btnCancel.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
Me.btnCancel.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.btnCancel.Location = New System.Drawing.Point(697, 336)
|
Me.btnCancel.Location = New System.Drawing.Point(697, 437)
|
||||||
Me.btnCancel.Name = "btnCancel"
|
Me.btnCancel.Name = "btnCancel"
|
||||||
Me.btnCancel.Size = New System.Drawing.Size(75, 23)
|
Me.btnCancel.Size = New System.Drawing.Size(75, 23)
|
||||||
Me.btnCancel.TabIndex = 14
|
Me.btnCancel.TabIndex = 14
|
||||||
@@ -671,7 +747,7 @@ Partial Class frmGameManager
|
|||||||
'chkEnabled
|
'chkEnabled
|
||||||
'
|
'
|
||||||
Me.chkEnabled.AutoSize = True
|
Me.chkEnabled.AutoSize = True
|
||||||
Me.chkEnabled.Location = New System.Drawing.Point(247, 340)
|
Me.chkEnabled.Location = New System.Drawing.Point(248, 441)
|
||||||
Me.chkEnabled.Name = "chkEnabled"
|
Me.chkEnabled.Name = "chkEnabled"
|
||||||
Me.chkEnabled.Size = New System.Drawing.Size(109, 17)
|
Me.chkEnabled.Size = New System.Drawing.Size(109, 17)
|
||||||
Me.chkEnabled.TabIndex = 10
|
Me.chkEnabled.TabIndex = 10
|
||||||
@@ -718,10 +794,10 @@ Partial Class frmGameManager
|
|||||||
Me.optPendingRestores.AutoSize = True
|
Me.optPendingRestores.AutoSize = True
|
||||||
Me.optPendingRestores.Location = New System.Drawing.Point(6, 64)
|
Me.optPendingRestores.Location = New System.Drawing.Point(6, 64)
|
||||||
Me.optPendingRestores.Name = "optPendingRestores"
|
Me.optPendingRestores.Name = "optPendingRestores"
|
||||||
Me.optPendingRestores.Size = New System.Drawing.Size(122, 17)
|
Me.optPendingRestores.Size = New System.Drawing.Size(134, 17)
|
||||||
Me.optPendingRestores.TabIndex = 2
|
Me.optPendingRestores.TabIndex = 2
|
||||||
Me.optPendingRestores.TabStop = True
|
Me.optPendingRestores.TabStop = True
|
||||||
Me.optPendingRestores.Text = "New Saves Pending"
|
Me.optPendingRestores.Text = "New Backups Pending"
|
||||||
Me.optPendingRestores.UseVisualStyleBackColor = True
|
Me.optPendingRestores.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'optAllGames
|
'optAllGames
|
||||||
@@ -737,7 +813,7 @@ Partial Class frmGameManager
|
|||||||
'
|
'
|
||||||
'btnImport
|
'btnImport
|
||||||
'
|
'
|
||||||
Me.btnImport.Location = New System.Drawing.Point(84, 526)
|
Me.btnImport.Location = New System.Drawing.Point(84, 626)
|
||||||
Me.btnImport.Name = "btnImport"
|
Me.btnImport.Name = "btnImport"
|
||||||
Me.btnImport.Size = New System.Drawing.Size(75, 23)
|
Me.btnImport.Size = New System.Drawing.Size(75, 23)
|
||||||
Me.btnImport.TabIndex = 6
|
Me.btnImport.TabIndex = 6
|
||||||
@@ -746,7 +822,7 @@ Partial Class frmGameManager
|
|||||||
'
|
'
|
||||||
'btnExport
|
'btnExport
|
||||||
'
|
'
|
||||||
Me.btnExport.Location = New System.Drawing.Point(165, 526)
|
Me.btnExport.Location = New System.Drawing.Point(165, 626)
|
||||||
Me.btnExport.Name = "btnExport"
|
Me.btnExport.Name = "btnExport"
|
||||||
Me.btnExport.Size = New System.Drawing.Size(75, 23)
|
Me.btnExport.Size = New System.Drawing.Size(75, 23)
|
||||||
Me.btnExport.TabIndex = 7
|
Me.btnExport.TabIndex = 7
|
||||||
@@ -807,11 +883,21 @@ Partial Class frmGameManager
|
|||||||
Me.cmsDeleteAll.Size = New System.Drawing.Size(114, 22)
|
Me.cmsDeleteAll.Size = New System.Drawing.Size(114, 22)
|
||||||
Me.cmsDeleteAll.Text = "&All Files"
|
Me.cmsDeleteAll.Text = "&All Files"
|
||||||
'
|
'
|
||||||
|
'btnProcesses
|
||||||
|
'
|
||||||
|
Me.btnProcesses.Location = New System.Drawing.Point(454, 437)
|
||||||
|
Me.btnProcesses.Name = "btnProcesses"
|
||||||
|
Me.btnProcesses.Size = New System.Drawing.Size(75, 23)
|
||||||
|
Me.btnProcesses.TabIndex = 20
|
||||||
|
Me.btnProcesses.Text = "Processes..."
|
||||||
|
Me.btnProcesses.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
'frmGameManager
|
'frmGameManager
|
||||||
'
|
'
|
||||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||||
Me.ClientSize = New System.Drawing.Size(784, 561)
|
Me.ClientSize = New System.Drawing.Size(784, 661)
|
||||||
|
Me.Controls.Add(Me.btnProcesses)
|
||||||
Me.Controls.Add(Me.lblQuickFilter)
|
Me.Controls.Add(Me.lblQuickFilter)
|
||||||
Me.Controls.Add(Me.txtQuickFilter)
|
Me.Controls.Add(Me.txtQuickFilter)
|
||||||
Me.Controls.Add(Me.btnExport)
|
Me.Controls.Add(Me.btnExport)
|
||||||
@@ -928,4 +1014,12 @@ Partial Class frmGameManager
|
|||||||
Friend WithEvents cmsDeleteBackup As ContextMenuStrip
|
Friend WithEvents cmsDeleteBackup As ContextMenuStrip
|
||||||
Friend WithEvents cmsDeleteOne As ToolStripMenuItem
|
Friend WithEvents cmsDeleteOne As ToolStripMenuItem
|
||||||
Friend WithEvents cmsDeleteAll As ToolStripMenuItem
|
Friend WithEvents cmsDeleteAll As ToolStripMenuItem
|
||||||
|
Friend WithEvents chkCleanFolder As CheckBox
|
||||||
|
Friend WithEvents txtParameter As TextBox
|
||||||
|
Friend WithEvents lblParameter As Label
|
||||||
|
Friend WithEvents lblComments As Label
|
||||||
|
Friend WithEvents txtComments As TextBox
|
||||||
|
Friend WithEvents chkRegEx As CheckBox
|
||||||
|
Friend WithEvents btnGameID As Button
|
||||||
|
Friend WithEvents btnProcesses As Button
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
+504
-225
File diff suppressed because it is too large
Load Diff
Generated
+142
@@ -0,0 +1,142 @@
|
|||||||
|
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
||||||
|
Partial Class frmGameProcesses
|
||||||
|
Inherits System.Windows.Forms.Form
|
||||||
|
|
||||||
|
'Form overrides dispose to clean up the component list.
|
||||||
|
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||||
|
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
|
Try
|
||||||
|
If disposing AndAlso components IsNot Nothing Then
|
||||||
|
components.Dispose()
|
||||||
|
End If
|
||||||
|
Finally
|
||||||
|
MyBase.Dispose(disposing)
|
||||||
|
End Try
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Required by the Windows Form Designer
|
||||||
|
Private components As System.ComponentModel.IContainer
|
||||||
|
|
||||||
|
'NOTE: The following procedure is required by the Windows Form Designer
|
||||||
|
'It can be modified using the Windows Form Designer.
|
||||||
|
'Do not modify it using the code editor.
|
||||||
|
<System.Diagnostics.DebuggerStepThrough()> _
|
||||||
|
Private Sub InitializeComponent()
|
||||||
|
Me.btnOpenProcesses = New System.Windows.Forms.Button()
|
||||||
|
Me.btnClose = New System.Windows.Forms.Button()
|
||||||
|
Me.lblGameProcesses = New System.Windows.Forms.Label()
|
||||||
|
Me.lblProcesses = New System.Windows.Forms.Label()
|
||||||
|
Me.btnRemove = New System.Windows.Forms.Button()
|
||||||
|
Me.btnAdd = New System.Windows.Forms.Button()
|
||||||
|
Me.lstGameProcesses = New System.Windows.Forms.ListBox()
|
||||||
|
Me.lstProcesses = New System.Windows.Forms.ListBox()
|
||||||
|
Me.SuspendLayout()
|
||||||
|
'
|
||||||
|
'btnOpenProcesses
|
||||||
|
'
|
||||||
|
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 = 4
|
||||||
|
Me.btnOpenProcesses.Text = "&Process Manager..."
|
||||||
|
Me.btnOpenProcesses.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'btnClose
|
||||||
|
'
|
||||||
|
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 = 5
|
||||||
|
Me.btnClose.Text = "&Close"
|
||||||
|
Me.btnClose.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'lblGameProcesses
|
||||||
|
'
|
||||||
|
Me.lblGameProcesses.AutoSize = True
|
||||||
|
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 = 0
|
||||||
|
Me.lblGameProcesses.Text = "Current Processes"
|
||||||
|
'
|
||||||
|
'lblProcesses
|
||||||
|
'
|
||||||
|
Me.lblProcesses.AutoSize = True
|
||||||
|
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 = 0
|
||||||
|
Me.lblProcesses.Text = "Available Processes"
|
||||||
|
'
|
||||||
|
'btnRemove
|
||||||
|
'
|
||||||
|
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 = 2
|
||||||
|
Me.btnRemove.Text = "<"
|
||||||
|
Me.btnRemove.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'btnAdd
|
||||||
|
'
|
||||||
|
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 = 1
|
||||||
|
Me.btnAdd.Text = ">"
|
||||||
|
Me.btnAdd.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'lstGameProcesses
|
||||||
|
'
|
||||||
|
Me.lstGameProcesses.FormattingEnabled = True
|
||||||
|
Me.lstGameProcesses.Location = New System.Drawing.Point(222, 24)
|
||||||
|
Me.lstGameProcesses.Name = "lstGameProcesses"
|
||||||
|
Me.lstGameProcesses.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended
|
||||||
|
Me.lstGameProcesses.Size = New System.Drawing.Size(150, 199)
|
||||||
|
Me.lstGameProcesses.Sorted = True
|
||||||
|
Me.lstGameProcesses.TabIndex = 3
|
||||||
|
'
|
||||||
|
'lstProcesses
|
||||||
|
'
|
||||||
|
Me.lstProcesses.FormattingEnabled = True
|
||||||
|
Me.lstProcesses.Location = New System.Drawing.Point(12, 24)
|
||||||
|
Me.lstProcesses.Name = "lstProcesses"
|
||||||
|
Me.lstProcesses.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended
|
||||||
|
Me.lstProcesses.Size = New System.Drawing.Size(150, 199)
|
||||||
|
Me.lstProcesses.Sorted = True
|
||||||
|
Me.lstProcesses.TabIndex = 0
|
||||||
|
'
|
||||||
|
'frmGameProcesses
|
||||||
|
'
|
||||||
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||||
|
Me.ClientSize = New System.Drawing.Size(384, 261)
|
||||||
|
Me.Controls.Add(Me.btnOpenProcesses)
|
||||||
|
Me.Controls.Add(Me.btnClose)
|
||||||
|
Me.Controls.Add(Me.lblGameProcesses)
|
||||||
|
Me.Controls.Add(Me.lblProcesses)
|
||||||
|
Me.Controls.Add(Me.btnRemove)
|
||||||
|
Me.Controls.Add(Me.btnAdd)
|
||||||
|
Me.Controls.Add(Me.lstGameProcesses)
|
||||||
|
Me.Controls.Add(Me.lstProcesses)
|
||||||
|
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
|
||||||
|
Me.MaximizeBox = False
|
||||||
|
Me.MinimizeBox = False
|
||||||
|
Me.Name = "frmGameProcesses"
|
||||||
|
Me.ShowIcon = False
|
||||||
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||||
|
Me.Text = "Edit Processes"
|
||||||
|
Me.ResumeLayout(False)
|
||||||
|
Me.PerformLayout()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend WithEvents btnOpenProcesses As Button
|
||||||
|
Friend WithEvents btnClose As Button
|
||||||
|
Friend WithEvents lblGameProcesses As Label
|
||||||
|
Friend WithEvents lblProcesses As Label
|
||||||
|
Friend WithEvents btnRemove As Button
|
||||||
|
Friend WithEvents btnAdd As Button
|
||||||
|
Friend WithEvents lstGameProcesses As ListBox
|
||||||
|
Friend WithEvents lstProcesses As ListBox
|
||||||
|
End Class
|
||||||
@@ -117,7 +117,4 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<metadata name="fbBrowser.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
||||||
<value>17, 17</value>
|
|
||||||
</metadata>
|
|
||||||
</root>
|
</root>
|
||||||
@@ -0,0 +1,247 @@
|
|||||||
|
Imports GBM.My.Resources
|
||||||
|
|
||||||
|
Public Class frmGameProcesses
|
||||||
|
Private sMonitorIDs As List(Of String)
|
||||||
|
Private sGameName As String = String.Empty
|
||||||
|
Private bNewMode As Boolean = False
|
||||||
|
Private oProcessList As List(Of KeyValuePair(Of String, String))
|
||||||
|
|
||||||
|
Public Property IDList As List(Of String)
|
||||||
|
Get
|
||||||
|
Return sMonitorIDs
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of String))
|
||||||
|
sMonitorIDs = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property GameName As String
|
||||||
|
Get
|
||||||
|
Return sGameName
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sGameName = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property NewMode As Boolean
|
||||||
|
Get
|
||||||
|
Return bNewMode
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bNewMode = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property ProcessList As List(Of KeyValuePair(Of String, String))
|
||||||
|
Get
|
||||||
|
Return oProcessList
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of KeyValuePair(Of String, String)))
|
||||||
|
oProcessList = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Sub AddProcess()
|
||||||
|
Dim oData As KeyValuePair(Of String, String)
|
||||||
|
Dim oProcesss As List(Of KeyValuePair(Of String, String))
|
||||||
|
Dim oGameProcess As clsGameProcess
|
||||||
|
Dim oGameProcesses As List(Of clsGameProcess)
|
||||||
|
|
||||||
|
If lstProcesses.SelectedItems.Count = 1 Then
|
||||||
|
oData = lstProcesses.SelectedItems(0)
|
||||||
|
|
||||||
|
oGameProcesses = New List(Of clsGameProcess)
|
||||||
|
For Each sID As String In IDList
|
||||||
|
oGameProcess = New clsGameProcess
|
||||||
|
oGameProcess.MonitorID = sID
|
||||||
|
oGameProcess.ProcessID = oData.Key
|
||||||
|
oGameProcesses.Add(oGameProcess)
|
||||||
|
Next
|
||||||
|
|
||||||
|
If Not bNewMode Then mgrGameProcesses.DoGameProcessAddBatch(oGameProcesses)
|
||||||
|
|
||||||
|
lstGameProcesses.Items.Add(oData)
|
||||||
|
lstProcesses.Items.Remove(oData)
|
||||||
|
ElseIf lstProcesses.SelectedItems.Count > 1 Then
|
||||||
|
oProcesss = New List(Of KeyValuePair(Of String, String))
|
||||||
|
|
||||||
|
For Each oData In lstProcesses.SelectedItems
|
||||||
|
oProcesss.Add(oData)
|
||||||
|
Next
|
||||||
|
|
||||||
|
For Each kp As KeyValuePair(Of String, String) In oProcesss
|
||||||
|
oGameProcesses = New List(Of clsGameProcess)
|
||||||
|
For Each sID As String In IDList
|
||||||
|
oGameProcess = New clsGameProcess
|
||||||
|
oGameProcess.MonitorID = sID
|
||||||
|
oGameProcess.ProcessID = kp.Key
|
||||||
|
oGameProcesses.Add(oGameProcess)
|
||||||
|
Next
|
||||||
|
|
||||||
|
If Not bNewMode Then mgrGameProcesses.DoGameProcessAddBatch(oGameProcesses)
|
||||||
|
|
||||||
|
lstGameProcesses.Items.Add(kp)
|
||||||
|
lstProcesses.Items.Remove(kp)
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub RemoveProcess()
|
||||||
|
Dim oData As KeyValuePair(Of String, String)
|
||||||
|
Dim oProcesses As List(Of KeyValuePair(Of String, String))
|
||||||
|
Dim oGameProcess As clsGameProcess
|
||||||
|
Dim oGameProcesses As List(Of clsGameProcess)
|
||||||
|
|
||||||
|
If lstGameProcesses.SelectedItems.Count = 1 Then
|
||||||
|
oData = lstGameProcesses.SelectedItems(0)
|
||||||
|
|
||||||
|
oGameProcesses = New List(Of clsGameProcess)
|
||||||
|
For Each sID As String In IDList
|
||||||
|
oGameProcess = New clsGameProcess
|
||||||
|
oGameProcess.MonitorID = sID
|
||||||
|
oGameProcess.ProcessID = oData.Key
|
||||||
|
oGameProcesses.Add(oGameProcess)
|
||||||
|
Next
|
||||||
|
|
||||||
|
If Not bNewMode Then mgrGameProcesses.DoGameProcessDelete(oGameProcesses)
|
||||||
|
|
||||||
|
lstGameProcesses.Items.Remove(oData)
|
||||||
|
lstProcesses.Items.Add(oData)
|
||||||
|
ElseIf lstGameProcesses.SelectedItems.Count > 1 Then
|
||||||
|
oProcesses = New List(Of KeyValuePair(Of String, String))
|
||||||
|
|
||||||
|
For Each oData In lstGameProcesses.SelectedItems
|
||||||
|
oProcesses.Add(oData)
|
||||||
|
Next
|
||||||
|
|
||||||
|
For Each kp As KeyValuePair(Of String, String) In oProcesses
|
||||||
|
oGameProcesses = New List(Of clsGameProcess)
|
||||||
|
For Each sID As String In IDList
|
||||||
|
oGameProcess = New clsGameProcess
|
||||||
|
oGameProcess.MonitorID = sID
|
||||||
|
oGameProcess.ProcessID = kp.Key
|
||||||
|
oGameProcesses.Add(oGameProcess)
|
||||||
|
Next
|
||||||
|
|
||||||
|
If Not bNewMode Then mgrGameProcesses.DoGameProcessDelete(oGameProcesses)
|
||||||
|
|
||||||
|
lstGameProcesses.Items.Remove(kp)
|
||||||
|
lstProcesses.Items.Add(kp)
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub LoadData()
|
||||||
|
Dim hshProcesses As Hashtable
|
||||||
|
Dim hshGameProcesses As Hashtable
|
||||||
|
Dim oProcess As clsProcess
|
||||||
|
Dim oData As KeyValuePair(Of String, String)
|
||||||
|
|
||||||
|
'Load Processes
|
||||||
|
hshProcesses = mgrProcess.ReadProcesses()
|
||||||
|
|
||||||
|
'Handle Lists
|
||||||
|
lstProcesses.Items.Clear()
|
||||||
|
lstGameProcesses.Items.Clear()
|
||||||
|
|
||||||
|
lstProcesses.ValueMember = "Key"
|
||||||
|
lstProcesses.DisplayMember = "Value"
|
||||||
|
lstGameProcesses.ValueMember = "Key"
|
||||||
|
lstGameProcesses.DisplayMember = "Value"
|
||||||
|
|
||||||
|
If bNewMode Then
|
||||||
|
For Each kp As KeyValuePair(Of String, String) In oProcessList
|
||||||
|
'We need to be sure the tags still exist if the "Process Manager" form was used
|
||||||
|
If hshProcesses.ContainsKey(kp.Value) Then
|
||||||
|
lstGameProcesses.Items.Add(kp)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
For Each kp As KeyValuePair(Of String, String) In oProcessList
|
||||||
|
If hshProcesses.ContainsKey(kp.Value) Then
|
||||||
|
hshProcesses.Remove(kp.Value)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
Else
|
||||||
|
hshGameProcesses = mgrGameProcesses.GetProcessesByGameMulti(IDList)
|
||||||
|
|
||||||
|
For Each de As DictionaryEntry In hshGameProcesses
|
||||||
|
oProcess = DirectCast(de.Value, clsProcess)
|
||||||
|
If hshProcesses.ContainsKey(oProcess.Name) Then
|
||||||
|
hshProcesses.Remove(oProcess.Name)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
For Each de As DictionaryEntry In hshGameProcesses
|
||||||
|
oProcess = DirectCast(de.Value, clsProcess)
|
||||||
|
oData = New KeyValuePair(Of String, String)(oProcess.ID, oProcess.Name)
|
||||||
|
lstGameProcesses.Items.Add(oData)
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
|
||||||
|
For Each de As DictionaryEntry In hshProcesses
|
||||||
|
oProcess = DirectCast(de.Value, clsProcess)
|
||||||
|
oData = New KeyValuePair(Of String, String)(oProcess.ID, oProcess.Name)
|
||||||
|
lstProcesses.Items.Add(oData)
|
||||||
|
Next
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub BuildProcessList()
|
||||||
|
Dim oData As KeyValuePair(Of String, String)
|
||||||
|
oProcessList.Clear()
|
||||||
|
For Each oData In lstGameProcesses.Items
|
||||||
|
oProcessList.Add(oData)
|
||||||
|
Next
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub OpenProcessManager()
|
||||||
|
Dim frm As New frmProcessManager
|
||||||
|
frm.ShowDialog()
|
||||||
|
LoadData()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub SetForm()
|
||||||
|
'Set Form Name
|
||||||
|
If IDList.Count > 1 Then
|
||||||
|
Me.Text = frmGameProcesses_FormNameMulti
|
||||||
|
Else
|
||||||
|
Me.Text = mgrCommon.FormatString(frmGameProcesses_FormNameSingle, GameName)
|
||||||
|
End If
|
||||||
|
|
||||||
|
'Set Form Text
|
||||||
|
btnOpenProcesses.Text = frmGameProcesses_btnOpenProcesses
|
||||||
|
btnClose.Text = frmGameProcesses_btnClose
|
||||||
|
lblGameProcesses.Text = frmGameProcesses_lblGameProccesses
|
||||||
|
lblProcesses.Text = frmGameProcesses_lblProcesses
|
||||||
|
btnRemove.Text = frmGameProcesses_btnRemove
|
||||||
|
btnAdd.Text = frmGameProcesses_btnAdd
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub frmGameProcesses_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||||
|
LoadData()
|
||||||
|
SetForm()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnClose_Click(sender As Object, e As EventArgs) Handles btnClose.Click
|
||||||
|
If bNewMode Then BuildProcessList()
|
||||||
|
Me.Close()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnAdd_Click(sender As Object, e As EventArgs) Handles btnAdd.Click
|
||||||
|
AddProcess()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnRemove_Click(sender As Object, e As EventArgs) Handles btnRemove.Click
|
||||||
|
RemoveProcess()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnOpenProcesses_Click(sender As Object, e As EventArgs) Handles btnOpenProcesses.Click
|
||||||
|
If bNewMode Then BuildProcessList()
|
||||||
|
OpenProcessManager()
|
||||||
|
End Sub
|
||||||
|
End Class
|
||||||
+70
-23
@@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
Public Class frmGameTags
|
Public Class frmGameTags
|
||||||
|
|
||||||
Dim sMonitorIDs As List(Of String)
|
Private sMonitorIDs As List(Of String)
|
||||||
Dim sGameName As String = String.Empty
|
Private sGameName As String = String.Empty
|
||||||
|
Private bNewMode As Boolean = False
|
||||||
|
Private oTagList As List(Of KeyValuePair(Of String, String))
|
||||||
|
|
||||||
Public Property IDList As List(Of String)
|
Public Property IDList As List(Of String)
|
||||||
Get
|
Get
|
||||||
@@ -23,6 +25,25 @@ Public Class frmGameTags
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Public Property NewMode As Boolean
|
||||||
|
Get
|
||||||
|
Return bNewMode
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bNewMode = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Property TagList As List(Of KeyValuePair(Of String, String))
|
||||||
|
Get
|
||||||
|
Return oTagList
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of KeyValuePair(Of String, String)))
|
||||||
|
oTagList = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
Private Sub AddTag()
|
Private Sub AddTag()
|
||||||
Dim oData As KeyValuePair(Of String, String)
|
Dim oData As KeyValuePair(Of String, String)
|
||||||
Dim oTags As List(Of KeyValuePair(Of String, String))
|
Dim oTags As List(Of KeyValuePair(Of String, String))
|
||||||
@@ -40,7 +61,7 @@ Public Class frmGameTags
|
|||||||
oGameTags.Add(oGameTag)
|
oGameTags.Add(oGameTag)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
mgrGameTags.DoGameTagAddBatch(oGameTags)
|
If Not bNewMode Then mgrGameTags.DoGameTagAddBatch(oGameTags)
|
||||||
|
|
||||||
lstGameTags.Items.Add(oData)
|
lstGameTags.Items.Add(oData)
|
||||||
lstTags.Items.Remove(oData)
|
lstTags.Items.Remove(oData)
|
||||||
@@ -60,7 +81,7 @@ Public Class frmGameTags
|
|||||||
oGameTags.Add(oGameTag)
|
oGameTags.Add(oGameTag)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
mgrGameTags.DoGameTagAddBatch(oGameTags)
|
If Not bNewMode Then mgrGameTags.DoGameTagAddBatch(oGameTags)
|
||||||
|
|
||||||
lstGameTags.Items.Add(kp)
|
lstGameTags.Items.Add(kp)
|
||||||
lstTags.Items.Remove(kp)
|
lstTags.Items.Remove(kp)
|
||||||
@@ -86,12 +107,12 @@ Public Class frmGameTags
|
|||||||
oGameTags.Add(oGameTag)
|
oGameTags.Add(oGameTag)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
mgrGameTags.DoGameTagDelete(oGameTags)
|
If Not bNewMode Then mgrGameTags.DoGameTagDelete(oGameTags)
|
||||||
|
|
||||||
lstGameTags.Items.Remove(oData)
|
lstGameTags.Items.Remove(oData)
|
||||||
lstTags.Items.Add(oData)
|
lstTags.Items.Add(oData)
|
||||||
ElseIf lstGameTags.SelectedItems.Count > 1 Then
|
ElseIf lstGameTags.SelectedItems.Count > 1 Then
|
||||||
oTags = New List(Of KeyValuePair(Of String, String))
|
oTags = New List(Of KeyValuePair(Of String, String))
|
||||||
|
|
||||||
For Each oData In lstGameTags.SelectedItems
|
For Each oData In lstGameTags.SelectedItems
|
||||||
oTags.Add(oData)
|
oTags.Add(oData)
|
||||||
@@ -106,7 +127,7 @@ Public Class frmGameTags
|
|||||||
oGameTags.Add(oGameTag)
|
oGameTags.Add(oGameTag)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
mgrGameTags.DoGameTagDelete(oGameTags)
|
If Not bNewMode Then mgrGameTags.DoGameTagDelete(oGameTags)
|
||||||
|
|
||||||
lstGameTags.Items.Remove(kp)
|
lstGameTags.Items.Remove(kp)
|
||||||
lstTags.Items.Add(kp)
|
lstTags.Items.Add(kp)
|
||||||
@@ -121,16 +142,8 @@ Public Class frmGameTags
|
|||||||
Dim oTag As clsTag
|
Dim oTag As clsTag
|
||||||
Dim oData As KeyValuePair(Of String, String)
|
Dim oData As KeyValuePair(Of String, String)
|
||||||
|
|
||||||
'Handle Data
|
'Load Tags
|
||||||
hshTags = mgrTags.ReadTags()
|
hshTags = mgrTags.ReadTags()
|
||||||
hshGameTags = mgrGameTags.GetTagsByGameMulti(IDList)
|
|
||||||
|
|
||||||
For Each de As DictionaryEntry In hshGameTags
|
|
||||||
oTag = DirectCast(de.Value, clsTag)
|
|
||||||
If hshTags.ContainsKey(oTag.Name) Then
|
|
||||||
hshTags.Remove(oTag.Name)
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
|
|
||||||
'Handle Lists
|
'Handle Lists
|
||||||
lstTags.Items.Clear()
|
lstTags.Items.Clear()
|
||||||
@@ -141,11 +154,35 @@ Public Class frmGameTags
|
|||||||
lstGameTags.ValueMember = "Key"
|
lstGameTags.ValueMember = "Key"
|
||||||
lstGameTags.DisplayMember = "Value"
|
lstGameTags.DisplayMember = "Value"
|
||||||
|
|
||||||
For Each de As DictionaryEntry In hshGameTags
|
If bNewMode Then
|
||||||
oTag = DirectCast(de.Value, clsTag)
|
For Each kp As KeyValuePair(Of String, String) In oTagList
|
||||||
oData = New KeyValuePair(Of String, String)(oTag.ID, oTag.Name)
|
'We need to be sure the tags still exist if the "Setup Tags" form was used
|
||||||
lstGameTags.Items.Add(oData)
|
If hshTags.ContainsKey(kp.Value) Then
|
||||||
Next
|
lstGameTags.Items.Add(kp)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
For Each kp As KeyValuePair(Of String, String) In oTagList
|
||||||
|
If hshTags.ContainsKey(kp.Value) Then
|
||||||
|
hshTags.Remove(kp.Value)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
Else
|
||||||
|
hshGameTags = mgrGameTags.GetTagsByGameMulti(IDList)
|
||||||
|
|
||||||
|
For Each de As DictionaryEntry In hshGameTags
|
||||||
|
oTag = DirectCast(de.Value, clsTag)
|
||||||
|
If hshTags.ContainsKey(oTag.Name) Then
|
||||||
|
hshTags.Remove(oTag.Name)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
For Each de As DictionaryEntry In hshGameTags
|
||||||
|
oTag = DirectCast(de.Value, clsTag)
|
||||||
|
oData = New KeyValuePair(Of String, String)(oTag.ID, oTag.Name)
|
||||||
|
lstGameTags.Items.Add(oData)
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
|
||||||
For Each de As DictionaryEntry In hshTags
|
For Each de As DictionaryEntry In hshTags
|
||||||
oTag = DirectCast(de.Value, clsTag)
|
oTag = DirectCast(de.Value, clsTag)
|
||||||
@@ -155,6 +192,14 @@ Public Class frmGameTags
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub BuildTagList()
|
||||||
|
Dim oData As KeyValuePair(Of String, String)
|
||||||
|
oTagList.Clear()
|
||||||
|
For Each oData In lstGameTags.Items
|
||||||
|
oTagList.Add(oData)
|
||||||
|
Next
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub OpenTags()
|
Private Sub OpenTags()
|
||||||
Dim frm As New frmTags
|
Dim frm As New frmTags
|
||||||
frm.ShowDialog()
|
frm.ShowDialog()
|
||||||
@@ -185,6 +230,7 @@ Public Class frmGameTags
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub btnClose_Click(sender As Object, e As EventArgs) Handles btnClose.Click
|
Private Sub btnClose_Click(sender As Object, e As EventArgs) Handles btnClose.Click
|
||||||
|
If bNewMode Then BuildTagList()
|
||||||
Me.Close()
|
Me.Close()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -197,6 +243,7 @@ Public Class frmGameTags
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub btnOpenTags_Click(sender As Object, e As EventArgs) Handles btnOpenTags.Click
|
Private Sub btnOpenTags_Click(sender As Object, e As EventArgs) Handles btnOpenTags.Click
|
||||||
|
If bNewMode Then BuildTagList()
|
||||||
OpenTags()
|
OpenTags()
|
||||||
End Sub
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
@@ -108,7 +108,7 @@ Public Class frmIncludeExclude
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
sNewPath = mgrCommon.OpenFolderBrowser(frmIncludeExclude_BrowseSaveFolder, sDefaultFolder, False)
|
sNewPath = mgrCommon.OpenFolderBrowser("IE_Save_Path", frmIncludeExclude_BrowseSaveFolder, sDefaultFolder, False, False)
|
||||||
|
|
||||||
If sNewPath <> String.Empty Then txtRootFolder.Text = sNewPath
|
If sNewPath <> String.Empty Then txtRootFolder.Text = sNewPath
|
||||||
End Sub
|
End Sub
|
||||||
@@ -226,6 +226,8 @@ Public Class frmIncludeExclude
|
|||||||
sNewString = InputBox(frmIncludeExclude_RawEditInfo, mgrCommon.FormatString(frmIncludeExclude_RawEditTitle, FormName), sCurrentString)
|
sNewString = InputBox(frmIncludeExclude_RawEditInfo, mgrCommon.FormatString(frmIncludeExclude_RawEditTitle, FormName), sCurrentString)
|
||||||
If sNewString <> String.Empty Then
|
If sNewString <> String.Empty Then
|
||||||
ParseBuilderString(sNewString)
|
ParseBuilderString(sNewString)
|
||||||
|
Else
|
||||||
|
lstBuilder.Clear()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
Generated
+111
-45
@@ -36,12 +36,16 @@ Partial Class frmMain
|
|||||||
Me.gMonTraySetupGameManager = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonTraySetupGameManager = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonTraySetupCustomVariables = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonTraySetupCustomVariables = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonTraySetupTags = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonTraySetupTags = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
|
Me.gMonTraySetupProcessManager = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonTrayTools = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonTrayTools = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonTrayToolsCleanMan = New System.Windows.Forms.ToolStripMenuItem()
|
|
||||||
Me.gMonTrayToolsCompact = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonTrayToolsCompact = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonTrayToolsLog = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonTrayToolsLog = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonTrayLogClear = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonTrayLogClear = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonTrayLogSave = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonTrayLogSave = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
|
Me.gMonTrayToolsSessions = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
|
Me.gMonTrayToolsSyncGameID = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
|
Me.gMonTrayToolsSyncGameIDOfficial = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
|
Me.gMonTrayToolsSyncGameIDFile = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonTraySep1 = New System.Windows.Forms.ToolStripSeparator()
|
Me.gMonTraySep1 = New System.Windows.Forms.ToolStripSeparator()
|
||||||
Me.gMonTrayExit = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonTrayExit = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.bwMonitor = New System.ComponentModel.BackgroundWorker()
|
Me.bwMonitor = New System.ComponentModel.BackgroundWorker()
|
||||||
@@ -62,12 +66,16 @@ Partial Class frmMain
|
|||||||
Me.gMonSetupAddWizard = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonSetupAddWizard = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonSetupCustomVariables = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonSetupCustomVariables = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonSetupTags = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonSetupTags = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
|
Me.gMonSetupProcessManager = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonTools = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonTools = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonToolsCleanMan = New System.Windows.Forms.ToolStripMenuItem()
|
|
||||||
Me.gMonToolsCompact = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonToolsCompact = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonToolsLog = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonToolsLog = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonLogClear = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonLogClear = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonLogSave = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonLogSave = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
|
Me.gMonToolsSessions = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
|
Me.gMonToolsSyncGameID = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
|
Me.gMonToolsSyncGameIDOfficial = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
|
Me.gMonToolsSyncGameIDFile = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonHelp = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonHelp = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonHelpWebSite = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonHelpWebSite = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonHelpManual = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonHelpManual = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
@@ -75,7 +83,6 @@ Partial Class frmMain
|
|||||||
Me.gMonHelpAbout = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonHelpAbout = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.gMonNotification = New System.Windows.Forms.ToolStripMenuItem()
|
Me.gMonNotification = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.pbIcon = New System.Windows.Forms.PictureBox()
|
Me.pbIcon = New System.Windows.Forms.PictureBox()
|
||||||
Me.btnLogToggle = New System.Windows.Forms.Button()
|
|
||||||
Me.lblGameTitle = New System.Windows.Forms.Label()
|
Me.lblGameTitle = New System.Windows.Forms.Label()
|
||||||
Me.lblLastAction = New System.Windows.Forms.Label()
|
Me.lblLastAction = New System.Windows.Forms.Label()
|
||||||
Me.lblLastActionTitle = New System.Windows.Forms.Label()
|
Me.lblLastActionTitle = New System.Windows.Forms.Label()
|
||||||
@@ -138,7 +145,7 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
'gMonTraySetup
|
'gMonTraySetup
|
||||||
'
|
'
|
||||||
Me.gMonTraySetup.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonTraySetupAddWizard, Me.gMonTraySetupGameManager, Me.gMonTraySetupCustomVariables, Me.gMonTraySetupTags})
|
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.Name = "gMonTraySetup"
|
||||||
Me.gMonTraySetup.Size = New System.Drawing.Size(161, 22)
|
Me.gMonTraySetup.Size = New System.Drawing.Size(161, 22)
|
||||||
Me.gMonTraySetup.Text = "&Setup"
|
Me.gMonTraySetup.Text = "&Setup"
|
||||||
@@ -159,38 +166,38 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
Me.gMonTraySetupCustomVariables.Name = "gMonTraySetupCustomVariables"
|
Me.gMonTraySetupCustomVariables.Name = "gMonTraySetupCustomVariables"
|
||||||
Me.gMonTraySetupCustomVariables.Size = New System.Drawing.Size(201, 22)
|
Me.gMonTraySetupCustomVariables.Size = New System.Drawing.Size(201, 22)
|
||||||
Me.gMonTraySetupCustomVariables.Text = "Custom &Path Variables..."
|
Me.gMonTraySetupCustomVariables.Text = "Custom Path &Variables..."
|
||||||
'
|
'
|
||||||
'gMonTraySetupTags
|
'gMonTraySetupTags
|
||||||
'
|
'
|
||||||
Me.gMonTraySetupTags.Name = "gMonTraySetupTags"
|
Me.gMonTraySetupTags.Name = "gMonTraySetupTags"
|
||||||
Me.gMonTraySetupTags.Size = New System.Drawing.Size(201, 22)
|
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..."
|
||||||
'
|
'
|
||||||
'gMonTrayTools
|
'gMonTrayTools
|
||||||
'
|
'
|
||||||
Me.gMonTrayTools.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonTrayToolsCleanMan, Me.gMonTrayToolsCompact, Me.gMonTrayToolsLog})
|
Me.gMonTrayTools.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonTrayToolsCompact, Me.gMonTrayToolsLog, Me.gMonTrayToolsSessions, Me.gMonTrayToolsSyncGameID})
|
||||||
Me.gMonTrayTools.Name = "gMonTrayTools"
|
Me.gMonTrayTools.Name = "gMonTrayTools"
|
||||||
Me.gMonTrayTools.Size = New System.Drawing.Size(161, 22)
|
Me.gMonTrayTools.Size = New System.Drawing.Size(161, 22)
|
||||||
Me.gMonTrayTools.Text = "&Tools"
|
Me.gMonTrayTools.Text = "&Tools"
|
||||||
'
|
'
|
||||||
'gMonTrayToolsCleanMan
|
|
||||||
'
|
|
||||||
Me.gMonTrayToolsCleanMan.Name = "gMonTrayToolsCleanMan"
|
|
||||||
Me.gMonTrayToolsCleanMan.Size = New System.Drawing.Size(184, 22)
|
|
||||||
Me.gMonTrayToolsCleanMan.Text = "Clean Local Ma&nifest"
|
|
||||||
'
|
|
||||||
'gMonTrayToolsCompact
|
'gMonTrayToolsCompact
|
||||||
'
|
'
|
||||||
Me.gMonTrayToolsCompact.Name = "gMonTrayToolsCompact"
|
Me.gMonTrayToolsCompact.Name = "gMonTrayToolsCompact"
|
||||||
Me.gMonTrayToolsCompact.Size = New System.Drawing.Size(184, 22)
|
Me.gMonTrayToolsCompact.Size = New System.Drawing.Size(179, 22)
|
||||||
Me.gMonTrayToolsCompact.Text = "&Compact Databases"
|
Me.gMonTrayToolsCompact.Text = "&Compact Databases"
|
||||||
'
|
'
|
||||||
'gMonTrayToolsLog
|
'gMonTrayToolsLog
|
||||||
'
|
'
|
||||||
Me.gMonTrayToolsLog.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonTrayLogClear, Me.gMonTrayLogSave})
|
Me.gMonTrayToolsLog.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonTrayLogClear, Me.gMonTrayLogSave})
|
||||||
Me.gMonTrayToolsLog.Name = "gMonTrayToolsLog"
|
Me.gMonTrayToolsLog.Name = "gMonTrayToolsLog"
|
||||||
Me.gMonTrayToolsLog.Size = New System.Drawing.Size(184, 22)
|
Me.gMonTrayToolsLog.Size = New System.Drawing.Size(179, 22)
|
||||||
Me.gMonTrayToolsLog.Text = "&Log"
|
Me.gMonTrayToolsLog.Text = "&Log"
|
||||||
'
|
'
|
||||||
'gMonTrayLogClear
|
'gMonTrayLogClear
|
||||||
@@ -205,6 +212,31 @@ Partial Class frmMain
|
|||||||
Me.gMonTrayLogSave.Size = New System.Drawing.Size(101, 22)
|
Me.gMonTrayLogSave.Size = New System.Drawing.Size(101, 22)
|
||||||
Me.gMonTrayLogSave.Text = "&Save"
|
Me.gMonTrayLogSave.Text = "&Save"
|
||||||
'
|
'
|
||||||
|
'gMonTrayToolsSessions
|
||||||
|
'
|
||||||
|
Me.gMonTrayToolsSessions.Name = "gMonTrayToolsSessions"
|
||||||
|
Me.gMonTrayToolsSessions.Size = New System.Drawing.Size(179, 22)
|
||||||
|
Me.gMonTrayToolsSessions.Text = "&Session Viewer..."
|
||||||
|
'
|
||||||
|
'gMonTrayToolsSyncGameID
|
||||||
|
'
|
||||||
|
Me.gMonTrayToolsSyncGameID.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonTrayToolsSyncGameIDOfficial, Me.gMonTrayToolsSyncGameIDFile})
|
||||||
|
Me.gMonTrayToolsSyncGameID.Name = "gMonTrayToolsSyncGameID"
|
||||||
|
Me.gMonTrayToolsSyncGameID.Size = New System.Drawing.Size(179, 22)
|
||||||
|
Me.gMonTrayToolsSyncGameID.Text = "S&ync Game IDs"
|
||||||
|
'
|
||||||
|
'gMonTrayToolsSyncGameIDOfficial
|
||||||
|
'
|
||||||
|
Me.gMonTrayToolsSyncGameIDOfficial.Name = "gMonTrayToolsSyncGameIDOfficial"
|
||||||
|
Me.gMonTrayToolsSyncGameIDOfficial.Size = New System.Drawing.Size(142, 22)
|
||||||
|
Me.gMonTrayToolsSyncGameIDOfficial.Text = "&Official List..."
|
||||||
|
'
|
||||||
|
'gMonTrayToolsSyncGameIDFile
|
||||||
|
'
|
||||||
|
Me.gMonTrayToolsSyncGameIDFile.Name = "gMonTrayToolsSyncGameIDFile"
|
||||||
|
Me.gMonTrayToolsSyncGameIDFile.Size = New System.Drawing.Size(142, 22)
|
||||||
|
Me.gMonTrayToolsSyncGameIDFile.Text = "&File..."
|
||||||
|
'
|
||||||
'gMonTraySep1
|
'gMonTraySep1
|
||||||
'
|
'
|
||||||
Me.gMonTraySep1.Name = "gMonTraySep1"
|
Me.gMonTraySep1.Name = "gMonTraySep1"
|
||||||
@@ -222,6 +254,9 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
'txtLog
|
'txtLog
|
||||||
'
|
'
|
||||||
|
Me.txtLog.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.txtLog.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
Me.txtLog.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
Me.txtLog.Location = New System.Drawing.Point(12, 184)
|
Me.txtLog.Location = New System.Drawing.Point(12, 184)
|
||||||
Me.txtLog.MaxLength = 524288
|
Me.txtLog.MaxLength = 524288
|
||||||
@@ -229,7 +264,7 @@ Partial Class frmMain
|
|||||||
Me.txtLog.Name = "txtLog"
|
Me.txtLog.Name = "txtLog"
|
||||||
Me.txtLog.ReadOnly = True
|
Me.txtLog.ReadOnly = True
|
||||||
Me.txtLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
|
Me.txtLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
|
||||||
Me.txtLog.Size = New System.Drawing.Size(500, 177)
|
Me.txtLog.Size = New System.Drawing.Size(500, 186)
|
||||||
Me.txtLog.TabIndex = 10
|
Me.txtLog.TabIndex = 10
|
||||||
Me.txtLog.TabStop = False
|
Me.txtLog.TabStop = False
|
||||||
'
|
'
|
||||||
@@ -315,7 +350,7 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
'gMonSetup
|
'gMonSetup
|
||||||
'
|
'
|
||||||
Me.gMonSetup.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonSetupGameManager, Me.gMonSetupAddWizard, Me.gMonSetupCustomVariables, Me.gMonSetupTags})
|
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.Name = "gMonSetup"
|
||||||
Me.gMonSetup.Size = New System.Drawing.Size(49, 20)
|
Me.gMonSetup.Size = New System.Drawing.Size(49, 20)
|
||||||
Me.gMonSetup.Text = "&Setup"
|
Me.gMonSetup.Text = "&Setup"
|
||||||
@@ -336,38 +371,38 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
Me.gMonSetupCustomVariables.Name = "gMonSetupCustomVariables"
|
Me.gMonSetupCustomVariables.Name = "gMonSetupCustomVariables"
|
||||||
Me.gMonSetupCustomVariables.Size = New System.Drawing.Size(201, 22)
|
Me.gMonSetupCustomVariables.Size = New System.Drawing.Size(201, 22)
|
||||||
Me.gMonSetupCustomVariables.Text = "Custom &Path Variables..."
|
Me.gMonSetupCustomVariables.Text = "Custom Path &Variables..."
|
||||||
'
|
'
|
||||||
'gMonSetupTags
|
'gMonSetupTags
|
||||||
'
|
'
|
||||||
Me.gMonSetupTags.Name = "gMonSetupTags"
|
Me.gMonSetupTags.Name = "gMonSetupTags"
|
||||||
Me.gMonSetupTags.Size = New System.Drawing.Size(201, 22)
|
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..."
|
||||||
'
|
'
|
||||||
'gMonTools
|
'gMonTools
|
||||||
'
|
'
|
||||||
Me.gMonTools.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonToolsCleanMan, Me.gMonToolsCompact, Me.gMonToolsLog})
|
Me.gMonTools.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonToolsCompact, Me.gMonToolsLog, Me.gMonToolsSessions, Me.gMonToolsSyncGameID})
|
||||||
Me.gMonTools.Name = "gMonTools"
|
Me.gMonTools.Name = "gMonTools"
|
||||||
Me.gMonTools.Size = New System.Drawing.Size(47, 20)
|
Me.gMonTools.Size = New System.Drawing.Size(47, 20)
|
||||||
Me.gMonTools.Text = "&Tools"
|
Me.gMonTools.Text = "&Tools"
|
||||||
'
|
'
|
||||||
'gMonToolsCleanMan
|
|
||||||
'
|
|
||||||
Me.gMonToolsCleanMan.Name = "gMonToolsCleanMan"
|
|
||||||
Me.gMonToolsCleanMan.Size = New System.Drawing.Size(184, 22)
|
|
||||||
Me.gMonToolsCleanMan.Text = "Clean Local Ma&nifest"
|
|
||||||
'
|
|
||||||
'gMonToolsCompact
|
'gMonToolsCompact
|
||||||
'
|
'
|
||||||
Me.gMonToolsCompact.Name = "gMonToolsCompact"
|
Me.gMonToolsCompact.Name = "gMonToolsCompact"
|
||||||
Me.gMonToolsCompact.Size = New System.Drawing.Size(184, 22)
|
Me.gMonToolsCompact.Size = New System.Drawing.Size(179, 22)
|
||||||
Me.gMonToolsCompact.Text = "&Compact Databases"
|
Me.gMonToolsCompact.Text = "&Compact Databases"
|
||||||
'
|
'
|
||||||
'gMonToolsLog
|
'gMonToolsLog
|
||||||
'
|
'
|
||||||
Me.gMonToolsLog.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonLogClear, Me.gMonLogSave})
|
Me.gMonToolsLog.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonLogClear, Me.gMonLogSave})
|
||||||
Me.gMonToolsLog.Name = "gMonToolsLog"
|
Me.gMonToolsLog.Name = "gMonToolsLog"
|
||||||
Me.gMonToolsLog.Size = New System.Drawing.Size(184, 22)
|
Me.gMonToolsLog.Size = New System.Drawing.Size(179, 22)
|
||||||
Me.gMonToolsLog.Text = "&Log"
|
Me.gMonToolsLog.Text = "&Log"
|
||||||
'
|
'
|
||||||
'gMonLogClear
|
'gMonLogClear
|
||||||
@@ -382,6 +417,31 @@ Partial Class frmMain
|
|||||||
Me.gMonLogSave.Size = New System.Drawing.Size(101, 22)
|
Me.gMonLogSave.Size = New System.Drawing.Size(101, 22)
|
||||||
Me.gMonLogSave.Text = "&Save"
|
Me.gMonLogSave.Text = "&Save"
|
||||||
'
|
'
|
||||||
|
'gMonToolsSessions
|
||||||
|
'
|
||||||
|
Me.gMonToolsSessions.Name = "gMonToolsSessions"
|
||||||
|
Me.gMonToolsSessions.Size = New System.Drawing.Size(179, 22)
|
||||||
|
Me.gMonToolsSessions.Text = "&Session Viewer..."
|
||||||
|
'
|
||||||
|
'gMonToolsSyncGameID
|
||||||
|
'
|
||||||
|
Me.gMonToolsSyncGameID.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonToolsSyncGameIDOfficial, Me.gMonToolsSyncGameIDFile})
|
||||||
|
Me.gMonToolsSyncGameID.Name = "gMonToolsSyncGameID"
|
||||||
|
Me.gMonToolsSyncGameID.Size = New System.Drawing.Size(179, 22)
|
||||||
|
Me.gMonToolsSyncGameID.Text = "S&ync Game IDs"
|
||||||
|
'
|
||||||
|
'gMonToolsSyncGameIDOfficial
|
||||||
|
'
|
||||||
|
Me.gMonToolsSyncGameIDOfficial.Name = "gMonToolsSyncGameIDOfficial"
|
||||||
|
Me.gMonToolsSyncGameIDOfficial.Size = New System.Drawing.Size(142, 22)
|
||||||
|
Me.gMonToolsSyncGameIDOfficial.Text = "&Official List..."
|
||||||
|
'
|
||||||
|
'gMonToolsSyncGameIDFile
|
||||||
|
'
|
||||||
|
Me.gMonToolsSyncGameIDFile.Name = "gMonToolsSyncGameIDFile"
|
||||||
|
Me.gMonToolsSyncGameIDFile.Size = New System.Drawing.Size(142, 22)
|
||||||
|
Me.gMonToolsSyncGameIDFile.Text = "&File..."
|
||||||
|
'
|
||||||
'gMonHelp
|
'gMonHelp
|
||||||
'
|
'
|
||||||
Me.gMonHelp.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonHelpWebSite, Me.gMonHelpManual, Me.gMonHelpCheckforUpdates, Me.gMonHelpAbout})
|
Me.gMonHelp.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.gMonHelpWebSite, Me.gMonHelpManual, Me.gMonHelpCheckforUpdates, Me.gMonHelpAbout})
|
||||||
@@ -430,17 +490,11 @@ Partial Class frmMain
|
|||||||
Me.pbIcon.TabIndex = 9
|
Me.pbIcon.TabIndex = 9
|
||||||
Me.pbIcon.TabStop = False
|
Me.pbIcon.TabStop = False
|
||||||
'
|
'
|
||||||
'btnLogToggle
|
|
||||||
'
|
|
||||||
Me.btnLogToggle.Location = New System.Drawing.Point(437, 155)
|
|
||||||
Me.btnLogToggle.Name = "btnLogToggle"
|
|
||||||
Me.btnLogToggle.Size = New System.Drawing.Size(75, 23)
|
|
||||||
Me.btnLogToggle.TabIndex = 7
|
|
||||||
Me.btnLogToggle.Text = "Show &Log"
|
|
||||||
Me.btnLogToggle.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'lblGameTitle
|
'lblGameTitle
|
||||||
'
|
'
|
||||||
|
Me.lblGameTitle.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.lblGameTitle.AutoEllipsis = True
|
||||||
Me.lblGameTitle.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
Me.lblGameTitle.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
Me.lblGameTitle.Location = New System.Drawing.Point(66, 36)
|
Me.lblGameTitle.Location = New System.Drawing.Point(66, 36)
|
||||||
Me.lblGameTitle.Name = "lblGameTitle"
|
Me.lblGameTitle.Name = "lblGameTitle"
|
||||||
@@ -450,6 +504,8 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
'lblLastAction
|
'lblLastAction
|
||||||
'
|
'
|
||||||
|
Me.lblLastAction.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.lblLastAction.AutoEllipsis = True
|
Me.lblLastAction.AutoEllipsis = True
|
||||||
Me.lblLastAction.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
Me.lblLastAction.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
Me.lblLastAction.Location = New System.Drawing.Point(12, 165)
|
Me.lblLastAction.Location = New System.Drawing.Point(12, 165)
|
||||||
@@ -480,7 +536,8 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
'btnCancelOperation
|
'btnCancelOperation
|
||||||
'
|
'
|
||||||
Me.btnCancelOperation.Location = New System.Drawing.Point(437, 126)
|
Me.btnCancelOperation.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.btnCancelOperation.Location = New System.Drawing.Point(437, 155)
|
||||||
Me.btnCancelOperation.Name = "btnCancelOperation"
|
Me.btnCancelOperation.Name = "btnCancelOperation"
|
||||||
Me.btnCancelOperation.Size = New System.Drawing.Size(75, 23)
|
Me.btnCancelOperation.Size = New System.Drawing.Size(75, 23)
|
||||||
Me.btnCancelOperation.TabIndex = 6
|
Me.btnCancelOperation.TabIndex = 6
|
||||||
@@ -489,6 +546,8 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
'lblStatus1
|
'lblStatus1
|
||||||
'
|
'
|
||||||
|
Me.lblStatus1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.lblStatus1.AutoEllipsis = True
|
Me.lblStatus1.AutoEllipsis = True
|
||||||
Me.lblStatus1.Location = New System.Drawing.Point(66, 58)
|
Me.lblStatus1.Location = New System.Drawing.Point(66, 58)
|
||||||
Me.lblStatus1.Name = "lblStatus1"
|
Me.lblStatus1.Name = "lblStatus1"
|
||||||
@@ -497,6 +556,8 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
'lblStatus2
|
'lblStatus2
|
||||||
'
|
'
|
||||||
|
Me.lblStatus2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.lblStatus2.AutoEllipsis = True
|
Me.lblStatus2.AutoEllipsis = True
|
||||||
Me.lblStatus2.Location = New System.Drawing.Point(66, 74)
|
Me.lblStatus2.Location = New System.Drawing.Point(66, 74)
|
||||||
Me.lblStatus2.Name = "lblStatus2"
|
Me.lblStatus2.Name = "lblStatus2"
|
||||||
@@ -505,6 +566,8 @@ Partial Class frmMain
|
|||||||
'
|
'
|
||||||
'lblStatus3
|
'lblStatus3
|
||||||
'
|
'
|
||||||
|
Me.lblStatus3.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.lblStatus3.AutoEllipsis = True
|
Me.lblStatus3.AutoEllipsis = True
|
||||||
Me.lblStatus3.Location = New System.Drawing.Point(66, 90)
|
Me.lblStatus3.Location = New System.Drawing.Point(66, 90)
|
||||||
Me.lblStatus3.Name = "lblStatus3"
|
Me.lblStatus3.Name = "lblStatus3"
|
||||||
@@ -533,17 +596,13 @@ Partial Class frmMain
|
|||||||
Me.Controls.Add(Me.lblLastActionTitle)
|
Me.Controls.Add(Me.lblLastActionTitle)
|
||||||
Me.Controls.Add(Me.lblLastAction)
|
Me.Controls.Add(Me.lblLastAction)
|
||||||
Me.Controls.Add(Me.lblGameTitle)
|
Me.Controls.Add(Me.lblGameTitle)
|
||||||
Me.Controls.Add(Me.btnLogToggle)
|
|
||||||
Me.Controls.Add(Me.pbIcon)
|
Me.Controls.Add(Me.pbIcon)
|
||||||
Me.Controls.Add(Me.gMonStatusStrip)
|
Me.Controls.Add(Me.gMonStatusStrip)
|
||||||
Me.Controls.Add(Me.gMonMainMenu)
|
Me.Controls.Add(Me.gMonMainMenu)
|
||||||
Me.Controls.Add(Me.txtLog)
|
Me.Controls.Add(Me.txtLog)
|
||||||
Me.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
|
||||||
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
|
|
||||||
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
|
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
|
||||||
Me.KeyPreview = True
|
Me.KeyPreview = True
|
||||||
Me.MainMenuStrip = Me.gMonMainMenu
|
Me.MainMenuStrip = Me.gMonMainMenu
|
||||||
Me.MaximizeBox = False
|
|
||||||
Me.MinimizeBox = False
|
Me.MinimizeBox = False
|
||||||
Me.Name = "frmMain"
|
Me.Name = "frmMain"
|
||||||
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
|
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
|
||||||
@@ -586,7 +645,6 @@ Partial Class frmMain
|
|||||||
Friend WithEvents gMonTraySetupGameManager As System.Windows.Forms.ToolStripMenuItem
|
Friend WithEvents gMonTraySetupGameManager As System.Windows.Forms.ToolStripMenuItem
|
||||||
Friend WithEvents gMonTraySetupCustomVariables As System.Windows.Forms.ToolStripMenuItem
|
Friend WithEvents gMonTraySetupCustomVariables As System.Windows.Forms.ToolStripMenuItem
|
||||||
Friend WithEvents pbIcon As System.Windows.Forms.PictureBox
|
Friend WithEvents pbIcon As System.Windows.Forms.PictureBox
|
||||||
Friend WithEvents btnLogToggle As System.Windows.Forms.Button
|
|
||||||
Friend WithEvents lblGameTitle As System.Windows.Forms.Label
|
Friend WithEvents lblGameTitle As System.Windows.Forms.Label
|
||||||
Friend WithEvents lblLastAction As System.Windows.Forms.Label
|
Friend WithEvents lblLastAction As System.Windows.Forms.Label
|
||||||
Friend WithEvents lblLastActionTitle As System.Windows.Forms.Label
|
Friend WithEvents lblLastActionTitle As System.Windows.Forms.Label
|
||||||
@@ -611,8 +669,6 @@ Partial Class frmMain
|
|||||||
Friend WithEvents gMonTrayNotification As System.Windows.Forms.ToolStripMenuItem
|
Friend WithEvents gMonTrayNotification As System.Windows.Forms.ToolStripMenuItem
|
||||||
Friend WithEvents gMonHelpWebSite As System.Windows.Forms.ToolStripMenuItem
|
Friend WithEvents gMonHelpWebSite As System.Windows.Forms.ToolStripMenuItem
|
||||||
Friend WithEvents pbTime As System.Windows.Forms.PictureBox
|
Friend WithEvents pbTime As System.Windows.Forms.PictureBox
|
||||||
Friend WithEvents gMonTrayToolsCleanMan As System.Windows.Forms.ToolStripMenuItem
|
|
||||||
Friend WithEvents gMonToolsCleanMan As System.Windows.Forms.ToolStripMenuItem
|
|
||||||
Friend WithEvents gMonToolsLog As ToolStripMenuItem
|
Friend WithEvents gMonToolsLog As ToolStripMenuItem
|
||||||
Friend WithEvents gMonLogClear As ToolStripMenuItem
|
Friend WithEvents gMonLogClear As ToolStripMenuItem
|
||||||
Friend WithEvents gMonLogSave As ToolStripMenuItem
|
Friend WithEvents gMonLogSave As ToolStripMenuItem
|
||||||
@@ -621,4 +677,14 @@ Partial Class frmMain
|
|||||||
Friend WithEvents gMonTrayLogSave As ToolStripMenuItem
|
Friend WithEvents gMonTrayLogSave As ToolStripMenuItem
|
||||||
Friend WithEvents gMonStripAdminButton As System.Windows.Forms.ToolStripStatusLabel
|
Friend WithEvents gMonStripAdminButton As System.Windows.Forms.ToolStripStatusLabel
|
||||||
Friend WithEvents gMonStripStatusButton As System.Windows.Forms.ToolStripStatusLabel
|
Friend WithEvents gMonStripStatusButton As System.Windows.Forms.ToolStripStatusLabel
|
||||||
|
Friend WithEvents gMonToolsSessions As ToolStripMenuItem
|
||||||
|
Friend WithEvents gMonTrayToolsSessions As ToolStripMenuItem
|
||||||
|
Friend WithEvents gMonToolsSyncGameID As ToolStripMenuItem
|
||||||
|
Friend WithEvents gMonToolsSyncGameIDOfficial As ToolStripMenuItem
|
||||||
|
Friend WithEvents gMonToolsSyncGameIDFile As ToolStripMenuItem
|
||||||
|
Friend WithEvents gMonTrayToolsSyncGameID As ToolStripMenuItem
|
||||||
|
Friend WithEvents gMonTrayToolsSyncGameIDOfficial As ToolStripMenuItem
|
||||||
|
Friend WithEvents gMonTrayToolsSyncGameIDFile As ToolStripMenuItem
|
||||||
|
Friend WithEvents gMonTraySetupProcessManager As ToolStripMenuItem
|
||||||
|
Friend WithEvents gMonSetupProcessManager As ToolStripMenuItem
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
+544
-161
File diff suppressed because it is too large
Load Diff
Generated
-105
@@ -1,105 +0,0 @@
|
|||||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
|
||||||
Partial Class frmManifestViewer
|
|
||||||
Inherits System.Windows.Forms.Form
|
|
||||||
|
|
||||||
'Form overrides dispose to clean up the component list.
|
|
||||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
|
||||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
|
||||||
Try
|
|
||||||
If disposing AndAlso components IsNot Nothing Then
|
|
||||||
components.Dispose()
|
|
||||||
End If
|
|
||||||
Finally
|
|
||||||
MyBase.Dispose(disposing)
|
|
||||||
End Try
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
'Required by the Windows Form Designer
|
|
||||||
Private components As System.ComponentModel.IContainer
|
|
||||||
|
|
||||||
'NOTE: The following procedure is required by the Windows Form Designer
|
|
||||||
'It can be modified using the Windows Form Designer.
|
|
||||||
'Do not modify it using the code editor.
|
|
||||||
<System.Diagnostics.DebuggerStepThrough()> _
|
|
||||||
Private Sub InitializeComponent()
|
|
||||||
Me.dgView = New System.Windows.Forms.DataGridView()
|
|
||||||
Me.btnCancel = New System.Windows.Forms.Button()
|
|
||||||
Me.lblError = New System.Windows.Forms.Label()
|
|
||||||
Me.fbBrowser = New System.Windows.Forms.FolderBrowserDialog()
|
|
||||||
Me.cboManifest = New System.Windows.Forms.ComboBox()
|
|
||||||
CType(Me.dgView, System.ComponentModel.ISupportInitialize).BeginInit()
|
|
||||||
Me.SuspendLayout()
|
|
||||||
'
|
|
||||||
'dgView
|
|
||||||
'
|
|
||||||
Me.dgView.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
|
||||||
Or System.Windows.Forms.AnchorStyles.Left) _
|
|
||||||
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
|
||||||
Me.dgView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
|
|
||||||
Me.dgView.BackgroundColor = System.Drawing.SystemColors.Window
|
|
||||||
Me.dgView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
|
|
||||||
Me.dgView.Location = New System.Drawing.Point(12, 12)
|
|
||||||
Me.dgView.Name = "dgView"
|
|
||||||
Me.dgView.RowHeadersVisible = False
|
|
||||||
Me.dgView.Size = New System.Drawing.Size(960, 338)
|
|
||||||
Me.dgView.TabIndex = 0
|
|
||||||
'
|
|
||||||
'btnCancel
|
|
||||||
'
|
|
||||||
Me.btnCancel.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
|
||||||
Me.btnCancel.Location = New System.Drawing.Point(897, 356)
|
|
||||||
Me.btnCancel.Name = "btnCancel"
|
|
||||||
Me.btnCancel.Size = New System.Drawing.Size(75, 23)
|
|
||||||
Me.btnCancel.TabIndex = 2
|
|
||||||
Me.btnCancel.Text = "C&lose"
|
|
||||||
Me.btnCancel.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'lblError
|
|
||||||
'
|
|
||||||
Me.lblError.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
|
|
||||||
Me.lblError.AutoSize = True
|
|
||||||
Me.lblError.Location = New System.Drawing.Point(139, 362)
|
|
||||||
Me.lblError.Name = "lblError"
|
|
||||||
Me.lblError.Size = New System.Drawing.Size(54, 13)
|
|
||||||
Me.lblError.TabIndex = 5
|
|
||||||
Me.lblError.Text = "Info Label"
|
|
||||||
'
|
|
||||||
'fbBrowser
|
|
||||||
'
|
|
||||||
Me.fbBrowser.ShowNewFolderButton = False
|
|
||||||
'
|
|
||||||
'cboManifest
|
|
||||||
'
|
|
||||||
Me.cboManifest.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
|
|
||||||
Me.cboManifest.FormattingEnabled = True
|
|
||||||
Me.cboManifest.Location = New System.Drawing.Point(12, 359)
|
|
||||||
Me.cboManifest.Name = "cboManifest"
|
|
||||||
Me.cboManifest.Size = New System.Drawing.Size(121, 21)
|
|
||||||
Me.cboManifest.TabIndex = 6
|
|
||||||
'
|
|
||||||
'frmManifestViewer
|
|
||||||
'
|
|
||||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
|
||||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
|
||||||
Me.ClientSize = New System.Drawing.Size(984, 392)
|
|
||||||
Me.Controls.Add(Me.cboManifest)
|
|
||||||
Me.Controls.Add(Me.lblError)
|
|
||||||
Me.Controls.Add(Me.btnCancel)
|
|
||||||
Me.Controls.Add(Me.dgView)
|
|
||||||
Me.MinimizeBox = False
|
|
||||||
Me.Name = "frmManifestViewer"
|
|
||||||
Me.ShowIcon = False
|
|
||||||
Me.ShowInTaskbar = False
|
|
||||||
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
|
||||||
Me.Text = "Manifest Viewer"
|
|
||||||
CType(Me.dgView, System.ComponentModel.ISupportInitialize).EndInit()
|
|
||||||
Me.ResumeLayout(False)
|
|
||||||
Me.PerformLayout()
|
|
||||||
|
|
||||||
End Sub
|
|
||||||
Friend WithEvents dgView As System.Windows.Forms.DataGridView
|
|
||||||
Friend WithEvents btnCancel As System.Windows.Forms.Button
|
|
||||||
Friend WithEvents lblError As System.Windows.Forms.Label
|
|
||||||
Friend WithEvents fbBrowser As System.Windows.Forms.FolderBrowserDialog
|
|
||||||
Friend WithEvents cboManifest As System.Windows.Forms.ComboBox
|
|
||||||
End Class
|
|
||||||
@@ -1,149 +0,0 @@
|
|||||||
Public Class frmManifestViewer
|
|
||||||
|
|
||||||
Private bShutdown As Boolean = False
|
|
||||||
Private oLocalManifest As SortedList
|
|
||||||
Private oRemoteManfiest As SortedList
|
|
||||||
Private oRestoreInfo As clsBackup
|
|
||||||
Private oDataTable As DataTable
|
|
||||||
|
|
||||||
Property RestoreInfo As clsBackup
|
|
||||||
Get
|
|
||||||
Return oRestoreInfo
|
|
||||||
End Get
|
|
||||||
Set(value As clsBackup)
|
|
||||||
oRestoreInfo = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Property LocalManifestData As SortedList
|
|
||||||
Get
|
|
||||||
Return oLocalManifest
|
|
||||||
End Get
|
|
||||||
Set(value As SortedList)
|
|
||||||
oLocalManifest = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Property RemoteManifestData As SortedList
|
|
||||||
Get
|
|
||||||
Return oRemoteManfiest
|
|
||||||
End Get
|
|
||||||
Set(value As SortedList)
|
|
||||||
oRemoteManfiest = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private Sub FormatManifest(ByVal iManifest As Integer)
|
|
||||||
Dim oRow As Object()
|
|
||||||
Dim oLoadData As SortedList
|
|
||||||
|
|
||||||
If iManifest = 1 Then
|
|
||||||
oLoadData = LocalManifestData
|
|
||||||
Else
|
|
||||||
oLoadData = RemoteManifestData
|
|
||||||
End If
|
|
||||||
|
|
||||||
oDataTable = New DataTable
|
|
||||||
|
|
||||||
'Setup Columns
|
|
||||||
oDataTable.Columns.Add("Name")
|
|
||||||
oDataTable.Columns.Add("Backup Path")
|
|
||||||
oDataTable.Columns.Add("Restore Path")
|
|
||||||
oDataTable.Columns.Add("Absolute Path")
|
|
||||||
oDataTable.Columns.Add("Date Updated")
|
|
||||||
oDataTable.Columns.Add("Updated By")
|
|
||||||
|
|
||||||
|
|
||||||
'Setup Data Types
|
|
||||||
oDataTable.Columns(0).DataType = GetType(String)
|
|
||||||
oDataTable.Columns(1).DataType = GetType(String)
|
|
||||||
oDataTable.Columns(2).DataType = GetType(String)
|
|
||||||
oDataTable.Columns(3).DataType = GetType(Boolean)
|
|
||||||
oDataTable.Columns(4).DataType = GetType(DateTime)
|
|
||||||
oDataTable.Columns(5).DataType = GetType(String)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
For Each o As clsBackup In oLoadData.Values
|
|
||||||
oRow = New Object() {o.Name, o.FileName, o.RestorePath, o.AbsolutePath, o.DateUpdated, o.UpdatedBy}
|
|
||||||
oDataTable.Rows.Add(oRow)
|
|
||||||
Next
|
|
||||||
|
|
||||||
'Sort
|
|
||||||
oDataTable.DefaultView.Sort = "Name asc"
|
|
||||||
dgView.DataSource = oDataTable
|
|
||||||
|
|
||||||
'Setup Column Widths
|
|
||||||
dgView.Columns(0).MinimumWidth = 100
|
|
||||||
dgView.Columns(1).MinimumWidth = 175
|
|
||||||
dgView.Columns(2).MinimumWidth = 175
|
|
||||||
dgView.Columns(3).MinimumWidth = 60
|
|
||||||
dgView.Columns(4).MinimumWidth = 125
|
|
||||||
dgView.Columns(5).MinimumWidth = 100
|
|
||||||
|
|
||||||
dgView.Columns(0).FillWeight = 100
|
|
||||||
dgView.Columns(1).FillWeight = 100
|
|
||||||
dgView.Columns(2).FillWeight = 100
|
|
||||||
dgView.Columns(3).FillWeight = 25
|
|
||||||
dgView.Columns(4).FillWeight = 50
|
|
||||||
dgView.Columns(5).FillWeight = 50
|
|
||||||
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub LoadCombo()
|
|
||||||
Dim oCombo As New List(Of KeyValuePair(Of Integer, String))
|
|
||||||
oCombo.Add(New KeyValuePair(Of Integer, String)(1, "Local Manifest"))
|
|
||||||
oCombo.Add(New KeyValuePair(Of Integer, String)(2, "Remote Manifest"))
|
|
||||||
cboManifest.DataSource = oCombo
|
|
||||||
cboManifest.ValueMember = "key"
|
|
||||||
cboManifest.DisplayMember = "value"
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub frmManifestInfo_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
|
|
||||||
dgView.ReadOnly = True
|
|
||||||
dgView.AllowUserToAddRows = False
|
|
||||||
lblError.Text = String.Empty
|
|
||||||
LoadCombo()
|
|
||||||
FormatManifest(CInt(cboManifest.SelectedValue))
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub dgView_CellStateChanged(sender As Object, e As DataGridViewCellStateChangedEventArgs) Handles dgView.CellStateChanged
|
|
||||||
lblError.ForeColor = Color.Black
|
|
||||||
|
|
||||||
Select Case dgView.Columns(e.Cell.ColumnIndex).Index
|
|
||||||
Case 0
|
|
||||||
lblError.Text = "The name of the application."
|
|
||||||
Case 1
|
|
||||||
lblError.Text = "The location of the backup file to restore."
|
|
||||||
Case 2
|
|
||||||
lblError.Text = "When the backup file was updated from this computer."
|
|
||||||
Case 3
|
|
||||||
lblError.Text = "The name of this computer."
|
|
||||||
Case 4
|
|
||||||
lblError.Text = "When the local backup file was last updated."
|
|
||||||
Case 5
|
|
||||||
lblError.Text = "The name of the computer that performed the last backup."
|
|
||||||
End Select
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub btnCancel_Click(sender As Object, e As EventArgs) Handles btnCancel.Click
|
|
||||||
Me.Close()
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub frmGameInfo_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing
|
|
||||||
|
|
||||||
If Not bShutdown Then
|
|
||||||
If MsgBox("Are you sure you want to close?", MsgBoxStyle.YesNo, "ABM") = MsgBoxResult.Yes Then
|
|
||||||
bShutdown = True
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
|
|
||||||
If Not bShutdown Then
|
|
||||||
e.Cancel = True
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub cboManifest_SelectionChangeCommitted(sender As Object, e As EventArgs) Handles cboManifest.SelectionChangeCommitted
|
|
||||||
FormatManifest(CInt(cboManifest.SelectedValue))
|
|
||||||
End Sub
|
|
||||||
End Class
|
|
||||||
Generated
+242
@@ -0,0 +1,242 @@
|
|||||||
|
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
||||||
|
Partial Class frmProcessManager
|
||||||
|
Inherits System.Windows.Forms.Form
|
||||||
|
|
||||||
|
'Form overrides dispose to clean up the component list.
|
||||||
|
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||||
|
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
|
Try
|
||||||
|
If disposing AndAlso components IsNot Nothing Then
|
||||||
|
components.Dispose()
|
||||||
|
End If
|
||||||
|
Finally
|
||||||
|
MyBase.Dispose(disposing)
|
||||||
|
End Try
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Required by the Windows Form Designer
|
||||||
|
Private components As System.ComponentModel.IContainer
|
||||||
|
|
||||||
|
'NOTE: The following procedure is required by the Windows Form Designer
|
||||||
|
'It can be modified using the Windows Form Designer.
|
||||||
|
'Do not modify it using the code editor.
|
||||||
|
<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()
|
||||||
|
Me.txtName = New System.Windows.Forms.TextBox()
|
||||||
|
Me.txtPath = New System.Windows.Forms.TextBox()
|
||||||
|
Me.lblProcess = New System.Windows.Forms.Label()
|
||||||
|
Me.lblName = New System.Windows.Forms.Label()
|
||||||
|
Me.btnClose = New System.Windows.Forms.Button()
|
||||||
|
Me.btnDelete = New System.Windows.Forms.Button()
|
||||||
|
Me.btnAdd = New System.Windows.Forms.Button()
|
||||||
|
Me.lstProcesses = New System.Windows.Forms.ListBox()
|
||||||
|
Me.txtID = New System.Windows.Forms.TextBox()
|
||||||
|
Me.btnCancel = New System.Windows.Forms.Button()
|
||||||
|
Me.btnSave = New System.Windows.Forms.Button()
|
||||||
|
Me.grpProcess.SuspendLayout()
|
||||||
|
Me.SuspendLayout()
|
||||||
|
'
|
||||||
|
'grpProcess
|
||||||
|
'
|
||||||
|
Me.grpProcess.Controls.Add(Me.chkKillProcess)
|
||||||
|
Me.grpProcess.Controls.Add(Me.txtArguments)
|
||||||
|
Me.grpProcess.Controls.Add(Me.lblArguments)
|
||||||
|
Me.grpProcess.Controls.Add(Me.btnProcessBrowse)
|
||||||
|
Me.grpProcess.Controls.Add(Me.txtName)
|
||||||
|
Me.grpProcess.Controls.Add(Me.txtPath)
|
||||||
|
Me.grpProcess.Controls.Add(Me.lblProcess)
|
||||||
|
Me.grpProcess.Controls.Add(Me.lblName)
|
||||||
|
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 = 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(181, 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 = 3
|
||||||
|
'
|
||||||
|
'lblArguments
|
||||||
|
'
|
||||||
|
Me.lblArguments.AutoSize = True
|
||||||
|
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 = 0
|
||||||
|
Me.lblArguments.Text = "Arguments:"
|
||||||
|
'
|
||||||
|
'btnProcessBrowse
|
||||||
|
'
|
||||||
|
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 = 2
|
||||||
|
Me.btnProcessBrowse.Text = "..."
|
||||||
|
Me.btnProcessBrowse.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'txtName
|
||||||
|
'
|
||||||
|
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 = 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 = 1
|
||||||
|
'
|
||||||
|
'lblProcess
|
||||||
|
'
|
||||||
|
Me.lblProcess.AutoSize = True
|
||||||
|
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 = 0
|
||||||
|
Me.lblProcess.Text = "Process:"
|
||||||
|
'
|
||||||
|
'lblName
|
||||||
|
'
|
||||||
|
Me.lblName.AutoSize = True
|
||||||
|
Me.lblName.Location = New System.Drawing.Point(6, 22)
|
||||||
|
Me.lblName.Name = "lblName"
|
||||||
|
Me.lblName.Size = New System.Drawing.Size(38, 13)
|
||||||
|
Me.lblName.TabIndex = 0
|
||||||
|
Me.lblName.Text = "Name:"
|
||||||
|
'
|
||||||
|
'btnClose
|
||||||
|
'
|
||||||
|
Me.btnClose.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
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 = 6
|
||||||
|
Me.btnClose.Text = "C&lose"
|
||||||
|
Me.btnClose.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'btnDelete
|
||||||
|
'
|
||||||
|
Me.btnDelete.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.btnDelete.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
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 = 2
|
||||||
|
Me.btnDelete.Text = "-"
|
||||||
|
Me.btnDelete.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'btnAdd
|
||||||
|
'
|
||||||
|
Me.btnAdd.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.btnAdd.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
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 = 1
|
||||||
|
Me.btnAdd.Text = "+"
|
||||||
|
Me.btnAdd.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'lstProcesses
|
||||||
|
'
|
||||||
|
Me.lstProcesses.FormattingEnabled = True
|
||||||
|
Me.lstProcesses.Location = New System.Drawing.Point(12, 12)
|
||||||
|
Me.lstProcesses.Name = "lstProcesses"
|
||||||
|
Me.lstProcesses.Size = New System.Drawing.Size(220, 212)
|
||||||
|
Me.lstProcesses.Sorted = True
|
||||||
|
Me.lstProcesses.TabIndex = 0
|
||||||
|
'
|
||||||
|
'txtID
|
||||||
|
'
|
||||||
|
Me.txtID.Enabled = False
|
||||||
|
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 = 0
|
||||||
|
Me.txtID.TabStop = False
|
||||||
|
Me.txtID.Visible = False
|
||||||
|
'
|
||||||
|
'btnCancel
|
||||||
|
'
|
||||||
|
Me.btnCancel.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
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 = 5
|
||||||
|
Me.btnCancel.Text = "&Cancel"
|
||||||
|
Me.btnCancel.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'btnSave
|
||||||
|
'
|
||||||
|
Me.btnSave.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
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 = 4
|
||||||
|
Me.btnSave.Text = "&Save"
|
||||||
|
Me.btnSave.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'frmProcessManager
|
||||||
|
'
|
||||||
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||||
|
Me.ClientSize = New System.Drawing.Size(584, 261)
|
||||||
|
Me.Controls.Add(Me.grpProcess)
|
||||||
|
Me.Controls.Add(Me.btnClose)
|
||||||
|
Me.Controls.Add(Me.btnDelete)
|
||||||
|
Me.Controls.Add(Me.btnAdd)
|
||||||
|
Me.Controls.Add(Me.lstProcesses)
|
||||||
|
Me.Controls.Add(Me.txtID)
|
||||||
|
Me.Controls.Add(Me.btnCancel)
|
||||||
|
Me.Controls.Add(Me.btnSave)
|
||||||
|
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
|
||||||
|
Me.MaximizeBox = False
|
||||||
|
Me.MinimizeBox = False
|
||||||
|
Me.Name = "frmProcessManager"
|
||||||
|
Me.ShowIcon = False
|
||||||
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||||
|
Me.Text = "Process Manager"
|
||||||
|
Me.grpProcess.ResumeLayout(False)
|
||||||
|
Me.grpProcess.PerformLayout()
|
||||||
|
Me.ResumeLayout(False)
|
||||||
|
Me.PerformLayout()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend WithEvents grpProcess As GroupBox
|
||||||
|
Friend WithEvents txtArguments As TextBox
|
||||||
|
Friend WithEvents lblArguments As Label
|
||||||
|
Friend WithEvents btnProcessBrowse As Button
|
||||||
|
Friend WithEvents txtName As TextBox
|
||||||
|
Friend WithEvents txtPath As TextBox
|
||||||
|
Friend WithEvents lblProcess As Label
|
||||||
|
Friend WithEvents lblName As Label
|
||||||
|
Friend WithEvents btnClose As Button
|
||||||
|
Friend WithEvents btnDelete As Button
|
||||||
|
Friend WithEvents btnAdd As Button
|
||||||
|
Friend WithEvents lstProcesses As ListBox
|
||||||
|
Friend WithEvents txtID As TextBox
|
||||||
|
Friend WithEvents btnCancel As Button
|
||||||
|
Friend WithEvents btnSave As Button
|
||||||
|
Friend WithEvents chkKillProcess As CheckBox
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
@@ -0,0 +1,371 @@
|
|||||||
|
Imports GBM.My.Resources
|
||||||
|
Imports System.IO
|
||||||
|
|
||||||
|
Public Class frmProcessManager
|
||||||
|
Dim hshProcessData As Hashtable
|
||||||
|
Private bIsDirty As Boolean = False
|
||||||
|
Private bIsLoading As Boolean = False
|
||||||
|
Private oCurrentProcess As clsProcess
|
||||||
|
|
||||||
|
Private Property IsDirty As Boolean
|
||||||
|
Get
|
||||||
|
Return bIsDirty
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bIsDirty = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Property IsLoading As Boolean
|
||||||
|
Get
|
||||||
|
Return bIsLoading
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bIsLoading = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Enum eModes As Integer
|
||||||
|
View = 1
|
||||||
|
Edit = 2
|
||||||
|
Add = 3
|
||||||
|
Disabled = 4
|
||||||
|
End Enum
|
||||||
|
|
||||||
|
Private eCurrentMode As eModes = eModes.Disabled
|
||||||
|
|
||||||
|
Private Property ProcessData As Hashtable
|
||||||
|
Get
|
||||||
|
Return hshProcessData
|
||||||
|
End Get
|
||||||
|
Set(value As Hashtable)
|
||||||
|
hshProcessData = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Sub ProcessBrowse()
|
||||||
|
Dim sDefaultFolder As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
|
||||||
|
Dim sCurrentPath As String = txtPath.Text
|
||||||
|
Dim sNewPath As String
|
||||||
|
|
||||||
|
If sCurrentPath <> String.Empty Then
|
||||||
|
sCurrentPath = Path.GetDirectoryName(txtPath.Text)
|
||||||
|
If Directory.Exists(sCurrentPath) Then
|
||||||
|
sDefaultFolder = sCurrentPath
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
sNewPath = mgrCommon.OpenFileBrowser("PM_Process", frmProcessManager_ChooseProcess, "exe",
|
||||||
|
frmProcessManager_Executable, sDefaultFolder, False, True)
|
||||||
|
|
||||||
|
If sNewPath <> String.Empty Then
|
||||||
|
txtPath.Text = sNewPath
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub LoadData()
|
||||||
|
ProcessData = mgrProcess.ReadProcesses
|
||||||
|
lstProcesses.Items.Clear()
|
||||||
|
FormatAndFillList()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Function HandleDirty() As MsgBoxResult
|
||||||
|
Dim oResult As MsgBoxResult
|
||||||
|
|
||||||
|
oResult = mgrCommon.ShowMessage(App_ConfirmDirty, MsgBoxStyle.YesNoCancel)
|
||||||
|
|
||||||
|
Select Case oResult
|
||||||
|
Case MsgBoxResult.Yes
|
||||||
|
IsDirty = False
|
||||||
|
Case MsgBoxResult.No
|
||||||
|
IsDirty = False
|
||||||
|
Case MsgBoxResult.Cancel
|
||||||
|
'No Change
|
||||||
|
End Select
|
||||||
|
|
||||||
|
Return oResult
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Sub FormatAndFillList()
|
||||||
|
IsLoading = True
|
||||||
|
|
||||||
|
For Each oProcess As clsProcess In ProcessData.Values
|
||||||
|
lstProcesses.Items.Add(oProcess.Name)
|
||||||
|
Next
|
||||||
|
|
||||||
|
IsLoading = False
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub FillData()
|
||||||
|
IsLoading = True
|
||||||
|
|
||||||
|
oCurrentProcess = DirectCast(ProcessData(lstProcesses.SelectedItems(0).ToString), clsProcess)
|
||||||
|
|
||||||
|
txtID.Text = oCurrentProcess.ID
|
||||||
|
txtName.Text = oCurrentProcess.Name
|
||||||
|
txtPath.Text = oCurrentProcess.Path
|
||||||
|
txtArguments.Text = oCurrentProcess.Args
|
||||||
|
chkKillProcess.Checked = oCurrentProcess.Kill
|
||||||
|
|
||||||
|
IsLoading = False
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub DirtyCheck_ValueChanged(sender As Object, e As EventArgs)
|
||||||
|
If Not IsLoading Then
|
||||||
|
IsDirty = True
|
||||||
|
If Not eCurrentMode = eModes.Add Then EditProcess()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub AssignDirtyHandlers(ByVal oCtls As GroupBox.ControlCollection)
|
||||||
|
For Each ctl As Control In oCtls
|
||||||
|
If TypeOf ctl Is TextBox Then
|
||||||
|
AddHandler DirectCast(ctl, TextBox).TextChanged, AddressOf DirtyCheck_ValueChanged
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub WipeControls(ByVal oCtls As GroupBox.ControlCollection)
|
||||||
|
For Each ctl As Control In oCtls
|
||||||
|
If TypeOf ctl Is TextBox Then
|
||||||
|
DirectCast(ctl, TextBox).Text = String.Empty
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
txtID.Text = String.Empty
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ModeChange()
|
||||||
|
IsLoading = True
|
||||||
|
|
||||||
|
Select Case eCurrentMode
|
||||||
|
Case eModes.Add
|
||||||
|
grpProcess.Enabled = True
|
||||||
|
WipeControls(grpProcess.Controls)
|
||||||
|
btnSave.Enabled = True
|
||||||
|
btnCancel.Enabled = True
|
||||||
|
btnAdd.Enabled = False
|
||||||
|
btnDelete.Enabled = False
|
||||||
|
lstProcesses.Enabled = False
|
||||||
|
chkKillProcess.Checked = True
|
||||||
|
Case eModes.Edit
|
||||||
|
lstProcesses.Enabled = False
|
||||||
|
grpProcess.Enabled = True
|
||||||
|
btnSave.Enabled = True
|
||||||
|
btnCancel.Enabled = True
|
||||||
|
btnAdd.Enabled = False
|
||||||
|
btnDelete.Enabled = False
|
||||||
|
Case eModes.View
|
||||||
|
lstProcesses.Enabled = True
|
||||||
|
grpProcess.Enabled = True
|
||||||
|
btnSave.Enabled = False
|
||||||
|
btnCancel.Enabled = False
|
||||||
|
btnAdd.Enabled = True
|
||||||
|
btnDelete.Enabled = True
|
||||||
|
Case eModes.Disabled
|
||||||
|
lstProcesses.Enabled = True
|
||||||
|
WipeControls(grpProcess.Controls)
|
||||||
|
grpProcess.Enabled = False
|
||||||
|
btnSave.Enabled = False
|
||||||
|
btnCancel.Enabled = False
|
||||||
|
btnAdd.Enabled = True
|
||||||
|
btnDelete.Enabled = True
|
||||||
|
End Select
|
||||||
|
|
||||||
|
IsLoading = False
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub EditProcess()
|
||||||
|
eCurrentMode = eModes.Edit
|
||||||
|
ModeChange()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub AddProcess()
|
||||||
|
eCurrentMode = eModes.Add
|
||||||
|
ModeChange()
|
||||||
|
txtName.Focus()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CancelEdit()
|
||||||
|
If bIsDirty Then
|
||||||
|
Select Case HandleDirty()
|
||||||
|
Case MsgBoxResult.Yes
|
||||||
|
SaveProcess()
|
||||||
|
Case MsgBoxResult.No
|
||||||
|
If lstProcesses.SelectedItems.Count > 0 Then
|
||||||
|
eCurrentMode = eModes.View
|
||||||
|
ModeChange()
|
||||||
|
FillData()
|
||||||
|
lstProcesses.Focus()
|
||||||
|
Else
|
||||||
|
eCurrentMode = eModes.Disabled
|
||||||
|
ModeChange()
|
||||||
|
End If
|
||||||
|
Case MsgBoxResult.Cancel
|
||||||
|
'Do Nothing
|
||||||
|
End Select
|
||||||
|
Else
|
||||||
|
If lstProcesses.SelectedItems.Count > 0 Then
|
||||||
|
eCurrentMode = eModes.View
|
||||||
|
ModeChange()
|
||||||
|
FillData()
|
||||||
|
lstProcesses.Focus()
|
||||||
|
Else
|
||||||
|
eCurrentMode = eModes.Disabled
|
||||||
|
ModeChange()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub SaveProcess()
|
||||||
|
Dim oProcess As New clsProcess
|
||||||
|
Dim bSuccess As Boolean = False
|
||||||
|
|
||||||
|
If txtID.Text <> String.Empty Then
|
||||||
|
oProcess.ID = txtID.Text
|
||||||
|
End If
|
||||||
|
oProcess.Name = txtName.Text
|
||||||
|
oProcess.Path = txtPath.Text
|
||||||
|
oProcess.Args = txtArguments.Text
|
||||||
|
oProcess.Kill = chkKillProcess.Checked
|
||||||
|
|
||||||
|
Select Case eCurrentMode
|
||||||
|
Case eModes.Add
|
||||||
|
If CoreValidatation(oProcess) Then
|
||||||
|
bSuccess = True
|
||||||
|
mgrProcess.DoProcessAdd(oProcess)
|
||||||
|
eCurrentMode = eModes.View
|
||||||
|
End If
|
||||||
|
Case eModes.Edit
|
||||||
|
If CoreValidatation(oProcess) Then
|
||||||
|
bSuccess = True
|
||||||
|
mgrProcess.DoProcessUpdate(oProcess)
|
||||||
|
eCurrentMode = eModes.View
|
||||||
|
End If
|
||||||
|
End Select
|
||||||
|
|
||||||
|
If bSuccess Then
|
||||||
|
IsDirty = False
|
||||||
|
LoadData()
|
||||||
|
ModeChange()
|
||||||
|
If eCurrentMode = eModes.View Then lstProcesses.SelectedIndex = lstProcesses.Items.IndexOf(oProcess.Name)
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub DeleteProcess()
|
||||||
|
Dim oProcess As clsProcess
|
||||||
|
|
||||||
|
If lstProcesses.SelectedItems.Count > 0 Then
|
||||||
|
oProcess = DirectCast(ProcessData(lstProcesses.SelectedItems(0).ToString), clsProcess)
|
||||||
|
|
||||||
|
If mgrCommon.ShowMessage(frmProcessManager_ConfirmDelete, oProcess.Name, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
|
||||||
|
mgrProcess.DoProcessDelete(oProcess.ID)
|
||||||
|
LoadData()
|
||||||
|
eCurrentMode = eModes.Disabled
|
||||||
|
ModeChange()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub SwitchProcess()
|
||||||
|
If lstProcesses.SelectedItems.Count > 0 Then
|
||||||
|
eCurrentMode = eModes.View
|
||||||
|
FillData()
|
||||||
|
ModeChange()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Function CoreValidatation(ByVal oProcess As clsProcess) As Boolean
|
||||||
|
If txtName.Text.Trim = String.Empty Then
|
||||||
|
mgrCommon.ShowMessage(frmProcessManager_ErrorValidName, MsgBoxStyle.Exclamation)
|
||||||
|
txtName.Focus()
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If txtPath.Text.Trim = String.Empty Then
|
||||||
|
mgrCommon.ShowMessage(frmProcessManager_ErrorValidPath, MsgBoxStyle.Exclamation)
|
||||||
|
txtPath.Focus()
|
||||||
|
Return False
|
||||||
|
Else
|
||||||
|
If Not File.Exists(txtPath.Text.Trim) Then
|
||||||
|
mgrCommon.ShowMessage(frmProcessManager_ErrorPathNotFound, MsgBoxStyle.Exclamation)
|
||||||
|
txtPath.Focus()
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
If mgrProcess.DoCheckDuplicate(oProcess.Name, oProcess.ID) Then
|
||||||
|
mgrCommon.ShowMessage(frmProcessManager_ErrorDupe, MsgBoxStyle.Exclamation)
|
||||||
|
txtName.Focus()
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
|
||||||
|
Return True
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Sub SetForm()
|
||||||
|
'Set Form Name
|
||||||
|
Me.Text = frmProcessManager_FormName
|
||||||
|
|
||||||
|
'Set Form Text
|
||||||
|
btnCancel.Text = frmProcessManager_btnCancel
|
||||||
|
btnSave.Text = frmProcessManager_btnSave
|
||||||
|
grpProcess.Text = frmProcessManager_grpProcess
|
||||||
|
btnProcessBrowse.Text = frmProcessManager_btnProcessBrowse
|
||||||
|
lblProcess.Text = frmProcessManager_lblPath
|
||||||
|
lblName.Text = frmProcessManager_lblName
|
||||||
|
btnClose.Text = frmProcessManager_btnClose
|
||||||
|
btnDelete.Text = frmProcessManager_btnDelete
|
||||||
|
btnAdd.Text = frmProcessManager_btnAdd
|
||||||
|
chkKillProcess.Text = frmProcessManager_chkKillProcess
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub frmProcessManager_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||||
|
SetForm()
|
||||||
|
LoadData()
|
||||||
|
ModeChange()
|
||||||
|
AssignDirtyHandlers(grpProcess.Controls)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub lstProcesses_SelectedIndexChanged(sender As Object, e As EventArgs) Handles lstProcesses.SelectedIndexChanged
|
||||||
|
SwitchProcess()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnAdd_Click(sender As Object, e As EventArgs) Handles btnAdd.Click
|
||||||
|
AddProcess()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnDelete_Click(sender As Object, e As EventArgs) Handles btnDelete.Click
|
||||||
|
DeleteProcess()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnSave_Click(sender As Object, e As EventArgs) Handles btnSave.Click
|
||||||
|
SaveProcess()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnCancel_Click(sender As Object, e As EventArgs) Handles btnCancel.Click
|
||||||
|
CancelEdit()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnClose_Click(sender As Object, e As EventArgs) Handles btnClose.Click
|
||||||
|
Me.Close()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnPathBrowse_Click(sender As Object, e As EventArgs) Handles btnProcessBrowse.Click
|
||||||
|
ProcessBrowse()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub frmProcessManager_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing
|
||||||
|
If bIsDirty Then
|
||||||
|
Select Case HandleDirty()
|
||||||
|
Case MsgBoxResult.Yes
|
||||||
|
SaveProcess()
|
||||||
|
Case MsgBoxResult.No
|
||||||
|
'Do Nothing
|
||||||
|
Case MsgBoxResult.Cancel
|
||||||
|
e.Cancel = True
|
||||||
|
End Select
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
End Class
|
||||||
Generated
+180
@@ -0,0 +1,180 @@
|
|||||||
|
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
||||||
|
Partial Class frmSessionExport
|
||||||
|
Inherits System.Windows.Forms.Form
|
||||||
|
|
||||||
|
'Form overrides dispose to clean up the component list.
|
||||||
|
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||||
|
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
|
Try
|
||||||
|
If disposing AndAlso components IsNot Nothing Then
|
||||||
|
components.Dispose()
|
||||||
|
End If
|
||||||
|
Finally
|
||||||
|
MyBase.Dispose(disposing)
|
||||||
|
End Try
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Required by the Windows Form Designer
|
||||||
|
Private components As System.ComponentModel.IContainer
|
||||||
|
|
||||||
|
'NOTE: The following procedure is required by the Windows Form Designer
|
||||||
|
'It can be modified using the Windows Form Designer.
|
||||||
|
'Do not modify it using the code editor.
|
||||||
|
<System.Diagnostics.DebuggerStepThrough()> _
|
||||||
|
Private Sub InitializeComponent()
|
||||||
|
Me.btnExport = New System.Windows.Forms.Button()
|
||||||
|
Me.btnCancel = New System.Windows.Forms.Button()
|
||||||
|
Me.grpExportType = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.grpDateType = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.optCSV = New System.Windows.Forms.RadioButton()
|
||||||
|
Me.optXML = New System.Windows.Forms.RadioButton()
|
||||||
|
Me.optCurrentLocale = New System.Windows.Forms.RadioButton()
|
||||||
|
Me.optUnix = New System.Windows.Forms.RadioButton()
|
||||||
|
Me.grpOptions = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.chkCSVHeaders = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.grpExportType.SuspendLayout()
|
||||||
|
Me.grpDateType.SuspendLayout()
|
||||||
|
Me.grpOptions.SuspendLayout()
|
||||||
|
Me.SuspendLayout()
|
||||||
|
'
|
||||||
|
'btnExport
|
||||||
|
'
|
||||||
|
Me.btnExport.Location = New System.Drawing.Point(116, 226)
|
||||||
|
Me.btnExport.Name = "btnExport"
|
||||||
|
Me.btnExport.Size = New System.Drawing.Size(75, 23)
|
||||||
|
Me.btnExport.TabIndex = 3
|
||||||
|
Me.btnExport.Text = "&Export"
|
||||||
|
Me.btnExport.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'btnCancel
|
||||||
|
'
|
||||||
|
Me.btnCancel.Location = New System.Drawing.Point(197, 226)
|
||||||
|
Me.btnCancel.Name = "btnCancel"
|
||||||
|
Me.btnCancel.Size = New System.Drawing.Size(75, 23)
|
||||||
|
Me.btnCancel.TabIndex = 4
|
||||||
|
Me.btnCancel.Text = "&Cancel"
|
||||||
|
Me.btnCancel.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'grpExportType
|
||||||
|
'
|
||||||
|
Me.grpExportType.Controls.Add(Me.optXML)
|
||||||
|
Me.grpExportType.Controls.Add(Me.optCSV)
|
||||||
|
Me.grpExportType.Location = New System.Drawing.Point(12, 12)
|
||||||
|
Me.grpExportType.Name = "grpExportType"
|
||||||
|
Me.grpExportType.Size = New System.Drawing.Size(260, 70)
|
||||||
|
Me.grpExportType.TabIndex = 0
|
||||||
|
Me.grpExportType.TabStop = False
|
||||||
|
Me.grpExportType.Text = "Export Type"
|
||||||
|
'
|
||||||
|
'grpDateType
|
||||||
|
'
|
||||||
|
Me.grpDateType.Controls.Add(Me.optUnix)
|
||||||
|
Me.grpDateType.Controls.Add(Me.optCurrentLocale)
|
||||||
|
Me.grpDateType.Location = New System.Drawing.Point(12, 88)
|
||||||
|
Me.grpDateType.Name = "grpDateType"
|
||||||
|
Me.grpDateType.Size = New System.Drawing.Size(260, 70)
|
||||||
|
Me.grpDateType.TabIndex = 1
|
||||||
|
Me.grpDateType.TabStop = False
|
||||||
|
Me.grpDateType.Text = "Date Type"
|
||||||
|
'
|
||||||
|
'optCSV
|
||||||
|
'
|
||||||
|
Me.optCSV.AutoSize = True
|
||||||
|
Me.optCSV.Location = New System.Drawing.Point(6, 19)
|
||||||
|
Me.optCSV.Name = "optCSV"
|
||||||
|
Me.optCSV.Size = New System.Drawing.Size(46, 17)
|
||||||
|
Me.optCSV.TabIndex = 0
|
||||||
|
Me.optCSV.TabStop = True
|
||||||
|
Me.optCSV.Text = "CSV"
|
||||||
|
Me.optCSV.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'optXML
|
||||||
|
'
|
||||||
|
Me.optXML.AutoSize = True
|
||||||
|
Me.optXML.Location = New System.Drawing.Point(6, 42)
|
||||||
|
Me.optXML.Name = "optXML"
|
||||||
|
Me.optXML.Size = New System.Drawing.Size(47, 17)
|
||||||
|
Me.optXML.TabIndex = 1
|
||||||
|
Me.optXML.TabStop = True
|
||||||
|
Me.optXML.Text = "XML"
|
||||||
|
Me.optXML.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'optCurrentLocale
|
||||||
|
'
|
||||||
|
Me.optCurrentLocale.AutoEllipsis = True
|
||||||
|
Me.optCurrentLocale.Location = New System.Drawing.Point(6, 19)
|
||||||
|
Me.optCurrentLocale.Name = "optCurrentLocale"
|
||||||
|
Me.optCurrentLocale.Size = New System.Drawing.Size(248, 17)
|
||||||
|
Me.optCurrentLocale.TabIndex = 0
|
||||||
|
Me.optCurrentLocale.TabStop = True
|
||||||
|
Me.optCurrentLocale.Text = "Current Locale"
|
||||||
|
Me.optCurrentLocale.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'optUnix
|
||||||
|
'
|
||||||
|
Me.optUnix.AutoEllipsis = True
|
||||||
|
Me.optUnix.Location = New System.Drawing.Point(6, 42)
|
||||||
|
Me.optUnix.Name = "optUnix"
|
||||||
|
Me.optUnix.Size = New System.Drawing.Size(248, 17)
|
||||||
|
Me.optUnix.TabIndex = 1
|
||||||
|
Me.optUnix.TabStop = True
|
||||||
|
Me.optUnix.Text = "Unix Timestamp"
|
||||||
|
Me.optUnix.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'grpOptions
|
||||||
|
'
|
||||||
|
Me.grpOptions.Controls.Add(Me.chkCSVHeaders)
|
||||||
|
Me.grpOptions.Location = New System.Drawing.Point(12, 164)
|
||||||
|
Me.grpOptions.Name = "grpOptions"
|
||||||
|
Me.grpOptions.Size = New System.Drawing.Size(260, 45)
|
||||||
|
Me.grpOptions.TabIndex = 2
|
||||||
|
Me.grpOptions.TabStop = False
|
||||||
|
Me.grpOptions.Text = "Other Options"
|
||||||
|
'
|
||||||
|
'chkCSVHeaders
|
||||||
|
'
|
||||||
|
Me.chkCSVHeaders.AutoSize = True
|
||||||
|
Me.chkCSVHeaders.Location = New System.Drawing.Point(6, 19)
|
||||||
|
Me.chkCSVHeaders.Name = "chkCSVHeaders"
|
||||||
|
Me.chkCSVHeaders.Size = New System.Drawing.Size(167, 17)
|
||||||
|
Me.chkCSVHeaders.TabIndex = 0
|
||||||
|
Me.chkCSVHeaders.Text = "Export Column Headers (CSV)"
|
||||||
|
Me.chkCSVHeaders.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'frmSessionExport
|
||||||
|
'
|
||||||
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||||
|
Me.ClientSize = New System.Drawing.Size(284, 261)
|
||||||
|
Me.Controls.Add(Me.grpOptions)
|
||||||
|
Me.Controls.Add(Me.grpDateType)
|
||||||
|
Me.Controls.Add(Me.grpExportType)
|
||||||
|
Me.Controls.Add(Me.btnCancel)
|
||||||
|
Me.Controls.Add(Me.btnExport)
|
||||||
|
Me.MaximizeBox = False
|
||||||
|
Me.MinimizeBox = False
|
||||||
|
Me.Name = "frmSessionExport"
|
||||||
|
Me.ShowIcon = False
|
||||||
|
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
|
||||||
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
|
||||||
|
Me.Text = "Session Export Options"
|
||||||
|
Me.grpExportType.ResumeLayout(False)
|
||||||
|
Me.grpExportType.PerformLayout()
|
||||||
|
Me.grpDateType.ResumeLayout(False)
|
||||||
|
Me.grpOptions.ResumeLayout(False)
|
||||||
|
Me.grpOptions.PerformLayout()
|
||||||
|
Me.ResumeLayout(False)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend WithEvents btnExport As Button
|
||||||
|
Friend WithEvents btnCancel As Button
|
||||||
|
Friend WithEvents grpExportType As GroupBox
|
||||||
|
Friend WithEvents optXML As RadioButton
|
||||||
|
Friend WithEvents optCSV As RadioButton
|
||||||
|
Friend WithEvents grpDateType As GroupBox
|
||||||
|
Friend WithEvents optUnix As RadioButton
|
||||||
|
Friend WithEvents optCurrentLocale As RadioButton
|
||||||
|
Friend WithEvents grpOptions As GroupBox
|
||||||
|
Friend WithEvents chkCSVHeaders As CheckBox
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
Imports GBM.My.Resources
|
||||||
|
|
||||||
|
Public Class frmSessionExport
|
||||||
|
|
||||||
|
Private bXML As Boolean = True
|
||||||
|
Private bUnix As Boolean = False
|
||||||
|
Private bCSVHeaders As Boolean = True
|
||||||
|
|
||||||
|
Public ReadOnly Property XML As Boolean
|
||||||
|
Get
|
||||||
|
Return bXML
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property Unix As Boolean
|
||||||
|
Get
|
||||||
|
Return bUnix
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property Headers As Boolean
|
||||||
|
Get
|
||||||
|
Return bCSVHeaders
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Sub SetOptions()
|
||||||
|
If optXML.Checked Then
|
||||||
|
bXML = True
|
||||||
|
Else
|
||||||
|
bXML = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If optUnix.Checked Then
|
||||||
|
bUnix = True
|
||||||
|
Else
|
||||||
|
bUnix = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If chkCSVHeaders.Checked Then
|
||||||
|
bCSVHeaders = True
|
||||||
|
Else
|
||||||
|
bCSVHeaders = False
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub SetForm()
|
||||||
|
Me.Text = frmSessionExport_FormName
|
||||||
|
|
||||||
|
grpExportType.Text = frmSessionExport_grpExportType
|
||||||
|
grpDateType.Text = frmSessionExport_grpDateType
|
||||||
|
grpOptions.Text = frmSessionExport_grpOptions
|
||||||
|
|
||||||
|
optCSV.Text = frmSessionExport_optCSV
|
||||||
|
optXML.Text = frmSessionExport_optXML
|
||||||
|
optCurrentLocale.Text = frmSessionExport_optCurrentLocale & " - " & Now
|
||||||
|
optUnix.Text = frmSessionExport_optUnix & " - " & mgrCommon.DateToUnix(Now)
|
||||||
|
|
||||||
|
chkCSVHeaders.Text = frmSessionExport_chkCSVHeaders
|
||||||
|
|
||||||
|
btnExport.Text = frmSessionExport_btnExport
|
||||||
|
btnCancel.Text = frmSessionExport_btnCancel
|
||||||
|
|
||||||
|
optCSV.Checked = True
|
||||||
|
optCurrentLocale.Checked = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub frmSessionExport_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||||
|
SetForm()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnExport_Click(sender As Object, e As EventArgs) Handles btnExport.Click
|
||||||
|
SetOptions()
|
||||||
|
Me.DialogResult = DialogResult.OK
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnCancel_Click(sender As Object, e As EventArgs) Handles btnCancel.Click
|
||||||
|
Me.DialogResult = DialogResult.Cancel
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub optCSV_CheckedChanged(sender As Object, e As EventArgs) Handles optCSV.CheckedChanged
|
||||||
|
If Not optCSV.Checked Then
|
||||||
|
chkCSVHeaders.Checked = False
|
||||||
|
chkCSVHeaders.Enabled = False
|
||||||
|
Else
|
||||||
|
chkCSVHeaders.Checked = True
|
||||||
|
chkCSVHeaders.Enabled = True
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
End Class
|
||||||
Generated
+200
@@ -0,0 +1,200 @@
|
|||||||
|
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
||||||
|
Partial Class frmSessions
|
||||||
|
Inherits System.Windows.Forms.Form
|
||||||
|
|
||||||
|
'Form overrides dispose to clean up the component list.
|
||||||
|
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||||
|
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
|
Try
|
||||||
|
If disposing AndAlso components IsNot Nothing Then
|
||||||
|
components.Dispose()
|
||||||
|
End If
|
||||||
|
Finally
|
||||||
|
MyBase.Dispose(disposing)
|
||||||
|
End Try
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Required by the Windows Form Designer
|
||||||
|
Private components As System.ComponentModel.IContainer
|
||||||
|
|
||||||
|
'NOTE: The following procedure is required by the Windows Form Designer
|
||||||
|
'It can be modified using the Windows Form Designer.
|
||||||
|
'Do not modify it using the code editor.
|
||||||
|
<System.Diagnostics.DebuggerStepThrough()> _
|
||||||
|
Private Sub InitializeComponent()
|
||||||
|
Me.lblFilter = New System.Windows.Forms.Label()
|
||||||
|
Me.txtFilter = New System.Windows.Forms.TextBox()
|
||||||
|
Me.dgSessions = New System.Windows.Forms.DataGridView()
|
||||||
|
Me.dtpStart = New System.Windows.Forms.DateTimePicker()
|
||||||
|
Me.dtpEnd = New System.Windows.Forms.DateTimePicker()
|
||||||
|
Me.lblTo = New System.Windows.Forms.Label()
|
||||||
|
Me.btnReset = New System.Windows.Forms.Button()
|
||||||
|
Me.btnDelete = New System.Windows.Forms.Button()
|
||||||
|
Me.btnClose = New System.Windows.Forms.Button()
|
||||||
|
Me.lblDateRange = New System.Windows.Forms.Label()
|
||||||
|
Me.lblTotalHours = New System.Windows.Forms.Label()
|
||||||
|
Me.btnExport = New System.Windows.Forms.Button()
|
||||||
|
CType(Me.dgSessions, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
Me.SuspendLayout()
|
||||||
|
'
|
||||||
|
'lblFilter
|
||||||
|
'
|
||||||
|
Me.lblFilter.AutoSize = True
|
||||||
|
Me.lblFilter.Location = New System.Drawing.Point(12, 9)
|
||||||
|
Me.lblFilter.Name = "lblFilter"
|
||||||
|
Me.lblFilter.Size = New System.Drawing.Size(63, 13)
|
||||||
|
Me.lblFilter.TabIndex = 1
|
||||||
|
Me.lblFilter.Text = "Game Filter:"
|
||||||
|
'
|
||||||
|
'txtFilter
|
||||||
|
'
|
||||||
|
Me.txtFilter.Location = New System.Drawing.Point(80, 6)
|
||||||
|
Me.txtFilter.Name = "txtFilter"
|
||||||
|
Me.txtFilter.Size = New System.Drawing.Size(190, 20)
|
||||||
|
Me.txtFilter.TabIndex = 1
|
||||||
|
'
|
||||||
|
'dgSessions
|
||||||
|
'
|
||||||
|
Me.dgSessions.AllowUserToAddRows = False
|
||||||
|
Me.dgSessions.AllowUserToDeleteRows = False
|
||||||
|
Me.dgSessions.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.dgSessions.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
|
||||||
|
Me.dgSessions.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnF2
|
||||||
|
Me.dgSessions.Location = New System.Drawing.Point(12, 32)
|
||||||
|
Me.dgSessions.Name = "dgSessions"
|
||||||
|
Me.dgSessions.ReadOnly = True
|
||||||
|
Me.dgSessions.RowHeadersVisible = False
|
||||||
|
Me.dgSessions.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect
|
||||||
|
Me.dgSessions.Size = New System.Drawing.Size(760, 488)
|
||||||
|
Me.dgSessions.TabIndex = 6
|
||||||
|
'
|
||||||
|
'dtpStart
|
||||||
|
'
|
||||||
|
Me.dtpStart.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.dtpStart.Location = New System.Drawing.Point(384, 6)
|
||||||
|
Me.dtpStart.Name = "dtpStart"
|
||||||
|
Me.dtpStart.Size = New System.Drawing.Size(175, 20)
|
||||||
|
Me.dtpStart.TabIndex = 3
|
||||||
|
'
|
||||||
|
'dtpEnd
|
||||||
|
'
|
||||||
|
Me.dtpEnd.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.dtpEnd.Location = New System.Drawing.Point(597, 6)
|
||||||
|
Me.dtpEnd.Name = "dtpEnd"
|
||||||
|
Me.dtpEnd.Size = New System.Drawing.Size(175, 20)
|
||||||
|
Me.dtpEnd.TabIndex = 5
|
||||||
|
'
|
||||||
|
'lblTo
|
||||||
|
'
|
||||||
|
Me.lblTo.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.lblTo.Location = New System.Drawing.Point(565, 9)
|
||||||
|
Me.lblTo.Name = "lblTo"
|
||||||
|
Me.lblTo.Size = New System.Drawing.Size(26, 17)
|
||||||
|
Me.lblTo.TabIndex = 4
|
||||||
|
Me.lblTo.Text = "to"
|
||||||
|
Me.lblTo.TextAlign = System.Drawing.ContentAlignment.TopCenter
|
||||||
|
'
|
||||||
|
'btnReset
|
||||||
|
'
|
||||||
|
Me.btnReset.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.btnReset.Location = New System.Drawing.Point(591, 526)
|
||||||
|
Me.btnReset.Name = "btnReset"
|
||||||
|
Me.btnReset.Size = New System.Drawing.Size(100, 23)
|
||||||
|
Me.btnReset.TabIndex = 10
|
||||||
|
Me.btnReset.Text = "&Reset Filters"
|
||||||
|
Me.btnReset.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'btnDelete
|
||||||
|
'
|
||||||
|
Me.btnDelete.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.btnDelete.Location = New System.Drawing.Point(12, 526)
|
||||||
|
Me.btnDelete.Name = "btnDelete"
|
||||||
|
Me.btnDelete.Size = New System.Drawing.Size(100, 23)
|
||||||
|
Me.btnDelete.TabIndex = 7
|
||||||
|
Me.btnDelete.Text = "&Delete Session"
|
||||||
|
Me.btnDelete.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'btnClose
|
||||||
|
'
|
||||||
|
Me.btnClose.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.btnClose.Location = New System.Drawing.Point(697, 526)
|
||||||
|
Me.btnClose.Name = "btnClose"
|
||||||
|
Me.btnClose.Size = New System.Drawing.Size(75, 23)
|
||||||
|
Me.btnClose.TabIndex = 11
|
||||||
|
Me.btnClose.Text = "&Close"
|
||||||
|
Me.btnClose.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'lblDateRange
|
||||||
|
'
|
||||||
|
Me.lblDateRange.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.lblDateRange.AutoSize = True
|
||||||
|
Me.lblDateRange.Location = New System.Drawing.Point(310, 9)
|
||||||
|
Me.lblDateRange.Name = "lblDateRange"
|
||||||
|
Me.lblDateRange.Size = New System.Drawing.Size(68, 13)
|
||||||
|
Me.lblDateRange.TabIndex = 2
|
||||||
|
Me.lblDateRange.Text = "Date Range:"
|
||||||
|
'
|
||||||
|
'lblTotalHours
|
||||||
|
'
|
||||||
|
Me.lblTotalHours.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.lblTotalHours.Location = New System.Drawing.Point(118, 531)
|
||||||
|
Me.lblTotalHours.Name = "lblTotalHours"
|
||||||
|
Me.lblTotalHours.Size = New System.Drawing.Size(361, 13)
|
||||||
|
Me.lblTotalHours.TabIndex = 8
|
||||||
|
Me.lblTotalHours.Text = "Total Hours:"
|
||||||
|
Me.lblTotalHours.TextAlign = System.Drawing.ContentAlignment.TopCenter
|
||||||
|
'
|
||||||
|
'btnExport
|
||||||
|
'
|
||||||
|
Me.btnExport.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.btnExport.Location = New System.Drawing.Point(485, 526)
|
||||||
|
Me.btnExport.Name = "btnExport"
|
||||||
|
Me.btnExport.Size = New System.Drawing.Size(100, 23)
|
||||||
|
Me.btnExport.TabIndex = 9
|
||||||
|
Me.btnExport.Text = "&Export Grid"
|
||||||
|
Me.btnExport.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'frmSessions
|
||||||
|
'
|
||||||
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||||
|
Me.ClientSize = New System.Drawing.Size(784, 561)
|
||||||
|
Me.Controls.Add(Me.btnExport)
|
||||||
|
Me.Controls.Add(Me.lblTotalHours)
|
||||||
|
Me.Controls.Add(Me.lblDateRange)
|
||||||
|
Me.Controls.Add(Me.btnClose)
|
||||||
|
Me.Controls.Add(Me.btnDelete)
|
||||||
|
Me.Controls.Add(Me.btnReset)
|
||||||
|
Me.Controls.Add(Me.lblTo)
|
||||||
|
Me.Controls.Add(Me.dtpEnd)
|
||||||
|
Me.Controls.Add(Me.dtpStart)
|
||||||
|
Me.Controls.Add(Me.dgSessions)
|
||||||
|
Me.Controls.Add(Me.lblFilter)
|
||||||
|
Me.Controls.Add(Me.txtFilter)
|
||||||
|
Me.Name = "frmSessions"
|
||||||
|
Me.ShowIcon = False
|
||||||
|
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
|
||||||
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||||
|
Me.Text = "Session Viewer"
|
||||||
|
CType(Me.dgSessions, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
Me.ResumeLayout(False)
|
||||||
|
Me.PerformLayout()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend WithEvents lblFilter As Label
|
||||||
|
Friend WithEvents txtFilter As TextBox
|
||||||
|
Friend WithEvents dgSessions As DataGridView
|
||||||
|
Friend WithEvents dtpStart As DateTimePicker
|
||||||
|
Friend WithEvents dtpEnd As DateTimePicker
|
||||||
|
Friend WithEvents lblTo As Label
|
||||||
|
Friend WithEvents btnReset As Button
|
||||||
|
Friend WithEvents btnDelete As Button
|
||||||
|
Friend WithEvents btnClose As Button
|
||||||
|
Friend WithEvents lblDateRange As Label
|
||||||
|
Friend WithEvents lblTotalHours As Label
|
||||||
|
Friend WithEvents btnExport As Button
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
@@ -0,0 +1,318 @@
|
|||||||
|
Imports GBM.My.Resources
|
||||||
|
Imports System.Globalization
|
||||||
|
Imports System.ComponentModel
|
||||||
|
|
||||||
|
Public Class frmSessions
|
||||||
|
|
||||||
|
Private bInitFinished As Boolean = False
|
||||||
|
Private WithEvents tmFilterTimer As Timer
|
||||||
|
Private bStartSortAsc As Boolean = True
|
||||||
|
Private iStartDataCol As Integer
|
||||||
|
Private iStartDisplayCol As Integer
|
||||||
|
Private bEndSortAsc As Boolean = True
|
||||||
|
Private iEndDataCol As Integer
|
||||||
|
Private iEndDisplayCol As Integer
|
||||||
|
Private bHoursSortAsc As Boolean = True
|
||||||
|
Private iHoursCol As Integer
|
||||||
|
|
||||||
|
Private Sub FormatGrid()
|
||||||
|
'Build Columns
|
||||||
|
dgSessions.Columns.Add("MonitorID", frmSessions_ColumnMonitorID)
|
||||||
|
dgSessions.Columns.Add("Name", frmSessions_ColumnGameName)
|
||||||
|
dgSessions.Columns.Add("StartUnix", frmSessions_ColumnStart)
|
||||||
|
dgSessions.Columns.Add("Start", frmSessions_ColumnStart)
|
||||||
|
dgSessions.Columns.Add("EndUnix", frmSessions_ColumnEnd)
|
||||||
|
dgSessions.Columns.Add("End", frmSessions_ColumnEnd)
|
||||||
|
dgSessions.Columns.Add("Hours", frmSessions_ColumnHours)
|
||||||
|
|
||||||
|
'Get Column Indexes
|
||||||
|
iStartDataCol = dgSessions.Columns.IndexOf(dgSessions.Columns("StartUnix"))
|
||||||
|
iStartDisplayCol = dgSessions.Columns.IndexOf(dgSessions.Columns("Start"))
|
||||||
|
iEndDataCol = dgSessions.Columns.IndexOf(dgSessions.Columns("EndUnix"))
|
||||||
|
iEndDisplayCol = dgSessions.Columns.IndexOf(dgSessions.Columns("End"))
|
||||||
|
iHoursCol = dgSessions.Columns.IndexOf(dgSessions.Columns("Hours"))
|
||||||
|
|
||||||
|
'Set Sorting
|
||||||
|
dgSessions.Columns("Start").SortMode = DataGridViewColumnSortMode.Programmatic
|
||||||
|
dgSessions.Columns("End").SortMode = DataGridViewColumnSortMode.Programmatic
|
||||||
|
dgSessions.Columns("Hours").SortMode = DataGridViewColumnSortMode.Programmatic
|
||||||
|
|
||||||
|
'Hide Columns
|
||||||
|
dgSessions.Columns("MonitorID").Visible = False
|
||||||
|
dgSessions.Columns("StartUnix").Visible = False
|
||||||
|
dgSessions.Columns("EndUnix").Visible = False
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub LoadData()
|
||||||
|
Dim oData As DataSet
|
||||||
|
Dim sFilter As String
|
||||||
|
Dim dStart As DateTime
|
||||||
|
Dim dEnd As DateTime
|
||||||
|
Dim dHours As Double
|
||||||
|
Dim dTotalHours As Double
|
||||||
|
|
||||||
|
If txtFilter.Text = String.Empty Then
|
||||||
|
oData = mgrSessions.GetSessionRange(dtpStart.Value, dtpEnd.Value)
|
||||||
|
Else
|
||||||
|
sFilter = txtFilter.Text.ToLower
|
||||||
|
oData = mgrSessions.GetSessionsByGameNameAndRange(sFilter, dtpStart.Value, dtpEnd.Value)
|
||||||
|
End If
|
||||||
|
|
||||||
|
dgSessions.Rows.Clear()
|
||||||
|
|
||||||
|
For Each dr As DataRow In oData.Tables(0).Rows
|
||||||
|
dStart = mgrCommon.UnixToDate(dr("Start"))
|
||||||
|
dEnd = mgrCommon.UnixToDate(dr("End"))
|
||||||
|
dHours = Math.Round(dEnd.Subtract(dStart).TotalHours, 2)
|
||||||
|
dTotalHours += dHours
|
||||||
|
dgSessions.Rows.Add(New Object() {dr("MonitorID"), dr("Name"), dr("Start"), dStart, dr("End"), dEnd, dHours})
|
||||||
|
Next
|
||||||
|
|
||||||
|
lblTotalHours.Text = mgrCommon.FormatString(frmSessions_lblTotalHours, Math.Round(dTotalHours, 2))
|
||||||
|
|
||||||
|
dgSessions.AutoResizeColumns()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub SetForm()
|
||||||
|
Me.Text = frmSessions_Name
|
||||||
|
|
||||||
|
'Init Labels
|
||||||
|
lblFilter.Text = frmSessions_lblFilter
|
||||||
|
lblDateRange.Text = frmSessions_lblDateRange
|
||||||
|
btnDelete.Text = frmSessions_btnDelete
|
||||||
|
btnReset.Text = frmSessions_btnReset
|
||||||
|
btnClose.Text = frmSessions_btnClose
|
||||||
|
|
||||||
|
'Init Filter Timer
|
||||||
|
tmFilterTimer = New Timer()
|
||||||
|
tmFilterTimer.Interval = 1000
|
||||||
|
tmFilterTimer.Enabled = False
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ResetFilterFields()
|
||||||
|
Dim dtMinDate As DateTime = mgrSessions.GetMinimumDateTime
|
||||||
|
Dim dtMaxDate As DateTime = mgrSessions.GetMaximumDateTime
|
||||||
|
Dim dtRecent As DateTime = dtMaxDate.Subtract(TimeSpan.FromDays(7))
|
||||||
|
Dim sDateTimeFormat = CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern & " " & CultureInfo.CurrentCulture.DateTimeFormat.LongTimePattern
|
||||||
|
|
||||||
|
If dtRecent < dtMinDate Then
|
||||||
|
dtRecent = dtMinDate
|
||||||
|
End If
|
||||||
|
|
||||||
|
bInitFinished = False
|
||||||
|
|
||||||
|
'Init Date Fields
|
||||||
|
dtpStart.Format = DateTimePickerFormat.Custom
|
||||||
|
dtpEnd.Format = DateTimePickerFormat.Custom
|
||||||
|
dtpStart.CustomFormat = sDateTimeFormat
|
||||||
|
dtpEnd.CustomFormat = sDateTimeFormat
|
||||||
|
|
||||||
|
'Setting max or min dates breaks the control in Mono
|
||||||
|
If Not mgrCommon.IsUnix Then
|
||||||
|
dtpStart.MinDate = dtMinDate
|
||||||
|
dtpStart.MaxDate = dtMaxDate
|
||||||
|
dtpEnd.MinDate = dtMinDate
|
||||||
|
dtpEnd.MaxDate = dtMaxDate
|
||||||
|
End If
|
||||||
|
|
||||||
|
dtpStart.Value = dtRecent
|
||||||
|
dtpEnd.Value = dtMaxDate
|
||||||
|
|
||||||
|
'Init Text Filter
|
||||||
|
txtFilter.Text = String.Empty
|
||||||
|
|
||||||
|
bInitFinished = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub Reset()
|
||||||
|
ClearManualSortGlyphs()
|
||||||
|
ResetFilterFields()
|
||||||
|
LoadData()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub DeleteSession()
|
||||||
|
Dim oSession As clsSession
|
||||||
|
Dim oSessions As New List(Of clsSession)
|
||||||
|
|
||||||
|
For Each dgvRow As DataGridViewRow In dgSessions.SelectedRows
|
||||||
|
oSession = New clsSession
|
||||||
|
oSession.MonitorID = dgvRow.Cells(0).Value
|
||||||
|
oSession.SessionStart = CInt(dgvRow.Cells(iStartDataCol).Value)
|
||||||
|
oSession.SessionEnd = CInt(dgvRow.Cells(iEndDataCol).Value)
|
||||||
|
oSessions.Add(oSession)
|
||||||
|
Next
|
||||||
|
|
||||||
|
If oSessions.Count > 0 Then
|
||||||
|
mgrSessions.DeleteSession(oSessions)
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ClearManualSortGlyphs()
|
||||||
|
dgSessions.Columns(iStartDisplayCol).HeaderCell.SortGlyphDirection = SortOrder.None
|
||||||
|
dgSessions.Columns(iEndDisplayCol).HeaderCell.SortGlyphDirection = SortOrder.None
|
||||||
|
dgSessions.Columns(iHoursCol).HeaderCell.SortGlyphDirection = SortOrder.None
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub DoSort(ByRef bToggle As Boolean, ByVal iCol As Integer, ByVal iType As RowCompareHelper.iDataType)
|
||||||
|
bToggle = Not bToggle
|
||||||
|
If bToggle Then
|
||||||
|
dgSessions.Sort(New RowCompareHelper(SortOrder.Ascending, iCol, iType))
|
||||||
|
dgSessions.Columns(iCol).HeaderCell.SortGlyphDirection = SortOrder.Ascending
|
||||||
|
Else
|
||||||
|
dgSessions.Sort(New RowCompareHelper(SortOrder.Descending, iCol, iType))
|
||||||
|
dgSessions.Columns(iCol).HeaderCell.SortGlyphDirection = SortOrder.Descending
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub HandleSort(ByVal iCol As Integer)
|
||||||
|
ClearManualSortGlyphs()
|
||||||
|
|
||||||
|
Select Case iCol
|
||||||
|
Case iStartDisplayCol
|
||||||
|
DoSort(bStartSortAsc, iStartDisplayCol, RowCompareHelper.iDataType.DateTimeType)
|
||||||
|
Case iEndDisplayCol
|
||||||
|
DoSort(bEndSortAsc, iEndDisplayCol, RowCompareHelper.iDataType.DateTimeType)
|
||||||
|
Case iHoursCol
|
||||||
|
DoSort(bHoursSortAsc, iHoursCol, RowCompareHelper.iDataType.DecimalType)
|
||||||
|
End Select
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ExportGrid()
|
||||||
|
Dim frm As New frmSessionExport
|
||||||
|
Dim sLocation As String
|
||||||
|
|
||||||
|
frm.ShowDialog()
|
||||||
|
|
||||||
|
If frm.DialogResult = DialogResult.OK Then
|
||||||
|
|
||||||
|
If frm.XML Then
|
||||||
|
sLocation = mgrCommon.SaveFileBrowser("Session_Export", frmSessions_ChooseExportLocation, "xml", frmSessions_XML, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), frmSessions_DefaultExportFileName)
|
||||||
|
Else
|
||||||
|
sLocation = mgrCommon.SaveFileBrowser("Session_Export", frmSessions_ChooseExportLocation, "csv", frmSessions_CSV, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), frmSessions_DefaultExportFileName)
|
||||||
|
End If
|
||||||
|
|
||||||
|
If sLocation <> String.Empty Then
|
||||||
|
If frm.XML Then
|
||||||
|
mgrSessions.ExportAsXML(sLocation, frm.Unix, dgSessions)
|
||||||
|
Else
|
||||||
|
mgrSessions.ExportAsCSV(sLocation, frm.Unix, frm.Headers, dgSessions)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub frmSession_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||||
|
SetForm()
|
||||||
|
ResetFilterFields()
|
||||||
|
FormatGrid()
|
||||||
|
LoadData()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub tmFilterTimer_Tick(sender As Object, ByVal e As EventArgs) Handles tmFilterTimer.Tick
|
||||||
|
LoadData()
|
||||||
|
tmFilterTimer.Stop()
|
||||||
|
tmFilterTimer.Enabled = False
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtFilter_TextChanged(sender As Object, e As EventArgs) Handles txtFilter.TextChanged
|
||||||
|
If Not tmFilterTimer.Enabled Then
|
||||||
|
tmFilterTimer.Enabled = True
|
||||||
|
tmFilterTimer.Start()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub dtpStart_ValueChanged(sender As Object, e As EventArgs) Handles dtpStart.ValueChanged
|
||||||
|
If bInitFinished Then LoadData()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub dtpEnd_ValueChanged(sender As Object, e As EventArgs) Handles dtpEnd.ValueChanged
|
||||||
|
If bInitFinished Then LoadData()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnReset_Click(sender As Object, e As EventArgs) Handles btnReset.Click
|
||||||
|
Reset()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnClose_Click(sender As Object, e As EventArgs) Handles btnClose.Click
|
||||||
|
Me.Close()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnDelete_Click(sender As Object, e As EventArgs) Handles btnDelete.Click
|
||||||
|
If dgSessions.SelectedRows.Count > 0 Then
|
||||||
|
If mgrCommon.ShowMessage(frmSessions_ConfirmDelete, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
|
||||||
|
DeleteSession()
|
||||||
|
LoadData()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnExport_Click(sender As Object, e As EventArgs) Handles btnExport.Click
|
||||||
|
ExportGrid()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub dgSessions_ColumnHeaderMouseClick(sender As Object, e As DataGridViewCellMouseEventArgs) Handles dgSessions.ColumnHeaderMouseClick
|
||||||
|
HandleSort(e.ColumnIndex)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'The Mono version of the DataGridView control automatically treats all data as a string for sorting purposes.
|
||||||
|
'This class manually handles column sorting by data type.
|
||||||
|
Private Class RowCompareHelper
|
||||||
|
Implements System.Collections.IComparer
|
||||||
|
|
||||||
|
'We need to manually define data types as the column ValueType doesn't work in Mono either.
|
||||||
|
Public Enum iDataType As Integer
|
||||||
|
StringType = 1
|
||||||
|
DateTimeType = 2
|
||||||
|
IntType = 3
|
||||||
|
DecimalType = 4
|
||||||
|
End Enum
|
||||||
|
|
||||||
|
Private iSortOrderModifier As Integer = 1
|
||||||
|
Private iSortCol As Integer = 0
|
||||||
|
Private iDataTypeCol As iDataType = iDataType.StringType
|
||||||
|
|
||||||
|
Public Sub New(ByVal sortOrder As SortOrder, ByVal iCol As Integer, ByVal iType As iDataType)
|
||||||
|
iSortCol = iCol
|
||||||
|
iDataTypeCol = iType
|
||||||
|
|
||||||
|
If sortOrder = SortOrder.Descending Then
|
||||||
|
iSortOrderModifier = -1
|
||||||
|
ElseIf sortOrder = SortOrder.Ascending Then
|
||||||
|
iSortOrderModifier = 1
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Function Compare(ByVal x As Object, ByVal y As Object) As Integer Implements System.Collections.IComparer.Compare
|
||||||
|
Dim iCompareResult As Integer
|
||||||
|
Dim dgRow1 As DataGridViewRow = CType(x, DataGridViewRow)
|
||||||
|
Dim dgRow2 As DataGridViewRow = CType(y, DataGridViewRow)
|
||||||
|
|
||||||
|
Select Case iDataTypeCol
|
||||||
|
Case iDataType.DecimalType
|
||||||
|
If (CDec(dgRow1.Cells(iSortCol).Value) = CDec(dgRow2.Cells(iSortCol).Value)) Then
|
||||||
|
iCompareResult = 0
|
||||||
|
ElseIf (CDec(dgRow1.Cells(iSortCol).Value) < CDec(dgRow2.Cells(iSortCol).Value)) Then
|
||||||
|
iCompareResult = -1
|
||||||
|
Else
|
||||||
|
iCompareResult = 1
|
||||||
|
End If
|
||||||
|
Case iDataType.IntType
|
||||||
|
If (CInt(dgRow1.Cells(iSortCol).Value) = CInt(dgRow2.Cells(iSortCol).Value)) Then
|
||||||
|
iCompareResult = 0
|
||||||
|
ElseIf (CInt(dgRow1.Cells(iSortCol).Value) < CInt(dgRow2.Cells(iSortCol).Value)) Then
|
||||||
|
iCompareResult = -1
|
||||||
|
Else
|
||||||
|
iCompareResult = 1
|
||||||
|
End If
|
||||||
|
Case iDataType.StringType
|
||||||
|
iCompareResult = String.Compare(CStr(dgRow1.Cells(iSortCol).Value), CStr(dgRow2.Cells(iSortCol).Value))
|
||||||
|
Case iDataType.DateTimeType
|
||||||
|
iCompareResult = Date.Compare(CDate(dgRow1.Cells(iSortCol).Value), CDate(dgRow2.Cells(iSortCol).Value))
|
||||||
|
End Select
|
||||||
|
|
||||||
|
Return iCompareResult * iSortOrderModifier
|
||||||
|
End Function
|
||||||
|
End Class
|
||||||
|
|
||||||
|
End Class
|
||||||
Generated
+332
-194
@@ -22,29 +22,18 @@ Partial Class frmSettings
|
|||||||
'Do not modify it using the code editor.
|
'Do not modify it using the code editor.
|
||||||
<System.Diagnostics.DebuggerStepThrough()> _
|
<System.Diagnostics.DebuggerStepThrough()> _
|
||||||
Private Sub InitializeComponent()
|
Private Sub InitializeComponent()
|
||||||
Me.chkMonitorOnStartup = New System.Windows.Forms.CheckBox()
|
|
||||||
Me.chkBackupConfirm = New System.Windows.Forms.CheckBox()
|
|
||||||
Me.grpStartup = New System.Windows.Forms.GroupBox()
|
|
||||||
Me.chkStartWindows = New System.Windows.Forms.CheckBox()
|
|
||||||
Me.chkStartToTray = New System.Windows.Forms.CheckBox()
|
|
||||||
Me.chkAutoSaveLog = New System.Windows.Forms.CheckBox()
|
Me.chkAutoSaveLog = New System.Windows.Forms.CheckBox()
|
||||||
Me.btnOptionalFields = New System.Windows.Forms.Button()
|
Me.btnOptionalFields = New System.Windows.Forms.Button()
|
||||||
Me.chkTimeTracking = New System.Windows.Forms.CheckBox()
|
Me.chkTimeTracking = New System.Windows.Forms.CheckBox()
|
||||||
Me.chkSync = New System.Windows.Forms.CheckBox()
|
|
||||||
Me.chkShowDetectionTips = New System.Windows.Forms.CheckBox()
|
Me.chkShowDetectionTips = New System.Windows.Forms.CheckBox()
|
||||||
Me.grpFolderOptions = New System.Windows.Forms.GroupBox()
|
Me.grpFolderOptions = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.chkUseGameID = New System.Windows.Forms.CheckBox()
|
||||||
Me.btnBackupFolder = New System.Windows.Forms.Button()
|
Me.btnBackupFolder = New System.Windows.Forms.Button()
|
||||||
Me.lblBackupFolder = New System.Windows.Forms.Label()
|
Me.lblBackupFolder = New System.Windows.Forms.Label()
|
||||||
Me.txtBackupFolder = New System.Windows.Forms.TextBox()
|
Me.txtBackupFolder = New System.Windows.Forms.TextBox()
|
||||||
Me.chkCreateFolder = New System.Windows.Forms.CheckBox()
|
Me.chkCreateFolder = New System.Windows.Forms.CheckBox()
|
||||||
Me.btnSave = New System.Windows.Forms.Button()
|
Me.btnSave = New System.Windows.Forms.Button()
|
||||||
Me.btnCancel = New System.Windows.Forms.Button()
|
Me.btnCancel = New System.Windows.Forms.Button()
|
||||||
Me.lblMinutes = New System.Windows.Forms.Label()
|
|
||||||
Me.nudSupressBackupThreshold = New System.Windows.Forms.NumericUpDown()
|
|
||||||
Me.chkSupressBackup = New System.Windows.Forms.CheckBox()
|
|
||||||
Me.chkCheckSum = New System.Windows.Forms.CheckBox()
|
|
||||||
Me.chkRestoreOnLaunch = New System.Windows.Forms.CheckBox()
|
|
||||||
Me.chkOverwriteWarning = New System.Windows.Forms.CheckBox()
|
|
||||||
Me.grp7zGeneral = New System.Windows.Forms.GroupBox()
|
Me.grp7zGeneral = New System.Windows.Forms.GroupBox()
|
||||||
Me.cboCompression = New System.Windows.Forms.ComboBox()
|
Me.cboCompression = New System.Windows.Forms.ComboBox()
|
||||||
Me.lblCompression = New System.Windows.Forms.Label()
|
Me.lblCompression = New System.Windows.Forms.Label()
|
||||||
@@ -57,93 +46,67 @@ Partial Class frmSettings
|
|||||||
Me.lbl7zProduct = New System.Windows.Forms.Label()
|
Me.lbl7zProduct = New System.Windows.Forms.Label()
|
||||||
Me.btnDefaults = New System.Windows.Forms.Button()
|
Me.btnDefaults = New System.Windows.Forms.Button()
|
||||||
Me.pnlBackup = New System.Windows.Forms.Panel()
|
Me.pnlBackup = New System.Windows.Forms.Panel()
|
||||||
|
Me.grpBackupConfirmations = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.chkBackupConfirm = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.chkOverwriteWarning = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.grpBackupHandling = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.chkAutoRestore = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.chkRestoreNotify = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.chkAutoMark = New System.Windows.Forms.CheckBox()
|
||||||
Me.pnl7z = New System.Windows.Forms.Panel()
|
Me.pnl7z = New System.Windows.Forms.Panel()
|
||||||
Me.grp7zAdvanced = New System.Windows.Forms.GroupBox()
|
Me.grp7zAdvanced = New System.Windows.Forms.GroupBox()
|
||||||
Me.grp7zInformation = New System.Windows.Forms.GroupBox()
|
Me.grp7zInformation = New System.Windows.Forms.GroupBox()
|
||||||
Me.pnlGeneral = New System.Windows.Forms.Panel()
|
Me.pnlGeneral = New System.Windows.Forms.Panel()
|
||||||
|
Me.grpGameMonitoringOptions = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.chkSuppressBackup = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.lblMinutes = New System.Windows.Forms.Label()
|
||||||
|
Me.nudSuppressBackupThreshold = New System.Windows.Forms.NumericUpDown()
|
||||||
|
Me.grpLogOptions = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.chkDisableSyncMessages = New System.Windows.Forms.CheckBox()
|
||||||
Me.grpGameData = New System.Windows.Forms.GroupBox()
|
Me.grpGameData = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.chkSessionTracking = New System.Windows.Forms.CheckBox()
|
||||||
Me.lstSettings = New System.Windows.Forms.ListBox()
|
Me.lstSettings = New System.Windows.Forms.ListBox()
|
||||||
Me.grpStartup.SuspendLayout()
|
Me.btnResetMessages = New System.Windows.Forms.Button()
|
||||||
|
Me.pnlStartup = New System.Windows.Forms.Panel()
|
||||||
|
Me.grpStartup = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.chkBackupOnLaunch = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.chkStartWindows = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.chkStartToTray = New System.Windows.Forms.CheckBox()
|
||||||
|
Me.chkMonitorOnStartup = New System.Windows.Forms.CheckBox()
|
||||||
Me.grpFolderOptions.SuspendLayout()
|
Me.grpFolderOptions.SuspendLayout()
|
||||||
CType(Me.nudSupressBackupThreshold, System.ComponentModel.ISupportInitialize).BeginInit()
|
|
||||||
Me.grp7zGeneral.SuspendLayout()
|
Me.grp7zGeneral.SuspendLayout()
|
||||||
Me.pnlBackup.SuspendLayout()
|
Me.pnlBackup.SuspendLayout()
|
||||||
|
Me.grpBackupConfirmations.SuspendLayout()
|
||||||
|
Me.grpBackupHandling.SuspendLayout()
|
||||||
Me.pnl7z.SuspendLayout()
|
Me.pnl7z.SuspendLayout()
|
||||||
Me.grp7zAdvanced.SuspendLayout()
|
Me.grp7zAdvanced.SuspendLayout()
|
||||||
Me.grp7zInformation.SuspendLayout()
|
Me.grp7zInformation.SuspendLayout()
|
||||||
Me.pnlGeneral.SuspendLayout()
|
Me.pnlGeneral.SuspendLayout()
|
||||||
|
Me.grpGameMonitoringOptions.SuspendLayout()
|
||||||
|
CType(Me.nudSuppressBackupThreshold, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
Me.grpLogOptions.SuspendLayout()
|
||||||
Me.grpGameData.SuspendLayout()
|
Me.grpGameData.SuspendLayout()
|
||||||
|
Me.pnlStartup.SuspendLayout()
|
||||||
|
Me.grpStartup.SuspendLayout()
|
||||||
Me.SuspendLayout()
|
Me.SuspendLayout()
|
||||||
'
|
'
|
||||||
'chkMonitorOnStartup
|
|
||||||
'
|
|
||||||
Me.chkMonitorOnStartup.AutoSize = True
|
|
||||||
Me.chkMonitorOnStartup.Location = New System.Drawing.Point(6, 65)
|
|
||||||
Me.chkMonitorOnStartup.Name = "chkMonitorOnStartup"
|
|
||||||
Me.chkMonitorOnStartup.Size = New System.Drawing.Size(146, 17)
|
|
||||||
Me.chkMonitorOnStartup.TabIndex = 2
|
|
||||||
Me.chkMonitorOnStartup.Text = "Start monitoring at launch"
|
|
||||||
Me.chkMonitorOnStartup.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'chkBackupConfirm
|
|
||||||
'
|
|
||||||
Me.chkBackupConfirm.AutoSize = True
|
|
||||||
Me.chkBackupConfirm.Location = New System.Drawing.Point(6, 88)
|
|
||||||
Me.chkBackupConfirm.Name = "chkBackupConfirm"
|
|
||||||
Me.chkBackupConfirm.Size = New System.Drawing.Size(160, 17)
|
|
||||||
Me.chkBackupConfirm.TabIndex = 1
|
|
||||||
Me.chkBackupConfirm.Text = "Disable backup confirmation"
|
|
||||||
Me.chkBackupConfirm.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'grpStartup
|
|
||||||
'
|
|
||||||
Me.grpStartup.Controls.Add(Me.chkStartWindows)
|
|
||||||
Me.grpStartup.Controls.Add(Me.chkStartToTray)
|
|
||||||
Me.grpStartup.Controls.Add(Me.chkMonitorOnStartup)
|
|
||||||
Me.grpStartup.Location = New System.Drawing.Point(6, 12)
|
|
||||||
Me.grpStartup.Name = "grpStartup"
|
|
||||||
Me.grpStartup.Size = New System.Drawing.Size(354, 90)
|
|
||||||
Me.grpStartup.TabIndex = 0
|
|
||||||
Me.grpStartup.TabStop = False
|
|
||||||
Me.grpStartup.Text = "Startup"
|
|
||||||
'
|
|
||||||
'chkStartWindows
|
|
||||||
'
|
|
||||||
Me.chkStartWindows.AutoSize = True
|
|
||||||
Me.chkStartWindows.Location = New System.Drawing.Point(6, 19)
|
|
||||||
Me.chkStartWindows.Name = "chkStartWindows"
|
|
||||||
Me.chkStartWindows.Size = New System.Drawing.Size(117, 17)
|
|
||||||
Me.chkStartWindows.TabIndex = 0
|
|
||||||
Me.chkStartWindows.Text = "Start with Windows"
|
|
||||||
Me.chkStartWindows.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'chkStartToTray
|
|
||||||
'
|
|
||||||
Me.chkStartToTray.AutoSize = True
|
|
||||||
Me.chkStartToTray.Location = New System.Drawing.Point(6, 42)
|
|
||||||
Me.chkStartToTray.Name = "chkStartToTray"
|
|
||||||
Me.chkStartToTray.Size = New System.Drawing.Size(115, 17)
|
|
||||||
Me.chkStartToTray.TabIndex = 1
|
|
||||||
Me.chkStartToTray.Text = "Start to system tray"
|
|
||||||
Me.chkStartToTray.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'chkAutoSaveLog
|
'chkAutoSaveLog
|
||||||
'
|
'
|
||||||
Me.chkAutoSaveLog.AutoSize = True
|
Me.chkAutoSaveLog.AutoSize = True
|
||||||
Me.chkAutoSaveLog.Location = New System.Drawing.Point(6, 204)
|
Me.chkAutoSaveLog.Location = New System.Drawing.Point(6, 42)
|
||||||
Me.chkAutoSaveLog.Name = "chkAutoSaveLog"
|
Me.chkAutoSaveLog.Name = "chkAutoSaveLog"
|
||||||
Me.chkAutoSaveLog.Size = New System.Drawing.Size(231, 17)
|
Me.chkAutoSaveLog.Size = New System.Drawing.Size(231, 17)
|
||||||
Me.chkAutoSaveLog.TabIndex = 7
|
Me.chkAutoSaveLog.TabIndex = 1
|
||||||
Me.chkAutoSaveLog.Text = "Autosave log when max length is exceeded"
|
Me.chkAutoSaveLog.Text = "Autosave log when max length is exceeded"
|
||||||
Me.chkAutoSaveLog.UseVisualStyleBackColor = True
|
Me.chkAutoSaveLog.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'btnOptionalFields
|
'btnOptionalFields
|
||||||
'
|
'
|
||||||
Me.btnOptionalFields.Location = New System.Drawing.Point(110, 38)
|
Me.btnOptionalFields.Location = New System.Drawing.Point(6, 65)
|
||||||
Me.btnOptionalFields.Name = "btnOptionalFields"
|
Me.btnOptionalFields.Name = "btnOptionalFields"
|
||||||
Me.btnOptionalFields.Size = New System.Drawing.Size(134, 23)
|
Me.btnOptionalFields.Size = New System.Drawing.Size(216, 23)
|
||||||
Me.btnOptionalFields.TabIndex = 6
|
Me.btnOptionalFields.TabIndex = 3
|
||||||
Me.btnOptionalFields.Text = "Choose &Optional Fields..."
|
Me.btnOptionalFields.Text = "Choose &Optional Sync Fields..."
|
||||||
Me.btnOptionalFields.UseVisualStyleBackColor = True
|
Me.btnOptionalFields.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'chkTimeTracking
|
'chkTimeTracking
|
||||||
@@ -152,49 +115,50 @@ Partial Class frmSettings
|
|||||||
Me.chkTimeTracking.Location = New System.Drawing.Point(6, 19)
|
Me.chkTimeTracking.Location = New System.Drawing.Point(6, 19)
|
||||||
Me.chkTimeTracking.Name = "chkTimeTracking"
|
Me.chkTimeTracking.Name = "chkTimeTracking"
|
||||||
Me.chkTimeTracking.Size = New System.Drawing.Size(122, 17)
|
Me.chkTimeTracking.Size = New System.Drawing.Size(122, 17)
|
||||||
Me.chkTimeTracking.TabIndex = 4
|
Me.chkTimeTracking.TabIndex = 0
|
||||||
Me.chkTimeTracking.Text = "Enable time tracking"
|
Me.chkTimeTracking.Text = "Enable time tracking"
|
||||||
Me.chkTimeTracking.UseVisualStyleBackColor = True
|
Me.chkTimeTracking.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'chkSync
|
|
||||||
'
|
|
||||||
Me.chkSync.AutoSize = True
|
|
||||||
Me.chkSync.Location = New System.Drawing.Point(6, 42)
|
|
||||||
Me.chkSync.Name = "chkSync"
|
|
||||||
Me.chkSync.Size = New System.Drawing.Size(98, 17)
|
|
||||||
Me.chkSync.TabIndex = 5
|
|
||||||
Me.chkSync.Text = "Enable syncing"
|
|
||||||
Me.chkSync.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'chkShowDetectionTips
|
'chkShowDetectionTips
|
||||||
'
|
'
|
||||||
Me.chkShowDetectionTips.AutoSize = True
|
Me.chkShowDetectionTips.AutoSize = True
|
||||||
Me.chkShowDetectionTips.Location = New System.Drawing.Point(6, 181)
|
Me.chkShowDetectionTips.Location = New System.Drawing.Point(6, 41)
|
||||||
Me.chkShowDetectionTips.Name = "chkShowDetectionTips"
|
Me.chkShowDetectionTips.Name = "chkShowDetectionTips"
|
||||||
Me.chkShowDetectionTips.Size = New System.Drawing.Size(159, 17)
|
Me.chkShowDetectionTips.Size = New System.Drawing.Size(159, 17)
|
||||||
Me.chkShowDetectionTips.TabIndex = 3
|
Me.chkShowDetectionTips.TabIndex = 4
|
||||||
Me.chkShowDetectionTips.Text = "Show detection notifications"
|
Me.chkShowDetectionTips.Text = "Show detection notifications"
|
||||||
Me.chkShowDetectionTips.UseVisualStyleBackColor = True
|
Me.chkShowDetectionTips.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'grpFolderOptions
|
'grpFolderOptions
|
||||||
'
|
'
|
||||||
|
Me.grpFolderOptions.Controls.Add(Me.chkUseGameID)
|
||||||
Me.grpFolderOptions.Controls.Add(Me.btnBackupFolder)
|
Me.grpFolderOptions.Controls.Add(Me.btnBackupFolder)
|
||||||
Me.grpFolderOptions.Controls.Add(Me.lblBackupFolder)
|
Me.grpFolderOptions.Controls.Add(Me.lblBackupFolder)
|
||||||
Me.grpFolderOptions.Controls.Add(Me.txtBackupFolder)
|
Me.grpFolderOptions.Controls.Add(Me.txtBackupFolder)
|
||||||
Me.grpFolderOptions.Controls.Add(Me.chkCreateFolder)
|
Me.grpFolderOptions.Controls.Add(Me.chkCreateFolder)
|
||||||
Me.grpFolderOptions.Location = New System.Drawing.Point(6, 12)
|
Me.grpFolderOptions.Location = New System.Drawing.Point(6, 12)
|
||||||
Me.grpFolderOptions.Name = "grpFolderOptions"
|
Me.grpFolderOptions.Name = "grpFolderOptions"
|
||||||
Me.grpFolderOptions.Size = New System.Drawing.Size(354, 70)
|
Me.grpFolderOptions.Size = New System.Drawing.Size(354, 90)
|
||||||
Me.grpFolderOptions.TabIndex = 1
|
Me.grpFolderOptions.TabIndex = 0
|
||||||
Me.grpFolderOptions.TabStop = False
|
Me.grpFolderOptions.TabStop = False
|
||||||
Me.grpFolderOptions.Text = "Folders"
|
Me.grpFolderOptions.Text = "Files and Folders"
|
||||||
|
'
|
||||||
|
'chkUseGameID
|
||||||
|
'
|
||||||
|
Me.chkUseGameID.AutoSize = True
|
||||||
|
Me.chkUseGameID.Location = New System.Drawing.Point(9, 65)
|
||||||
|
Me.chkUseGameID.Name = "chkUseGameID"
|
||||||
|
Me.chkUseGameID.Size = New System.Drawing.Size(205, 17)
|
||||||
|
Me.chkUseGameID.TabIndex = 3
|
||||||
|
Me.chkUseGameID.Text = "Use Game ID for folder and file names"
|
||||||
|
Me.chkUseGameID.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'btnBackupFolder
|
'btnBackupFolder
|
||||||
'
|
'
|
||||||
Me.btnBackupFolder.Location = New System.Drawing.Point(313, 17)
|
Me.btnBackupFolder.Location = New System.Drawing.Point(313, 17)
|
||||||
Me.btnBackupFolder.Name = "btnBackupFolder"
|
Me.btnBackupFolder.Name = "btnBackupFolder"
|
||||||
Me.btnBackupFolder.Size = New System.Drawing.Size(27, 20)
|
Me.btnBackupFolder.Size = New System.Drawing.Size(27, 20)
|
||||||
Me.btnBackupFolder.TabIndex = 2
|
Me.btnBackupFolder.TabIndex = 1
|
||||||
Me.btnBackupFolder.Text = "..."
|
Me.btnBackupFolder.Text = "..."
|
||||||
Me.btnBackupFolder.UseVisualStyleBackColor = True
|
Me.btnBackupFolder.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
@@ -212,7 +176,7 @@ Partial Class frmSettings
|
|||||||
Me.txtBackupFolder.Location = New System.Drawing.Point(91, 17)
|
Me.txtBackupFolder.Location = New System.Drawing.Point(91, 17)
|
||||||
Me.txtBackupFolder.Name = "txtBackupFolder"
|
Me.txtBackupFolder.Name = "txtBackupFolder"
|
||||||
Me.txtBackupFolder.Size = New System.Drawing.Size(216, 20)
|
Me.txtBackupFolder.Size = New System.Drawing.Size(216, 20)
|
||||||
Me.txtBackupFolder.TabIndex = 1
|
Me.txtBackupFolder.TabIndex = 0
|
||||||
'
|
'
|
||||||
'chkCreateFolder
|
'chkCreateFolder
|
||||||
'
|
'
|
||||||
@@ -220,7 +184,7 @@ Partial Class frmSettings
|
|||||||
Me.chkCreateFolder.Location = New System.Drawing.Point(9, 43)
|
Me.chkCreateFolder.Location = New System.Drawing.Point(9, 43)
|
||||||
Me.chkCreateFolder.Name = "chkCreateFolder"
|
Me.chkCreateFolder.Name = "chkCreateFolder"
|
||||||
Me.chkCreateFolder.Size = New System.Drawing.Size(186, 17)
|
Me.chkCreateFolder.Size = New System.Drawing.Size(186, 17)
|
||||||
Me.chkCreateFolder.TabIndex = 3
|
Me.chkCreateFolder.TabIndex = 2
|
||||||
Me.chkCreateFolder.Text = "Create a sub-folder for each game"
|
Me.chkCreateFolder.Text = "Create a sub-folder for each game"
|
||||||
Me.chkCreateFolder.UseVisualStyleBackColor = True
|
Me.chkCreateFolder.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
@@ -230,7 +194,7 @@ Partial Class frmSettings
|
|||||||
Me.btnSave.Location = New System.Drawing.Point(384, 321)
|
Me.btnSave.Location = New System.Drawing.Point(384, 321)
|
||||||
Me.btnSave.Name = "btnSave"
|
Me.btnSave.Name = "btnSave"
|
||||||
Me.btnSave.Size = New System.Drawing.Size(75, 23)
|
Me.btnSave.Size = New System.Drawing.Size(75, 23)
|
||||||
Me.btnSave.TabIndex = 5
|
Me.btnSave.TabIndex = 7
|
||||||
Me.btnSave.Text = "&Save"
|
Me.btnSave.Text = "&Save"
|
||||||
Me.btnSave.UseVisualStyleBackColor = True
|
Me.btnSave.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
@@ -240,67 +204,10 @@ Partial Class frmSettings
|
|||||||
Me.btnCancel.Location = New System.Drawing.Point(465, 321)
|
Me.btnCancel.Location = New System.Drawing.Point(465, 321)
|
||||||
Me.btnCancel.Name = "btnCancel"
|
Me.btnCancel.Name = "btnCancel"
|
||||||
Me.btnCancel.Size = New System.Drawing.Size(75, 23)
|
Me.btnCancel.Size = New System.Drawing.Size(75, 23)
|
||||||
Me.btnCancel.TabIndex = 6
|
Me.btnCancel.TabIndex = 8
|
||||||
Me.btnCancel.Text = "&Cancel"
|
Me.btnCancel.Text = "&Cancel"
|
||||||
Me.btnCancel.UseVisualStyleBackColor = True
|
Me.btnCancel.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'lblMinutes
|
|
||||||
'
|
|
||||||
Me.lblMinutes.AutoSize = True
|
|
||||||
Me.lblMinutes.Location = New System.Drawing.Point(286, 181)
|
|
||||||
Me.lblMinutes.Name = "lblMinutes"
|
|
||||||
Me.lblMinutes.Size = New System.Drawing.Size(43, 13)
|
|
||||||
Me.lblMinutes.TabIndex = 7
|
|
||||||
Me.lblMinutes.Text = "minutes"
|
|
||||||
'
|
|
||||||
'nudSupressBackupThreshold
|
|
||||||
'
|
|
||||||
Me.nudSupressBackupThreshold.Location = New System.Drawing.Point(229, 179)
|
|
||||||
Me.nudSupressBackupThreshold.Maximum = New Decimal(New Integer() {999, 0, 0, 0})
|
|
||||||
Me.nudSupressBackupThreshold.Name = "nudSupressBackupThreshold"
|
|
||||||
Me.nudSupressBackupThreshold.Size = New System.Drawing.Size(51, 20)
|
|
||||||
Me.nudSupressBackupThreshold.TabIndex = 6
|
|
||||||
'
|
|
||||||
'chkSupressBackup
|
|
||||||
'
|
|
||||||
Me.chkSupressBackup.AutoSize = True
|
|
||||||
Me.chkSupressBackup.Location = New System.Drawing.Point(6, 180)
|
|
||||||
Me.chkSupressBackup.Name = "chkSupressBackup"
|
|
||||||
Me.chkSupressBackup.Size = New System.Drawing.Size(217, 17)
|
|
||||||
Me.chkSupressBackup.TabIndex = 5
|
|
||||||
Me.chkSupressBackup.Text = "Backup only when session time exceeds"
|
|
||||||
Me.chkSupressBackup.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'chkCheckSum
|
|
||||||
'
|
|
||||||
Me.chkCheckSum.AutoSize = True
|
|
||||||
Me.chkCheckSum.Location = New System.Drawing.Point(6, 134)
|
|
||||||
Me.chkCheckSum.Name = "chkCheckSum"
|
|
||||||
Me.chkCheckSum.Size = New System.Drawing.Size(195, 17)
|
|
||||||
Me.chkCheckSum.TabIndex = 3
|
|
||||||
Me.chkCheckSum.Text = "Verify backup files with a checksum"
|
|
||||||
Me.chkCheckSum.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'chkRestoreOnLaunch
|
|
||||||
'
|
|
||||||
Me.chkRestoreOnLaunch.AutoSize = True
|
|
||||||
Me.chkRestoreOnLaunch.Location = New System.Drawing.Point(6, 157)
|
|
||||||
Me.chkRestoreOnLaunch.Name = "chkRestoreOnLaunch"
|
|
||||||
Me.chkRestoreOnLaunch.Size = New System.Drawing.Size(257, 17)
|
|
||||||
Me.chkRestoreOnLaunch.TabIndex = 4
|
|
||||||
Me.chkRestoreOnLaunch.Text = "Notify when there are new backup files to restore"
|
|
||||||
Me.chkRestoreOnLaunch.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'chkOverwriteWarning
|
|
||||||
'
|
|
||||||
Me.chkOverwriteWarning.AutoSize = True
|
|
||||||
Me.chkOverwriteWarning.Location = New System.Drawing.Point(6, 111)
|
|
||||||
Me.chkOverwriteWarning.Name = "chkOverwriteWarning"
|
|
||||||
Me.chkOverwriteWarning.Size = New System.Drawing.Size(139, 17)
|
|
||||||
Me.chkOverwriteWarning.TabIndex = 2
|
|
||||||
Me.chkOverwriteWarning.Text = "Show overwrite warning"
|
|
||||||
Me.chkOverwriteWarning.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'grp7zGeneral
|
'grp7zGeneral
|
||||||
'
|
'
|
||||||
Me.grp7zGeneral.Controls.Add(Me.cboCompression)
|
Me.grp7zGeneral.Controls.Add(Me.cboCompression)
|
||||||
@@ -319,7 +226,7 @@ Partial Class frmSettings
|
|||||||
Me.cboCompression.Location = New System.Drawing.Point(110, 17)
|
Me.cboCompression.Location = New System.Drawing.Point(110, 17)
|
||||||
Me.cboCompression.Name = "cboCompression"
|
Me.cboCompression.Name = "cboCompression"
|
||||||
Me.cboCompression.Size = New System.Drawing.Size(238, 21)
|
Me.cboCompression.Size = New System.Drawing.Size(238, 21)
|
||||||
Me.cboCompression.TabIndex = 1
|
Me.cboCompression.TabIndex = 0
|
||||||
'
|
'
|
||||||
'lblCompression
|
'lblCompression
|
||||||
'
|
'
|
||||||
@@ -335,7 +242,7 @@ Partial Class frmSettings
|
|||||||
Me.btn7zLocation.Location = New System.Drawing.Point(313, 41)
|
Me.btn7zLocation.Location = New System.Drawing.Point(313, 41)
|
||||||
Me.btn7zLocation.Name = "btn7zLocation"
|
Me.btn7zLocation.Name = "btn7zLocation"
|
||||||
Me.btn7zLocation.Size = New System.Drawing.Size(27, 20)
|
Me.btn7zLocation.Size = New System.Drawing.Size(27, 20)
|
||||||
Me.btn7zLocation.TabIndex = 5
|
Me.btn7zLocation.TabIndex = 2
|
||||||
Me.btn7zLocation.Text = "..."
|
Me.btn7zLocation.Text = "..."
|
||||||
Me.btn7zLocation.UseVisualStyleBackColor = True
|
Me.btn7zLocation.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
@@ -344,7 +251,7 @@ Partial Class frmSettings
|
|||||||
Me.txt7zLocation.Location = New System.Drawing.Point(110, 41)
|
Me.txt7zLocation.Location = New System.Drawing.Point(110, 41)
|
||||||
Me.txt7zLocation.Name = "txt7zLocation"
|
Me.txt7zLocation.Name = "txt7zLocation"
|
||||||
Me.txt7zLocation.Size = New System.Drawing.Size(197, 20)
|
Me.txt7zLocation.Size = New System.Drawing.Size(197, 20)
|
||||||
Me.txt7zLocation.TabIndex = 4
|
Me.txt7zLocation.TabIndex = 1
|
||||||
'
|
'
|
||||||
'lblLocation
|
'lblLocation
|
||||||
'
|
'
|
||||||
@@ -360,7 +267,7 @@ Partial Class frmSettings
|
|||||||
Me.txt7zArguments.Location = New System.Drawing.Point(110, 15)
|
Me.txt7zArguments.Location = New System.Drawing.Point(110, 15)
|
||||||
Me.txt7zArguments.Name = "txt7zArguments"
|
Me.txt7zArguments.Name = "txt7zArguments"
|
||||||
Me.txt7zArguments.Size = New System.Drawing.Size(238, 20)
|
Me.txt7zArguments.Size = New System.Drawing.Size(238, 20)
|
||||||
Me.txt7zArguments.TabIndex = 3
|
Me.txt7zArguments.TabIndex = 0
|
||||||
'
|
'
|
||||||
'lblArguments
|
'lblArguments
|
||||||
'
|
'
|
||||||
@@ -394,24 +301,96 @@ Partial Class frmSettings
|
|||||||
Me.btnDefaults.Location = New System.Drawing.Point(12, 321)
|
Me.btnDefaults.Location = New System.Drawing.Point(12, 321)
|
||||||
Me.btnDefaults.Name = "btnDefaults"
|
Me.btnDefaults.Name = "btnDefaults"
|
||||||
Me.btnDefaults.Size = New System.Drawing.Size(110, 23)
|
Me.btnDefaults.Size = New System.Drawing.Size(110, 23)
|
||||||
Me.btnDefaults.TabIndex = 4
|
Me.btnDefaults.TabIndex = 5
|
||||||
Me.btnDefaults.Text = "Set &Defaults"
|
Me.btnDefaults.Text = "Set &Defaults"
|
||||||
Me.btnDefaults.UseVisualStyleBackColor = True
|
Me.btnDefaults.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'pnlBackup
|
'pnlBackup
|
||||||
'
|
'
|
||||||
Me.pnlBackup.Controls.Add(Me.lblMinutes)
|
Me.pnlBackup.Controls.Add(Me.grpBackupConfirmations)
|
||||||
Me.pnlBackup.Controls.Add(Me.nudSupressBackupThreshold)
|
Me.pnlBackup.Controls.Add(Me.grpBackupHandling)
|
||||||
Me.pnlBackup.Controls.Add(Me.grpFolderOptions)
|
Me.pnlBackup.Controls.Add(Me.grpFolderOptions)
|
||||||
Me.pnlBackup.Controls.Add(Me.chkSupressBackup)
|
|
||||||
Me.pnlBackup.Controls.Add(Me.chkBackupConfirm)
|
|
||||||
Me.pnlBackup.Controls.Add(Me.chkCheckSum)
|
|
||||||
Me.pnlBackup.Controls.Add(Me.chkOverwriteWarning)
|
|
||||||
Me.pnlBackup.Controls.Add(Me.chkRestoreOnLaunch)
|
|
||||||
Me.pnlBackup.Location = New System.Drawing.Point(180, 0)
|
Me.pnlBackup.Location = New System.Drawing.Point(180, 0)
|
||||||
Me.pnlBackup.Name = "pnlBackup"
|
Me.pnlBackup.Name = "pnlBackup"
|
||||||
Me.pnlBackup.Size = New System.Drawing.Size(367, 314)
|
Me.pnlBackup.Size = New System.Drawing.Size(367, 314)
|
||||||
Me.pnlBackup.TabIndex = 3
|
Me.pnlBackup.TabIndex = 2
|
||||||
|
'
|
||||||
|
'grpBackupConfirmations
|
||||||
|
'
|
||||||
|
Me.grpBackupConfirmations.Controls.Add(Me.chkBackupConfirm)
|
||||||
|
Me.grpBackupConfirmations.Controls.Add(Me.chkOverwriteWarning)
|
||||||
|
Me.grpBackupConfirmations.Location = New System.Drawing.Point(6, 200)
|
||||||
|
Me.grpBackupConfirmations.Name = "grpBackupConfirmations"
|
||||||
|
Me.grpBackupConfirmations.Size = New System.Drawing.Size(354, 65)
|
||||||
|
Me.grpBackupConfirmations.TabIndex = 2
|
||||||
|
Me.grpBackupConfirmations.TabStop = False
|
||||||
|
Me.grpBackupConfirmations.Text = "Backup Confirmations"
|
||||||
|
'
|
||||||
|
'chkBackupConfirm
|
||||||
|
'
|
||||||
|
Me.chkBackupConfirm.AutoSize = True
|
||||||
|
Me.chkBackupConfirm.Location = New System.Drawing.Point(9, 18)
|
||||||
|
Me.chkBackupConfirm.Name = "chkBackupConfirm"
|
||||||
|
Me.chkBackupConfirm.Size = New System.Drawing.Size(160, 17)
|
||||||
|
Me.chkBackupConfirm.TabIndex = 0
|
||||||
|
Me.chkBackupConfirm.Text = "Disable backup confirmation"
|
||||||
|
Me.chkBackupConfirm.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'chkOverwriteWarning
|
||||||
|
'
|
||||||
|
Me.chkOverwriteWarning.AutoSize = True
|
||||||
|
Me.chkOverwriteWarning.Location = New System.Drawing.Point(9, 41)
|
||||||
|
Me.chkOverwriteWarning.Name = "chkOverwriteWarning"
|
||||||
|
Me.chkOverwriteWarning.Size = New System.Drawing.Size(139, 17)
|
||||||
|
Me.chkOverwriteWarning.TabIndex = 1
|
||||||
|
Me.chkOverwriteWarning.Text = "Show overwrite warning"
|
||||||
|
Me.chkOverwriteWarning.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'grpBackupHandling
|
||||||
|
'
|
||||||
|
Me.grpBackupHandling.Controls.Add(Me.chkAutoRestore)
|
||||||
|
Me.grpBackupHandling.Controls.Add(Me.chkRestoreNotify)
|
||||||
|
Me.grpBackupHandling.Controls.Add(Me.chkAutoMark)
|
||||||
|
Me.grpBackupHandling.Location = New System.Drawing.Point(6, 107)
|
||||||
|
Me.grpBackupHandling.Margin = New System.Windows.Forms.Padding(2)
|
||||||
|
Me.grpBackupHandling.Name = "grpBackupHandling"
|
||||||
|
Me.grpBackupHandling.Padding = New System.Windows.Forms.Padding(2)
|
||||||
|
Me.grpBackupHandling.Size = New System.Drawing.Size(354, 87)
|
||||||
|
Me.grpBackupHandling.TabIndex = 1
|
||||||
|
Me.grpBackupHandling.TabStop = False
|
||||||
|
Me.grpBackupHandling.Text = "Backup Handling"
|
||||||
|
'
|
||||||
|
'chkAutoRestore
|
||||||
|
'
|
||||||
|
Me.chkAutoRestore.AutoSize = True
|
||||||
|
Me.chkAutoRestore.Location = New System.Drawing.Point(8, 41)
|
||||||
|
Me.chkAutoRestore.Margin = New System.Windows.Forms.Padding(2)
|
||||||
|
Me.chkAutoRestore.Name = "chkAutoRestore"
|
||||||
|
Me.chkAutoRestore.Size = New System.Drawing.Size(190, 17)
|
||||||
|
Me.chkAutoRestore.TabIndex = 1
|
||||||
|
Me.chkAutoRestore.Text = "Automatically restore new backups"
|
||||||
|
Me.chkAutoRestore.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'chkRestoreNotify
|
||||||
|
'
|
||||||
|
Me.chkRestoreNotify.AutoSize = True
|
||||||
|
Me.chkRestoreNotify.Location = New System.Drawing.Point(8, 19)
|
||||||
|
Me.chkRestoreNotify.Margin = New System.Windows.Forms.Padding(2)
|
||||||
|
Me.chkRestoreNotify.Name = "chkRestoreNotify"
|
||||||
|
Me.chkRestoreNotify.Size = New System.Drawing.Size(216, 17)
|
||||||
|
Me.chkRestoreNotify.TabIndex = 0
|
||||||
|
Me.chkRestoreNotify.Text = "Display notifications about new backups"
|
||||||
|
Me.chkRestoreNotify.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'chkAutoMark
|
||||||
|
'
|
||||||
|
Me.chkAutoMark.AutoSize = True
|
||||||
|
Me.chkAutoMark.Location = New System.Drawing.Point(8, 63)
|
||||||
|
Me.chkAutoMark.Name = "chkAutoMark"
|
||||||
|
Me.chkAutoMark.Size = New System.Drawing.Size(321, 17)
|
||||||
|
Me.chkAutoMark.TabIndex = 2
|
||||||
|
Me.chkAutoMark.Text = "Automatically mark new backups as restored when appropriate"
|
||||||
|
Me.chkAutoMark.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'pnl7z
|
'pnl7z
|
||||||
'
|
'
|
||||||
@@ -421,7 +400,7 @@ Partial Class frmSettings
|
|||||||
Me.pnl7z.Location = New System.Drawing.Point(180, 0)
|
Me.pnl7z.Location = New System.Drawing.Point(180, 0)
|
||||||
Me.pnl7z.Name = "pnl7z"
|
Me.pnl7z.Name = "pnl7z"
|
||||||
Me.pnl7z.Size = New System.Drawing.Size(367, 314)
|
Me.pnl7z.Size = New System.Drawing.Size(367, 314)
|
||||||
Me.pnl7z.TabIndex = 2
|
Me.pnl7z.TabIndex = 4
|
||||||
'
|
'
|
||||||
'grp7zAdvanced
|
'grp7zAdvanced
|
||||||
'
|
'
|
||||||
@@ -433,7 +412,7 @@ Partial Class frmSettings
|
|||||||
Me.grp7zAdvanced.Location = New System.Drawing.Point(6, 68)
|
Me.grp7zAdvanced.Location = New System.Drawing.Point(6, 68)
|
||||||
Me.grp7zAdvanced.Name = "grp7zAdvanced"
|
Me.grp7zAdvanced.Name = "grp7zAdvanced"
|
||||||
Me.grp7zAdvanced.Size = New System.Drawing.Size(354, 73)
|
Me.grp7zAdvanced.Size = New System.Drawing.Size(354, 73)
|
||||||
Me.grp7zAdvanced.TabIndex = 2
|
Me.grp7zAdvanced.TabIndex = 1
|
||||||
Me.grp7zAdvanced.TabStop = False
|
Me.grp7zAdvanced.TabStop = False
|
||||||
Me.grp7zAdvanced.Text = "Advanced"
|
Me.grp7zAdvanced.Text = "Advanced"
|
||||||
'
|
'
|
||||||
@@ -444,32 +423,102 @@ Partial Class frmSettings
|
|||||||
Me.grp7zInformation.Location = New System.Drawing.Point(6, 146)
|
Me.grp7zInformation.Location = New System.Drawing.Point(6, 146)
|
||||||
Me.grp7zInformation.Name = "grp7zInformation"
|
Me.grp7zInformation.Name = "grp7zInformation"
|
||||||
Me.grp7zInformation.Size = New System.Drawing.Size(354, 63)
|
Me.grp7zInformation.Size = New System.Drawing.Size(354, 63)
|
||||||
Me.grp7zInformation.TabIndex = 1
|
Me.grp7zInformation.TabIndex = 2
|
||||||
Me.grp7zInformation.TabStop = False
|
Me.grp7zInformation.TabStop = False
|
||||||
Me.grp7zInformation.Text = "Utility Information"
|
Me.grp7zInformation.Text = "Utility Information"
|
||||||
'
|
'
|
||||||
'pnlGeneral
|
'pnlGeneral
|
||||||
'
|
'
|
||||||
Me.pnlGeneral.Controls.Add(Me.chkAutoSaveLog)
|
Me.pnlGeneral.Controls.Add(Me.grpGameMonitoringOptions)
|
||||||
|
Me.pnlGeneral.Controls.Add(Me.grpLogOptions)
|
||||||
Me.pnlGeneral.Controls.Add(Me.grpGameData)
|
Me.pnlGeneral.Controls.Add(Me.grpGameData)
|
||||||
Me.pnlGeneral.Controls.Add(Me.chkShowDetectionTips)
|
|
||||||
Me.pnlGeneral.Controls.Add(Me.grpStartup)
|
|
||||||
Me.pnlGeneral.Location = New System.Drawing.Point(180, 0)
|
Me.pnlGeneral.Location = New System.Drawing.Point(180, 0)
|
||||||
Me.pnlGeneral.Name = "pnlGeneral"
|
Me.pnlGeneral.Name = "pnlGeneral"
|
||||||
Me.pnlGeneral.Size = New System.Drawing.Size(367, 314)
|
Me.pnlGeneral.Size = New System.Drawing.Size(367, 314)
|
||||||
Me.pnlGeneral.TabIndex = 1
|
Me.pnlGeneral.TabIndex = 1
|
||||||
'
|
'
|
||||||
|
'grpGameMonitoringOptions
|
||||||
|
'
|
||||||
|
Me.grpGameMonitoringOptions.Controls.Add(Me.chkSuppressBackup)
|
||||||
|
Me.grpGameMonitoringOptions.Controls.Add(Me.lblMinutes)
|
||||||
|
Me.grpGameMonitoringOptions.Controls.Add(Me.chkShowDetectionTips)
|
||||||
|
Me.grpGameMonitoringOptions.Controls.Add(Me.nudSuppressBackupThreshold)
|
||||||
|
Me.grpGameMonitoringOptions.Location = New System.Drawing.Point(6, 115)
|
||||||
|
Me.grpGameMonitoringOptions.Name = "grpGameMonitoringOptions"
|
||||||
|
Me.grpGameMonitoringOptions.Size = New System.Drawing.Size(354, 65)
|
||||||
|
Me.grpGameMonitoringOptions.TabIndex = 1
|
||||||
|
Me.grpGameMonitoringOptions.TabStop = False
|
||||||
|
Me.grpGameMonitoringOptions.Text = "Game Monitoring Options"
|
||||||
|
'
|
||||||
|
'chkSuppressBackup
|
||||||
|
'
|
||||||
|
Me.chkSuppressBackup.AutoSize = True
|
||||||
|
Me.chkSuppressBackup.Location = New System.Drawing.Point(6, 18)
|
||||||
|
Me.chkSuppressBackup.Name = "chkSuppressBackup"
|
||||||
|
Me.chkSuppressBackup.Size = New System.Drawing.Size(158, 17)
|
||||||
|
Me.chkSuppressBackup.TabIndex = 2
|
||||||
|
Me.chkSuppressBackup.Text = "Ignore sessions shorter than"
|
||||||
|
Me.chkSuppressBackup.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'lblMinutes
|
||||||
|
'
|
||||||
|
Me.lblMinutes.AutoSize = True
|
||||||
|
Me.lblMinutes.Location = New System.Drawing.Point(226, 19)
|
||||||
|
Me.lblMinutes.Name = "lblMinutes"
|
||||||
|
Me.lblMinutes.Size = New System.Drawing.Size(43, 13)
|
||||||
|
Me.lblMinutes.TabIndex = 17
|
||||||
|
Me.lblMinutes.Text = "minutes"
|
||||||
|
'
|
||||||
|
'nudSuppressBackupThreshold
|
||||||
|
'
|
||||||
|
Me.nudSuppressBackupThreshold.Location = New System.Drawing.Point(170, 17)
|
||||||
|
Me.nudSuppressBackupThreshold.Maximum = New Decimal(New Integer() {999, 0, 0, 0})
|
||||||
|
Me.nudSuppressBackupThreshold.Name = "nudSuppressBackupThreshold"
|
||||||
|
Me.nudSuppressBackupThreshold.Size = New System.Drawing.Size(51, 20)
|
||||||
|
Me.nudSuppressBackupThreshold.TabIndex = 3
|
||||||
|
'
|
||||||
|
'grpLogOptions
|
||||||
|
'
|
||||||
|
Me.grpLogOptions.Controls.Add(Me.chkDisableSyncMessages)
|
||||||
|
Me.grpLogOptions.Controls.Add(Me.chkAutoSaveLog)
|
||||||
|
Me.grpLogOptions.Location = New System.Drawing.Point(6, 186)
|
||||||
|
Me.grpLogOptions.Name = "grpLogOptions"
|
||||||
|
Me.grpLogOptions.Size = New System.Drawing.Size(354, 65)
|
||||||
|
Me.grpLogOptions.TabIndex = 2
|
||||||
|
Me.grpLogOptions.TabStop = False
|
||||||
|
Me.grpLogOptions.Text = "Log Options"
|
||||||
|
'
|
||||||
|
'chkDisableSyncMessages
|
||||||
|
'
|
||||||
|
Me.chkDisableSyncMessages.AutoSize = True
|
||||||
|
Me.chkDisableSyncMessages.Location = New System.Drawing.Point(6, 19)
|
||||||
|
Me.chkDisableSyncMessages.Name = "chkDisableSyncMessages"
|
||||||
|
Me.chkDisableSyncMessages.Size = New System.Drawing.Size(166, 17)
|
||||||
|
Me.chkDisableSyncMessages.TabIndex = 0
|
||||||
|
Me.chkDisableSyncMessages.Text = "Disable sync event messages"
|
||||||
|
Me.chkDisableSyncMessages.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
'grpGameData
|
'grpGameData
|
||||||
'
|
'
|
||||||
|
Me.grpGameData.Controls.Add(Me.chkSessionTracking)
|
||||||
Me.grpGameData.Controls.Add(Me.chkTimeTracking)
|
Me.grpGameData.Controls.Add(Me.chkTimeTracking)
|
||||||
Me.grpGameData.Controls.Add(Me.chkSync)
|
|
||||||
Me.grpGameData.Controls.Add(Me.btnOptionalFields)
|
Me.grpGameData.Controls.Add(Me.btnOptionalFields)
|
||||||
Me.grpGameData.Location = New System.Drawing.Point(6, 106)
|
Me.grpGameData.Location = New System.Drawing.Point(6, 12)
|
||||||
Me.grpGameData.Name = "grpGameData"
|
Me.grpGameData.Name = "grpGameData"
|
||||||
Me.grpGameData.Size = New System.Drawing.Size(354, 69)
|
Me.grpGameData.Size = New System.Drawing.Size(354, 97)
|
||||||
Me.grpGameData.TabIndex = 1
|
Me.grpGameData.TabIndex = 0
|
||||||
Me.grpGameData.TabStop = False
|
Me.grpGameData.TabStop = False
|
||||||
Me.grpGameData.Text = "Game Data"
|
Me.grpGameData.Text = "Game Data Options"
|
||||||
|
'
|
||||||
|
'chkSessionTracking
|
||||||
|
'
|
||||||
|
Me.chkSessionTracking.AutoSize = True
|
||||||
|
Me.chkSessionTracking.Location = New System.Drawing.Point(6, 42)
|
||||||
|
Me.chkSessionTracking.Name = "chkSessionTracking"
|
||||||
|
Me.chkSessionTracking.Size = New System.Drawing.Size(138, 17)
|
||||||
|
Me.chkSessionTracking.TabIndex = 1
|
||||||
|
Me.chkSessionTracking.Text = "Enable session tracking"
|
||||||
|
Me.chkSessionTracking.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'lstSettings
|
'lstSettings
|
||||||
'
|
'
|
||||||
@@ -479,18 +528,90 @@ Partial Class frmSettings
|
|||||||
Me.lstSettings.Size = New System.Drawing.Size(162, 303)
|
Me.lstSettings.Size = New System.Drawing.Size(162, 303)
|
||||||
Me.lstSettings.TabIndex = 0
|
Me.lstSettings.TabIndex = 0
|
||||||
'
|
'
|
||||||
|
'btnResetMessages
|
||||||
|
'
|
||||||
|
Me.btnResetMessages.Location = New System.Drawing.Point(128, 321)
|
||||||
|
Me.btnResetMessages.Name = "btnResetMessages"
|
||||||
|
Me.btnResetMessages.Size = New System.Drawing.Size(110, 23)
|
||||||
|
Me.btnResetMessages.TabIndex = 6
|
||||||
|
Me.btnResetMessages.Text = "&Reset Warnings"
|
||||||
|
Me.btnResetMessages.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'pnlStartup
|
||||||
|
'
|
||||||
|
Me.pnlStartup.Controls.Add(Me.grpStartup)
|
||||||
|
Me.pnlStartup.Location = New System.Drawing.Point(180, 0)
|
||||||
|
Me.pnlStartup.Name = "pnlStartup"
|
||||||
|
Me.pnlStartup.Size = New System.Drawing.Size(367, 314)
|
||||||
|
Me.pnlStartup.TabIndex = 3
|
||||||
|
'
|
||||||
|
'grpStartup
|
||||||
|
'
|
||||||
|
Me.grpStartup.Controls.Add(Me.chkBackupOnLaunch)
|
||||||
|
Me.grpStartup.Controls.Add(Me.chkStartWindows)
|
||||||
|
Me.grpStartup.Controls.Add(Me.chkStartToTray)
|
||||||
|
Me.grpStartup.Controls.Add(Me.chkMonitorOnStartup)
|
||||||
|
Me.grpStartup.Location = New System.Drawing.Point(6, 12)
|
||||||
|
Me.grpStartup.Name = "grpStartup"
|
||||||
|
Me.grpStartup.Size = New System.Drawing.Size(354, 112)
|
||||||
|
Me.grpStartup.TabIndex = 1
|
||||||
|
Me.grpStartup.TabStop = False
|
||||||
|
Me.grpStartup.Text = "Startup Options"
|
||||||
|
'
|
||||||
|
'chkBackupOnLaunch
|
||||||
|
'
|
||||||
|
Me.chkBackupOnLaunch.AutoSize = True
|
||||||
|
Me.chkBackupOnLaunch.Location = New System.Drawing.Point(6, 88)
|
||||||
|
Me.chkBackupOnLaunch.Name = "chkBackupOnLaunch"
|
||||||
|
Me.chkBackupOnLaunch.Size = New System.Drawing.Size(185, 17)
|
||||||
|
Me.chkBackupOnLaunch.TabIndex = 3
|
||||||
|
Me.chkBackupOnLaunch.Text = "Backup GBM data files on launch"
|
||||||
|
Me.chkBackupOnLaunch.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'chkStartWindows
|
||||||
|
'
|
||||||
|
Me.chkStartWindows.AutoSize = True
|
||||||
|
Me.chkStartWindows.Location = New System.Drawing.Point(6, 19)
|
||||||
|
Me.chkStartWindows.Name = "chkStartWindows"
|
||||||
|
Me.chkStartWindows.Size = New System.Drawing.Size(117, 17)
|
||||||
|
Me.chkStartWindows.TabIndex = 0
|
||||||
|
Me.chkStartWindows.Text = "Start with Windows"
|
||||||
|
Me.chkStartWindows.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'chkStartToTray
|
||||||
|
'
|
||||||
|
Me.chkStartToTray.AutoSize = True
|
||||||
|
Me.chkStartToTray.Location = New System.Drawing.Point(6, 42)
|
||||||
|
Me.chkStartToTray.Name = "chkStartToTray"
|
||||||
|
Me.chkStartToTray.Size = New System.Drawing.Size(115, 17)
|
||||||
|
Me.chkStartToTray.TabIndex = 1
|
||||||
|
Me.chkStartToTray.Text = "Start to system tray"
|
||||||
|
Me.chkStartToTray.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'chkMonitorOnStartup
|
||||||
|
'
|
||||||
|
Me.chkMonitorOnStartup.AutoSize = True
|
||||||
|
Me.chkMonitorOnStartup.Location = New System.Drawing.Point(6, 65)
|
||||||
|
Me.chkMonitorOnStartup.Name = "chkMonitorOnStartup"
|
||||||
|
Me.chkMonitorOnStartup.Size = New System.Drawing.Size(149, 17)
|
||||||
|
Me.chkMonitorOnStartup.TabIndex = 2
|
||||||
|
Me.chkMonitorOnStartup.Text = "Start monitoring on launch"
|
||||||
|
Me.chkMonitorOnStartup.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
'frmSettings
|
'frmSettings
|
||||||
'
|
'
|
||||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||||
Me.ClientSize = New System.Drawing.Size(554, 361)
|
Me.ClientSize = New System.Drawing.Size(554, 361)
|
||||||
|
Me.Controls.Add(Me.pnlGeneral)
|
||||||
|
Me.Controls.Add(Me.pnlStartup)
|
||||||
|
Me.Controls.Add(Me.pnl7z)
|
||||||
|
Me.Controls.Add(Me.pnlBackup)
|
||||||
|
Me.Controls.Add(Me.btnResetMessages)
|
||||||
Me.Controls.Add(Me.lstSettings)
|
Me.Controls.Add(Me.lstSettings)
|
||||||
Me.Controls.Add(Me.btnDefaults)
|
Me.Controls.Add(Me.btnDefaults)
|
||||||
Me.Controls.Add(Me.btnCancel)
|
Me.Controls.Add(Me.btnCancel)
|
||||||
Me.Controls.Add(Me.btnSave)
|
Me.Controls.Add(Me.btnSave)
|
||||||
Me.Controls.Add(Me.pnlGeneral)
|
|
||||||
Me.Controls.Add(Me.pnl7z)
|
|
||||||
Me.Controls.Add(Me.pnlBackup)
|
|
||||||
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
|
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
|
||||||
Me.MaximizeBox = False
|
Me.MaximizeBox = False
|
||||||
Me.MinimizeBox = False
|
Me.MinimizeBox = False
|
||||||
@@ -499,29 +620,33 @@ Partial Class frmSettings
|
|||||||
Me.ShowInTaskbar = False
|
Me.ShowInTaskbar = False
|
||||||
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||||
Me.Text = "Settings"
|
Me.Text = "Settings"
|
||||||
Me.grpStartup.ResumeLayout(False)
|
|
||||||
Me.grpStartup.PerformLayout()
|
|
||||||
Me.grpFolderOptions.ResumeLayout(False)
|
Me.grpFolderOptions.ResumeLayout(False)
|
||||||
Me.grpFolderOptions.PerformLayout()
|
Me.grpFolderOptions.PerformLayout()
|
||||||
CType(Me.nudSupressBackupThreshold, System.ComponentModel.ISupportInitialize).EndInit()
|
|
||||||
Me.grp7zGeneral.ResumeLayout(False)
|
Me.grp7zGeneral.ResumeLayout(False)
|
||||||
Me.grp7zGeneral.PerformLayout()
|
Me.grp7zGeneral.PerformLayout()
|
||||||
Me.pnlBackup.ResumeLayout(False)
|
Me.pnlBackup.ResumeLayout(False)
|
||||||
Me.pnlBackup.PerformLayout()
|
Me.grpBackupConfirmations.ResumeLayout(False)
|
||||||
|
Me.grpBackupConfirmations.PerformLayout()
|
||||||
|
Me.grpBackupHandling.ResumeLayout(False)
|
||||||
|
Me.grpBackupHandling.PerformLayout()
|
||||||
Me.pnl7z.ResumeLayout(False)
|
Me.pnl7z.ResumeLayout(False)
|
||||||
Me.grp7zAdvanced.ResumeLayout(False)
|
Me.grp7zAdvanced.ResumeLayout(False)
|
||||||
Me.grp7zAdvanced.PerformLayout()
|
Me.grp7zAdvanced.PerformLayout()
|
||||||
Me.grp7zInformation.ResumeLayout(False)
|
Me.grp7zInformation.ResumeLayout(False)
|
||||||
Me.pnlGeneral.ResumeLayout(False)
|
Me.pnlGeneral.ResumeLayout(False)
|
||||||
Me.pnlGeneral.PerformLayout()
|
Me.grpGameMonitoringOptions.ResumeLayout(False)
|
||||||
|
Me.grpGameMonitoringOptions.PerformLayout()
|
||||||
|
CType(Me.nudSuppressBackupThreshold, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
Me.grpLogOptions.ResumeLayout(False)
|
||||||
|
Me.grpLogOptions.PerformLayout()
|
||||||
Me.grpGameData.ResumeLayout(False)
|
Me.grpGameData.ResumeLayout(False)
|
||||||
Me.grpGameData.PerformLayout()
|
Me.grpGameData.PerformLayout()
|
||||||
|
Me.pnlStartup.ResumeLayout(False)
|
||||||
|
Me.grpStartup.ResumeLayout(False)
|
||||||
|
Me.grpStartup.PerformLayout()
|
||||||
Me.ResumeLayout(False)
|
Me.ResumeLayout(False)
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Friend WithEvents chkMonitorOnStartup As System.Windows.Forms.CheckBox
|
|
||||||
Friend WithEvents chkBackupConfirm As System.Windows.Forms.CheckBox
|
|
||||||
Friend WithEvents grpStartup As System.Windows.Forms.GroupBox
|
|
||||||
Friend WithEvents grpFolderOptions As System.Windows.Forms.GroupBox
|
Friend WithEvents grpFolderOptions As System.Windows.Forms.GroupBox
|
||||||
Friend WithEvents txtBackupFolder As System.Windows.Forms.TextBox
|
Friend WithEvents txtBackupFolder As System.Windows.Forms.TextBox
|
||||||
Friend WithEvents btnSave As System.Windows.Forms.Button
|
Friend WithEvents btnSave As System.Windows.Forms.Button
|
||||||
@@ -529,17 +654,8 @@ Partial Class frmSettings
|
|||||||
Friend WithEvents lblBackupFolder As System.Windows.Forms.Label
|
Friend WithEvents lblBackupFolder As System.Windows.Forms.Label
|
||||||
Friend WithEvents btnBackupFolder As System.Windows.Forms.Button
|
Friend WithEvents btnBackupFolder As System.Windows.Forms.Button
|
||||||
Friend WithEvents chkShowDetectionTips As System.Windows.Forms.CheckBox
|
Friend WithEvents chkShowDetectionTips As System.Windows.Forms.CheckBox
|
||||||
Friend WithEvents chkStartToTray As System.Windows.Forms.CheckBox
|
|
||||||
Friend WithEvents chkOverwriteWarning As System.Windows.Forms.CheckBox
|
|
||||||
Friend WithEvents chkCreateFolder As System.Windows.Forms.CheckBox
|
Friend WithEvents chkCreateFolder As System.Windows.Forms.CheckBox
|
||||||
Friend WithEvents chkRestoreOnLaunch As System.Windows.Forms.CheckBox
|
|
||||||
Friend WithEvents chkSync As System.Windows.Forms.CheckBox
|
|
||||||
Friend WithEvents chkCheckSum As System.Windows.Forms.CheckBox
|
|
||||||
Friend WithEvents chkStartWindows As System.Windows.Forms.CheckBox
|
|
||||||
Friend WithEvents chkTimeTracking As System.Windows.Forms.CheckBox
|
Friend WithEvents chkTimeTracking As System.Windows.Forms.CheckBox
|
||||||
Friend WithEvents lblMinutes As Label
|
|
||||||
Friend WithEvents nudSupressBackupThreshold As NumericUpDown
|
|
||||||
Friend WithEvents chkSupressBackup As CheckBox
|
|
||||||
Friend WithEvents grp7zGeneral As GroupBox
|
Friend WithEvents grp7zGeneral As GroupBox
|
||||||
Friend WithEvents cboCompression As ComboBox
|
Friend WithEvents cboCompression As ComboBox
|
||||||
Friend WithEvents lblCompression As Label
|
Friend WithEvents lblCompression As Label
|
||||||
@@ -560,4 +676,26 @@ Partial Class frmSettings
|
|||||||
Friend WithEvents lstSettings As ListBox
|
Friend WithEvents lstSettings As ListBox
|
||||||
Friend WithEvents grp7zAdvanced As GroupBox
|
Friend WithEvents grp7zAdvanced As GroupBox
|
||||||
Friend WithEvents grp7zInformation As GroupBox
|
Friend WithEvents grp7zInformation As GroupBox
|
||||||
|
Friend WithEvents chkBackupConfirm As CheckBox
|
||||||
|
Friend WithEvents chkOverwriteWarning As CheckBox
|
||||||
|
Friend WithEvents grpBackupHandling As GroupBox
|
||||||
|
Friend WithEvents chkAutoMark As CheckBox
|
||||||
|
Friend WithEvents chkAutoRestore As CheckBox
|
||||||
|
Friend WithEvents chkRestoreNotify As CheckBox
|
||||||
|
Friend WithEvents chkSessionTracking As CheckBox
|
||||||
|
Friend WithEvents lblMinutes As Label
|
||||||
|
Friend WithEvents nudSuppressBackupThreshold As NumericUpDown
|
||||||
|
Friend WithEvents chkSuppressBackup As CheckBox
|
||||||
|
Friend WithEvents btnResetMessages As Button
|
||||||
|
Friend WithEvents chkUseGameID As CheckBox
|
||||||
|
Friend WithEvents grpBackupConfirmations As GroupBox
|
||||||
|
Friend WithEvents grpLogOptions As GroupBox
|
||||||
|
Friend WithEvents chkDisableSyncMessages As CheckBox
|
||||||
|
Friend WithEvents pnlStartup As Panel
|
||||||
|
Friend WithEvents grpStartup As GroupBox
|
||||||
|
Friend WithEvents chkBackupOnLaunch As CheckBox
|
||||||
|
Friend WithEvents chkStartWindows As CheckBox
|
||||||
|
Friend WithEvents chkStartToTray As CheckBox
|
||||||
|
Friend WithEvents chkMonitorOnStartup As CheckBox
|
||||||
|
Friend WithEvents grpGameMonitoringOptions As GroupBox
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
+64
-48
@@ -4,7 +4,6 @@ Imports System.IO
|
|||||||
Public Class frmSettings
|
Public Class frmSettings
|
||||||
Dim bShutdown As Boolean = False
|
Dim bShutdown As Boolean = False
|
||||||
Dim bSyncSettingsChanged As Boolean = False
|
Dim bSyncSettingsChanged As Boolean = False
|
||||||
Dim bCheckSumDisabled As Boolean = False
|
|
||||||
Dim eCurrentSyncFields As clsGame.eOptionalSyncFields
|
Dim eCurrentSyncFields As clsGame.eOptionalSyncFields
|
||||||
Private oSettings As mgrSettings
|
Private oSettings As mgrSettings
|
||||||
|
|
||||||
@@ -35,6 +34,11 @@ Public Class frmSettings
|
|||||||
|
|
||||||
Private Function ValidateSettings() As Boolean
|
Private Function ValidateSettings() As Boolean
|
||||||
|
|
||||||
|
'Show Start with Windows warning if running as admin
|
||||||
|
If chkStartWindows.Checked And mgrCommon.IsElevated Then
|
||||||
|
mgrCommon.ShowMessage(frmSettings_WarningAdminStart, MsgBoxStyle.Exclamation)
|
||||||
|
End If
|
||||||
|
|
||||||
'Only modify registry key when the value changed
|
'Only modify registry key when the value changed
|
||||||
If chkStartWindows.Checked <> oSettings.StartWithWindows Then
|
If chkStartWindows.Checked <> oSettings.StartWithWindows Then
|
||||||
HandleRegistryUpdate(chkStartWindows.Checked)
|
HandleRegistryUpdate(chkStartWindows.Checked)
|
||||||
@@ -43,15 +47,21 @@ Public Class frmSettings
|
|||||||
|
|
||||||
oSettings.MonitorOnStartup = chkMonitorOnStartup.Checked
|
oSettings.MonitorOnStartup = chkMonitorOnStartup.Checked
|
||||||
oSettings.StartToTray = chkStartToTray.Checked
|
oSettings.StartToTray = chkStartToTray.Checked
|
||||||
|
oSettings.BackupOnLaunch = chkBackupOnLaunch.Checked
|
||||||
oSettings.ShowDetectionToolTips = chkShowDetectionTips.Checked
|
oSettings.ShowDetectionToolTips = chkShowDetectionTips.Checked
|
||||||
|
oSettings.DisableSyncMessages = chkDisableSyncMessages.Checked
|
||||||
oSettings.AutoSaveLog = chkAutoSaveLog.Checked
|
oSettings.AutoSaveLog = chkAutoSaveLog.Checked
|
||||||
oSettings.DisableConfirmation = chkBackupConfirm.Checked
|
oSettings.DisableConfirmation = chkBackupConfirm.Checked
|
||||||
oSettings.CreateSubFolder = chkCreateFolder.Checked
|
oSettings.CreateSubFolder = chkCreateFolder.Checked
|
||||||
|
oSettings.UseGameID = chkUseGameID.Checked
|
||||||
oSettings.ShowOverwriteWarning = chkOverwriteWarning.Checked
|
oSettings.ShowOverwriteWarning = chkOverwriteWarning.Checked
|
||||||
oSettings.RestoreOnLaunch = chkRestoreOnLaunch.Checked
|
oSettings.RestoreOnLaunch = chkRestoreNotify.Checked
|
||||||
|
oSettings.AutoRestore = chkAutoRestore.Checked
|
||||||
|
oSettings.AutoMark = chkAutoMark.Checked
|
||||||
oSettings.TimeTracking = chkTimeTracking.Checked
|
oSettings.TimeTracking = chkTimeTracking.Checked
|
||||||
oSettings.SupressBackup = chkSupressBackup.Checked
|
oSettings.SessionTracking = chkSessionTracking.Checked
|
||||||
oSettings.SupressBackupThreshold = nudSupressBackupThreshold.Value
|
oSettings.SuppressBackup = chkSuppressBackup.Checked
|
||||||
|
oSettings.SuppressBackupThreshold = nudSuppressBackupThreshold.Value
|
||||||
oSettings.CompressionLevel = cboCompression.SelectedValue
|
oSettings.CompressionLevel = cboCompression.SelectedValue
|
||||||
|
|
||||||
If oSettings.Custom7zArguments <> txt7zArguments.Text.Trim And txt7zArguments.Text.Trim <> String.Empty Then
|
If oSettings.Custom7zArguments <> txt7zArguments.Text.Trim And txt7zArguments.Text.Trim <> String.Empty Then
|
||||||
@@ -61,21 +71,9 @@ Public Class frmSettings
|
|||||||
oSettings.Custom7zArguments = txt7zArguments.Text.Trim
|
oSettings.Custom7zArguments = txt7zArguments.Text.Trim
|
||||||
oSettings.Custom7zLocation = txt7zLocation.Text.Trim
|
oSettings.Custom7zLocation = txt7zLocation.Text.Trim
|
||||||
|
|
||||||
'We need to clear all checksums its turned off
|
|
||||||
If chkCheckSum.Checked = False And oSettings.CheckSum = True Then
|
|
||||||
bCheckSumDisabled = True
|
|
||||||
End If
|
|
||||||
oSettings.CheckSum = chkCheckSum.Checked
|
|
||||||
|
|
||||||
'Turning syncing from off to on is the same as changing the backup folder
|
|
||||||
If chkSync.Checked = True And oSettings.Sync = False Then
|
|
||||||
bSyncSettingsChanged = True
|
|
||||||
End If
|
|
||||||
oSettings.Sync = chkSync.Checked
|
|
||||||
|
|
||||||
If Directory.Exists(txtBackupFolder.Text) Then
|
If Directory.Exists(txtBackupFolder.Text) Then
|
||||||
If oSettings.BackupFolder <> txtBackupFolder.Text Then
|
If oSettings.BackupFolder <> txtBackupFolder.Text Then
|
||||||
If chkSync.Checked Then bSyncSettingsChanged = True
|
bSyncSettingsChanged = True
|
||||||
End If
|
End If
|
||||||
oSettings.BackupFolder = txtBackupFolder.Text
|
oSettings.BackupFolder = txtBackupFolder.Text
|
||||||
Else
|
Else
|
||||||
@@ -95,7 +93,7 @@ Public Class frmSettings
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'We must trigger a sync if optional fields have changed
|
'We must trigger a sync if optional fields have changed
|
||||||
If Settings.Sync And (eCurrentSyncFields <> Settings.SyncFields) Then
|
If eCurrentSyncFields <> Settings.SyncFields Then
|
||||||
bSyncSettingsChanged = True
|
bSyncSettingsChanged = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -106,7 +104,6 @@ Public Class frmSettings
|
|||||||
If ValidateSettings() Then
|
If ValidateSettings() Then
|
||||||
oSettings.SaveSettings()
|
oSettings.SaveSettings()
|
||||||
If bSyncSettingsChanged Then mgrMonitorList.HandleBackupLocationChange(Settings)
|
If bSyncSettingsChanged Then mgrMonitorList.HandleBackupLocationChange(Settings)
|
||||||
If bCheckSumDisabled Then mgrManifest.DoManifestHashWipe()
|
|
||||||
Return True
|
Return True
|
||||||
Else
|
Else
|
||||||
Return False
|
Return False
|
||||||
@@ -168,23 +165,33 @@ Public Class frmSettings
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ResetMessages()
|
||||||
|
If mgrCommon.ShowMessage(frmSettings_ConfirmMessageReset, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
|
||||||
|
oSettings.SuppressMessages = mgrSettings.eSuppressMessages.None
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub LoadSettings()
|
Private Sub LoadSettings()
|
||||||
chkStartWindows.Checked = oSettings.StartWithWindows
|
chkStartWindows.Checked = oSettings.StartWithWindows
|
||||||
chkMonitorOnStartup.Checked = oSettings.MonitorOnStartup
|
chkMonitorOnStartup.Checked = oSettings.MonitorOnStartup
|
||||||
chkStartToTray.Checked = oSettings.StartToTray
|
chkStartToTray.Checked = oSettings.StartToTray
|
||||||
|
chkBackupOnLaunch.Checked = oSettings.BackupOnLaunch
|
||||||
chkShowDetectionTips.Checked = oSettings.ShowDetectionToolTips
|
chkShowDetectionTips.Checked = oSettings.ShowDetectionToolTips
|
||||||
|
chkDisableSyncMessages.Checked = oSettings.DisableSyncMessages
|
||||||
chkAutoSaveLog.Checked = oSettings.AutoSaveLog
|
chkAutoSaveLog.Checked = oSettings.AutoSaveLog
|
||||||
chkBackupConfirm.Checked = oSettings.DisableConfirmation
|
chkBackupConfirm.Checked = oSettings.DisableConfirmation
|
||||||
chkCreateFolder.Checked = oSettings.CreateSubFolder
|
chkCreateFolder.Checked = oSettings.CreateSubFolder
|
||||||
|
chkUseGameID.Checked = oSettings.UseGameID
|
||||||
chkOverwriteWarning.Checked = oSettings.ShowOverwriteWarning
|
chkOverwriteWarning.Checked = oSettings.ShowOverwriteWarning
|
||||||
chkRestoreOnLaunch.Checked = oSettings.RestoreOnLaunch
|
chkRestoreNotify.Checked = oSettings.RestoreOnLaunch
|
||||||
|
chkAutoRestore.Checked = oSettings.AutoRestore
|
||||||
|
chkAutoMark.Checked = oSettings.AutoMark
|
||||||
txtBackupFolder.Text = oSettings.BackupFolder
|
txtBackupFolder.Text = oSettings.BackupFolder
|
||||||
chkSync.Checked = oSettings.Sync
|
|
||||||
chkCheckSum.Checked = oSettings.CheckSum
|
|
||||||
chkTimeTracking.Checked = oSettings.TimeTracking
|
chkTimeTracking.Checked = oSettings.TimeTracking
|
||||||
chkSupressBackup.Checked = oSettings.SupressBackup
|
chkSessionTracking.Checked = oSettings.SessionTracking
|
||||||
nudSupressBackupThreshold.Value = oSettings.SupressBackupThreshold
|
chkSuppressBackup.Checked = oSettings.SuppressBackup
|
||||||
nudSupressBackupThreshold.Enabled = chkSupressBackup.Checked
|
nudSuppressBackupThreshold.Value = oSettings.SuppressBackupThreshold
|
||||||
|
nudSuppressBackupThreshold.Enabled = chkSuppressBackup.Checked
|
||||||
cboCompression.SelectedValue = oSettings.CompressionLevel
|
cboCompression.SelectedValue = oSettings.CompressionLevel
|
||||||
txt7zArguments.Text = oSettings.Custom7zArguments
|
txt7zArguments.Text = oSettings.Custom7zArguments
|
||||||
txt7zLocation.Text = oSettings.Custom7zLocation
|
txt7zLocation.Text = oSettings.Custom7zLocation
|
||||||
@@ -199,8 +206,6 @@ Public Class frmSettings
|
|||||||
'Retrieve 7z Info
|
'Retrieve 7z Info
|
||||||
GetUtilityInfo(oSettings.Custom7zLocation)
|
GetUtilityInfo(oSettings.Custom7zLocation)
|
||||||
|
|
||||||
'Toggle Sync Button
|
|
||||||
ToggleSyncButton()
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub LoadCombos()
|
Private Sub LoadCombos()
|
||||||
@@ -226,7 +231,8 @@ Public Class frmSettings
|
|||||||
|
|
||||||
oSettingsItems.Add(New KeyValuePair(Of Integer, String)(0, frmSettings_lstSettings_General))
|
oSettingsItems.Add(New KeyValuePair(Of Integer, String)(0, frmSettings_lstSettings_General))
|
||||||
oSettingsItems.Add(New KeyValuePair(Of Integer, String)(1, frmSettings_lstSettings_BackupRestore))
|
oSettingsItems.Add(New KeyValuePair(Of Integer, String)(1, frmSettings_lstSettings_BackupRestore))
|
||||||
oSettingsItems.Add(New KeyValuePair(Of Integer, String)(2, frmSettings_lstSettings_7z))
|
oSettingsItems.Add(New KeyValuePair(Of Integer, String)(2, frmSettings_lstSettings_Startup))
|
||||||
|
oSettingsItems.Add(New KeyValuePair(Of Integer, String)(3, frmSettings_lstSettings_7z))
|
||||||
|
|
||||||
lstSettings.DataSource = oSettingsItems
|
lstSettings.DataSource = oSettingsItems
|
||||||
|
|
||||||
@@ -234,14 +240,6 @@ Public Class frmSettings
|
|||||||
lstSettings.SelectedIndex = 0
|
lstSettings.SelectedIndex = 0
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub ToggleSyncButton()
|
|
||||||
If chkSync.Checked Then
|
|
||||||
btnOptionalFields.Enabled = True
|
|
||||||
Else
|
|
||||||
btnOptionalFields.Enabled = False
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub OpenOptionalFields()
|
Private Sub OpenOptionalFields()
|
||||||
Dim frm As New frmSyncFields
|
Dim frm As New frmSyncFields
|
||||||
frm.SyncFields = Settings.SyncFields
|
frm.SyncFields = Settings.SyncFields
|
||||||
@@ -258,15 +256,24 @@ Public Class frmSettings
|
|||||||
Select Case oSettingsItem.Key
|
Select Case oSettingsItem.Key
|
||||||
Case 0
|
Case 0
|
||||||
pnlGeneral.Visible = True
|
pnlGeneral.Visible = True
|
||||||
|
pnlStartup.Visible = False
|
||||||
pnlBackup.Visible = False
|
pnlBackup.Visible = False
|
||||||
pnl7z.Visible = False
|
pnl7z.Visible = False
|
||||||
Case 1
|
Case 1
|
||||||
pnlGeneral.Visible = False
|
pnlGeneral.Visible = False
|
||||||
pnlBackup.Visible = True
|
pnlBackup.Visible = True
|
||||||
|
pnlStartup.Visible = False
|
||||||
pnl7z.Visible = False
|
pnl7z.Visible = False
|
||||||
Case 2
|
Case 2
|
||||||
pnlGeneral.Visible = False
|
pnlGeneral.Visible = False
|
||||||
pnlBackup.Visible = False
|
pnlBackup.Visible = False
|
||||||
|
pnlStartup.Visible = True
|
||||||
|
pnl7z.Visible = False
|
||||||
|
|
||||||
|
Case 3
|
||||||
|
pnlGeneral.Visible = False
|
||||||
|
pnlBackup.Visible = False
|
||||||
|
pnlStartup.Visible = False
|
||||||
pnl7z.Visible = True
|
pnl7z.Visible = True
|
||||||
End Select
|
End Select
|
||||||
End If
|
End If
|
||||||
@@ -278,11 +285,14 @@ Public Class frmSettings
|
|||||||
|
|
||||||
'Set Form Text
|
'Set Form Text
|
||||||
lblMinutes.Text = frmSettings_lblMinutes
|
lblMinutes.Text = frmSettings_lblMinutes
|
||||||
chkSupressBackup.Text = frmSettings_chkSupressBackup
|
chkSuppressBackup.Text = frmSettings_chkSuppressBackup
|
||||||
chkCheckSum.Text = frmSettings_chkCheckSum
|
grpBackupHandling.Text = frmSettings_grpBackupHandling
|
||||||
chkRestoreOnLaunch.Text = frmSettings_chkRestoreOnLaunch
|
chkRestoreNotify.Text = frmSettings_chkRestoreNotify
|
||||||
|
chkAutoRestore.Text = frmSettings_chkAutoRestore
|
||||||
|
chkAutoMark.Text = frmSettings_chkAutoMark
|
||||||
chkOverwriteWarning.Text = frmSettings_chkOverwriteWarning
|
chkOverwriteWarning.Text = frmSettings_chkOverwriteWarning
|
||||||
chkCreateFolder.Text = frmSettings_chkCreateFolder
|
chkCreateFolder.Text = frmSettings_chkCreateFolder
|
||||||
|
chkUseGameID.Text = frmSettings_chkUseGameID
|
||||||
chkBackupConfirm.Text = frmSettings_chkBackupConfirm
|
chkBackupConfirm.Text = frmSettings_chkBackupConfirm
|
||||||
btnCancel.Text = frmSettings_btnCancel
|
btnCancel.Text = frmSettings_btnCancel
|
||||||
btnSave.Text = frmSettings_btnSave
|
btnSave.Text = frmSettings_btnSave
|
||||||
@@ -292,8 +302,8 @@ Public Class frmSettings
|
|||||||
grpStartup.Text = frmSettings_grpStartup
|
grpStartup.Text = frmSettings_grpStartup
|
||||||
grpGameData.Text = frmSettings_grpGameData
|
grpGameData.Text = frmSettings_grpGameData
|
||||||
chkTimeTracking.Text = frmSettings_chkTimeTracking
|
chkTimeTracking.Text = frmSettings_chkTimeTracking
|
||||||
|
chkSessionTracking.Text = frmSettings_chkSessionTracking
|
||||||
chkStartWindows.Text = frmSettings_chkStartWindows
|
chkStartWindows.Text = frmSettings_chkStartWindows
|
||||||
chkSync.Text = frmSettings_chkSync
|
|
||||||
chkShowDetectionTips.Text = frmSettings_chkShowDetectionTips
|
chkShowDetectionTips.Text = frmSettings_chkShowDetectionTips
|
||||||
chkAutoSaveLog.Text = frmSettings_chkAutoSaveLog
|
chkAutoSaveLog.Text = frmSettings_chkAutoSaveLog
|
||||||
chkStartToTray.Text = frmSettings_chkStartToTray
|
chkStartToTray.Text = frmSettings_chkStartToTray
|
||||||
@@ -306,6 +316,12 @@ Public Class frmSettings
|
|||||||
lblArguments.Text = frmSettings_lblArguments
|
lblArguments.Text = frmSettings_lblArguments
|
||||||
lblLocation.Text = frmSettings_lblLocation
|
lblLocation.Text = frmSettings_lblLocation
|
||||||
btnOptionalFields.Text = frmSettings_btnOptionalFields
|
btnOptionalFields.Text = frmSettings_btnOptionalFields
|
||||||
|
btnResetMessages.Text = frmSettings_btnResetMessages
|
||||||
|
chkBackupOnLaunch.Text = frmSettings_chkBackupOnLaunch
|
||||||
|
grpBackupConfirmations.Text = frmSettings_grpBackupConfirmations
|
||||||
|
grpLogOptions.Text = frmSettings_grpLogOptions
|
||||||
|
chkDisableSyncMessages.Text = frmSettings_chkDisableSyncMessages
|
||||||
|
grpGameMonitoringOptions.Text = frmSettings_grpGameMonitoringOptions
|
||||||
|
|
||||||
'Unix Handler
|
'Unix Handler
|
||||||
If mgrCommon.IsUnix Then
|
If mgrCommon.IsUnix Then
|
||||||
@@ -339,21 +355,21 @@ Public Class frmSettings
|
|||||||
|
|
||||||
Private Sub btnBackupFolder_Click(sender As System.Object, e As System.EventArgs) Handles btnBackupFolder.Click
|
Private Sub btnBackupFolder_Click(sender As System.Object, e As System.EventArgs) Handles btnBackupFolder.Click
|
||||||
Dim sNewFolder As String
|
Dim sNewFolder As String
|
||||||
sNewFolder = mgrCommon.OpenFolderBrowser(frmSettings_BrowseFolder, oSettings.BackupFolder, True)
|
sNewFolder = mgrCommon.OpenFolderBrowser("Settings_Backup_Path", frmSettings_BrowseFolder, oSettings.BackupFolder, True, False)
|
||||||
If sNewFolder <> String.Empty Then txtBackupFolder.Text = sNewFolder
|
If sNewFolder <> String.Empty Then txtBackupFolder.Text = sNewFolder
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub btn7zLocation_Click(sender As Object, e As EventArgs) Handles btn7zLocation.Click
|
Private Sub btn7zLocation_Click(sender As Object, e As EventArgs) Handles btn7zLocation.Click
|
||||||
Dim sNewLocation As String
|
Dim sNewLocation As String
|
||||||
sNewLocation = mgrCommon.OpenFileBrowser(frmSettings_Browse7za, "exe", frmSettings_7zaFileType, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), False)
|
sNewLocation = mgrCommon.OpenFileBrowser("7z_Browse", frmSettings_Browse7za, "exe", frmSettings_7zaFileType, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), False)
|
||||||
If sNewLocation <> String.Empty Then
|
If sNewLocation <> String.Empty Then
|
||||||
txt7zLocation.Text = sNewLocation
|
txt7zLocation.Text = sNewLocation
|
||||||
GetUtilityInfo(txt7zLocation.Text)
|
GetUtilityInfo(txt7zLocation.Text)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub chkSupressBackup_CheckedChanged(sender As Object, e As EventArgs) Handles chkSupressBackup.CheckedChanged
|
Private Sub chkSuppressBackup_CheckedChanged(sender As Object, e As EventArgs) Handles chkSuppressBackup.CheckedChanged
|
||||||
nudSupressBackupThreshold.Enabled = chkSupressBackup.Checked
|
nudSuppressBackupThreshold.Enabled = chkSuppressBackup.Checked
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub txt7zLocation_Leave(sender As Object, e As EventArgs) Handles txt7zLocation.Leave
|
Private Sub txt7zLocation_Leave(sender As Object, e As EventArgs) Handles txt7zLocation.Leave
|
||||||
@@ -364,12 +380,12 @@ Public Class frmSettings
|
|||||||
SetDefaults()
|
SetDefaults()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub btnOptionalFields_Click(sender As Object, e As EventArgs) Handles btnOptionalFields.Click
|
Private Sub btnResetMessages_Click(sender As Object, e As EventArgs) Handles btnResetMessages.Click
|
||||||
OpenOptionalFields()
|
ResetMessages()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub chkSync_CheckedChanged(sender As Object, e As EventArgs) Handles chkSync.CheckedChanged
|
Private Sub btnOptionalFields_Click(sender As Object, e As EventArgs) Handles btnOptionalFields.Click
|
||||||
ToggleSyncButton()
|
OpenOptionalFields()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub lstSettings_SelectedValueChanged(sender As Object, e As EventArgs) Handles lstSettings.SelectedValueChanged
|
Private Sub lstSettings_SelectedValueChanged(sender As Object, e As EventArgs) Handles lstSettings.SelectedValueChanged
|
||||||
|
|||||||
Generated
+7
-19
@@ -30,7 +30,6 @@ Partial Class frmStartUpWizard
|
|||||||
Me.lblStep1Title = New System.Windows.Forms.Label()
|
Me.lblStep1Title = New System.Windows.Forms.Label()
|
||||||
Me.lblStep1Instructions = New System.Windows.Forms.Label()
|
Me.lblStep1Instructions = New System.Windows.Forms.Label()
|
||||||
Me.tbPage2 = New System.Windows.Forms.TabPage()
|
Me.tbPage2 = New System.Windows.Forms.TabPage()
|
||||||
Me.chkSync = New System.Windows.Forms.CheckBox()
|
|
||||||
Me.chkCreateFolder = New System.Windows.Forms.CheckBox()
|
Me.chkCreateFolder = New System.Windows.Forms.CheckBox()
|
||||||
Me.lblStep2Title = New System.Windows.Forms.Label()
|
Me.lblStep2Title = New System.Windows.Forms.Label()
|
||||||
Me.lblStep2Instructions = New System.Windows.Forms.Label()
|
Me.lblStep2Instructions = New System.Windows.Forms.Label()
|
||||||
@@ -91,7 +90,7 @@ Partial Class frmStartUpWizard
|
|||||||
Me.lblStep1Instructions2.Name = "lblStep1Instructions2"
|
Me.lblStep1Instructions2.Name = "lblStep1Instructions2"
|
||||||
Me.lblStep1Instructions2.Size = New System.Drawing.Size(303, 53)
|
Me.lblStep1Instructions2.Size = New System.Drawing.Size(303, 53)
|
||||||
Me.lblStep1Instructions2.TabIndex = 2
|
Me.lblStep1Instructions2.TabIndex = 2
|
||||||
Me.lblStep1Instructions2.Text = "If you'd like to learn about advanced features or have any other questions before" & _
|
Me.lblStep1Instructions2.Text = "If you'd like to learn about advanced features or have any other questions before" &
|
||||||
" you get started, there is a detailed online manual available."
|
" you get started, there is a detailed online manual available."
|
||||||
'
|
'
|
||||||
'llbManual
|
'llbManual
|
||||||
@@ -126,7 +125,6 @@ Partial Class frmStartUpWizard
|
|||||||
'tbPage2
|
'tbPage2
|
||||||
'
|
'
|
||||||
Me.tbPage2.BackColor = System.Drawing.SystemColors.Control
|
Me.tbPage2.BackColor = System.Drawing.SystemColors.Control
|
||||||
Me.tbPage2.Controls.Add(Me.chkSync)
|
|
||||||
Me.tbPage2.Controls.Add(Me.chkCreateFolder)
|
Me.tbPage2.Controls.Add(Me.chkCreateFolder)
|
||||||
Me.tbPage2.Controls.Add(Me.lblStep2Title)
|
Me.tbPage2.Controls.Add(Me.lblStep2Title)
|
||||||
Me.tbPage2.Controls.Add(Me.lblStep2Instructions)
|
Me.tbPage2.Controls.Add(Me.lblStep2Instructions)
|
||||||
@@ -140,16 +138,6 @@ Partial Class frmStartUpWizard
|
|||||||
Me.tbPage2.TabIndex = 1
|
Me.tbPage2.TabIndex = 1
|
||||||
Me.tbPage2.Text = "TabPage2"
|
Me.tbPage2.Text = "TabPage2"
|
||||||
'
|
'
|
||||||
'chkSync
|
|
||||||
'
|
|
||||||
Me.chkSync.AutoSize = True
|
|
||||||
Me.chkSync.Location = New System.Drawing.Point(17, 105)
|
|
||||||
Me.chkSync.Name = "chkSync"
|
|
||||||
Me.chkSync.Size = New System.Drawing.Size(261, 17)
|
|
||||||
Me.chkSync.TabIndex = 5
|
|
||||||
Me.chkSync.Text = "Import any existing GBM data in the backup folder"
|
|
||||||
Me.chkSync.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'chkCreateFolder
|
'chkCreateFolder
|
||||||
'
|
'
|
||||||
Me.chkCreateFolder.AutoSize = True
|
Me.chkCreateFolder.AutoSize = True
|
||||||
@@ -172,12 +160,13 @@ Partial Class frmStartUpWizard
|
|||||||
'
|
'
|
||||||
'lblStep2Instructions
|
'lblStep2Instructions
|
||||||
'
|
'
|
||||||
Me.lblStep2Instructions.Location = New System.Drawing.Point(14, 151)
|
Me.lblStep2Instructions.Location = New System.Drawing.Point(14, 103)
|
||||||
Me.lblStep2Instructions.Name = "lblStep2Instructions"
|
Me.lblStep2Instructions.Name = "lblStep2Instructions"
|
||||||
Me.lblStep2Instructions.Size = New System.Drawing.Size(335, 31)
|
Me.lblStep2Instructions.Size = New System.Drawing.Size(335, 50)
|
||||||
Me.lblStep2Instructions.TabIndex = 6
|
Me.lblStep2Instructions.TabIndex = 6
|
||||||
Me.lblStep2Instructions.Text = "GBM will store all your backup files along with a manifest database (gbm.s3db) in" & _
|
Me.lblStep2Instructions.Text = "GBM will store all your backup files along with a manifest database (gbm.s3db) in" &
|
||||||
" this location. "
|
" this location. Any existing GBM data in this folder will be automatically impo" &
|
||||||
|
"rted."
|
||||||
'
|
'
|
||||||
'btnFolderBrowse
|
'btnFolderBrowse
|
||||||
'
|
'
|
||||||
@@ -283,7 +272,7 @@ Partial Class frmStartUpWizard
|
|||||||
Me.lblStep4Instructions3.Name = "lblStep4Instructions3"
|
Me.lblStep4Instructions3.Name = "lblStep4Instructions3"
|
||||||
Me.lblStep4Instructions3.Size = New System.Drawing.Size(303, 33)
|
Me.lblStep4Instructions3.Size = New System.Drawing.Size(303, 33)
|
||||||
Me.lblStep4Instructions3.TabIndex = 18
|
Me.lblStep4Instructions3.TabIndex = 18
|
||||||
Me.lblStep4Instructions3.Text = "You can change anything you've setup in this wizard and find more settings and fe" & _
|
Me.lblStep4Instructions3.Text = "You can change anything you've setup in this wizard and find more settings and fe" &
|
||||||
"atures by exploring the menus. Thanks!"
|
"atures by exploring the menus. Thanks!"
|
||||||
'
|
'
|
||||||
'lblStep4Instructions2
|
'lblStep4Instructions2
|
||||||
@@ -381,7 +370,6 @@ Partial Class frmStartUpWizard
|
|||||||
Friend WithEvents btnOpenMonitorList As System.Windows.Forms.Button
|
Friend WithEvents btnOpenMonitorList As System.Windows.Forms.Button
|
||||||
Friend WithEvents lblStep4Instructions3 As System.Windows.Forms.Label
|
Friend WithEvents lblStep4Instructions3 As System.Windows.Forms.Label
|
||||||
Friend WithEvents lblStep4Instructions2 As System.Windows.Forms.Label
|
Friend WithEvents lblStep4Instructions2 As System.Windows.Forms.Label
|
||||||
Friend WithEvents chkSync As System.Windows.Forms.CheckBox
|
|
||||||
Friend WithEvents lblStep1Instructions2 As System.Windows.Forms.Label
|
Friend WithEvents lblStep1Instructions2 As System.Windows.Forms.Label
|
||||||
Friend WithEvents llbManual As System.Windows.Forms.LinkLabel
|
Friend WithEvents llbManual As System.Windows.Forms.LinkLabel
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ Public Class frmStartUpWizard
|
|||||||
llbManual.Text = frmStartUpWizard_llbManual
|
llbManual.Text = frmStartUpWizard_llbManual
|
||||||
lblStep1Title.Text = frmStartUpWizard_lblStep1Title
|
lblStep1Title.Text = frmStartUpWizard_lblStep1Title
|
||||||
lblStep1Instructions.Text = frmStartUpWizard_lblStep1Instructions
|
lblStep1Instructions.Text = frmStartUpWizard_lblStep1Instructions
|
||||||
chkSync.Text = frmStartUpWizard_chkSync
|
|
||||||
chkCreateFolder.Text = frmStartUpWizard_chkCreateFolder
|
chkCreateFolder.Text = frmStartUpWizard_chkCreateFolder
|
||||||
lblStep2Title.Text = frmStartUpWizard_lblStep2Title
|
lblStep2Title.Text = frmStartUpWizard_lblStep2Title
|
||||||
lblStep2Instructions.Text = frmStartUpWizard_lblStep2Instructions
|
lblStep2Instructions.Text = frmStartUpWizard_lblStep2Instructions
|
||||||
@@ -66,7 +65,7 @@ Public Class frmStartUpWizard
|
|||||||
If oDatabase.CheckDB() Then
|
If oDatabase.CheckDB() Then
|
||||||
'Make sure database is the latest version
|
'Make sure database is the latest version
|
||||||
oDatabase.DatabaseUpgrade()
|
oDatabase.DatabaseUpgrade()
|
||||||
mgrMonitorList.SyncMonitorLists(oSettings.SyncFields, False)
|
mgrMonitorList.SyncMonitorLists(oSettings, False)
|
||||||
mgrCommon.ShowMessage(frmStartUpWizard_ExistingData, MsgBoxStyle.Information)
|
mgrCommon.ShowMessage(frmStartUpWizard_ExistingData, MsgBoxStyle.Information)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
@@ -80,7 +79,6 @@ Public Class frmStartUpWizard
|
|||||||
Case eSteps.Step2
|
Case eSteps.Step2
|
||||||
txtBackupPath.Text = oSettings.BackupFolder
|
txtBackupPath.Text = oSettings.BackupFolder
|
||||||
chkCreateFolder.Checked = oSettings.CreateSubFolder
|
chkCreateFolder.Checked = oSettings.CreateSubFolder
|
||||||
chkSync.Checked = oSettings.Sync
|
|
||||||
btnBack.Enabled = True
|
btnBack.Enabled = True
|
||||||
btnNext.Enabled = True
|
btnNext.Enabled = True
|
||||||
tabWizard.SelectTab(1)
|
tabWizard.SelectTab(1)
|
||||||
@@ -107,9 +105,9 @@ Public Class frmStartUpWizard
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If mgrCommon.ShowMessage(frmStartUpWizard_ConfirmOfficialImport, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
|
If mgrCommon.ShowMessage(frmStartUpWizard_ConfirmOfficialImport, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
|
||||||
If mgrMonitorList.DoImport(sImportURL) Then
|
If mgrMonitorList.DoImport(sImportURL, True, Settings, True) Then
|
||||||
oGameData = mgrMonitorList.ReadList(mgrMonitorList.eListTypes.FullList)
|
oGameData = mgrMonitorList.ReadList(mgrMonitorList.eListTypes.FullList)
|
||||||
If oSettings.Sync Then mgrMonitorList.SyncMonitorLists(oSettings.SyncFields)
|
mgrMonitorList.SyncMonitorLists(oSettings)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
@@ -124,16 +122,15 @@ Public Class frmStartUpWizard
|
|||||||
frm.GameData = oGameData
|
frm.GameData = oGameData
|
||||||
frm.ShowDialog()
|
frm.ShowDialog()
|
||||||
LoadGameSettings()
|
LoadGameSettings()
|
||||||
If oSettings.Sync Then mgrMonitorList.SyncMonitorLists(oSettings.SyncFields)
|
mgrMonitorList.SyncMonitorLists(oSettings)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub OpenMonitorList()
|
Private Sub OpenMonitorList()
|
||||||
Dim frm As New frmGameManager
|
Dim frm As New frmGameManager
|
||||||
frm.BackupFolder = oSettings.BackupFolder
|
frm.Settings = oSettings
|
||||||
frm.DisableExternalFunctions = True
|
frm.DisableExternalFunctions = True
|
||||||
frm.ShowDialog()
|
frm.ShowDialog()
|
||||||
LoadGameSettings()
|
LoadGameSettings()
|
||||||
If oSettings.Sync Then mgrMonitorList.SyncMonitorLists(oSettings.SyncFields)
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Function ValidateBackupPath(ByVal strPath As String, ByRef sErrorMessage As String) As Boolean
|
Private Function ValidateBackupPath(ByVal strPath As String, ByRef sErrorMessage As String) As Boolean
|
||||||
@@ -183,10 +180,9 @@ Public Class frmStartUpWizard
|
|||||||
If ValidateBackupPath(txtBackupPath.Text, sErrorMessage) Then
|
If ValidateBackupPath(txtBackupPath.Text, sErrorMessage) Then
|
||||||
oSettings.BackupFolder = txtBackupPath.Text
|
oSettings.BackupFolder = txtBackupPath.Text
|
||||||
oSettings.CreateSubFolder = chkCreateFolder.Checked
|
oSettings.CreateSubFolder = chkCreateFolder.Checked
|
||||||
oSettings.Sync = chkSync.Checked
|
|
||||||
oSettings.SaveSettings()
|
oSettings.SaveSettings()
|
||||||
oSettings.LoadSettings()
|
oSettings.LoadSettings()
|
||||||
If oSettings.Sync Then CheckSync()
|
CheckSync()
|
||||||
eCurrentStep = eSteps.Step3
|
eCurrentStep = eSteps.Step3
|
||||||
Else
|
Else
|
||||||
bError = True
|
bError = True
|
||||||
@@ -215,7 +211,7 @@ Public Class frmStartUpWizard
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
sNewPath = mgrCommon.OpenFolderBrowser(frmStartUpWizard_BrowseFolder, sDefaultFolder, True)
|
sNewPath = mgrCommon.OpenFolderBrowser("Wizard_Backup_Path", frmStartUpWizard_BrowseFolder, sDefaultFolder, True, False)
|
||||||
|
|
||||||
If sNewPath <> String.Empty Then txtBackupPath.Text = sNewPath
|
If sNewPath <> String.Empty Then txtBackupPath.Text = sNewPath
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
Generated
+9
-22
@@ -28,7 +28,6 @@ Partial Class frmSyncFields
|
|||||||
Me.chkVersion = New System.Windows.Forms.CheckBox()
|
Me.chkVersion = New System.Windows.Forms.CheckBox()
|
||||||
Me.chkCompany = New System.Windows.Forms.CheckBox()
|
Me.chkCompany = New System.Windows.Forms.CheckBox()
|
||||||
Me.chkGamePath = New System.Windows.Forms.CheckBox()
|
Me.chkGamePath = New System.Windows.Forms.CheckBox()
|
||||||
Me.chkTimeStamp = New System.Windows.Forms.CheckBox()
|
|
||||||
Me.btnCancel = New System.Windows.Forms.Button()
|
Me.btnCancel = New System.Windows.Forms.Button()
|
||||||
Me.btnSave = New System.Windows.Forms.Button()
|
Me.btnSave = New System.Windows.Forms.Button()
|
||||||
Me.grpFields.SuspendLayout()
|
Me.grpFields.SuspendLayout()
|
||||||
@@ -41,10 +40,9 @@ Partial Class frmSyncFields
|
|||||||
Me.grpFields.Controls.Add(Me.chkVersion)
|
Me.grpFields.Controls.Add(Me.chkVersion)
|
||||||
Me.grpFields.Controls.Add(Me.chkCompany)
|
Me.grpFields.Controls.Add(Me.chkCompany)
|
||||||
Me.grpFields.Controls.Add(Me.chkGamePath)
|
Me.grpFields.Controls.Add(Me.chkGamePath)
|
||||||
Me.grpFields.Controls.Add(Me.chkTimeStamp)
|
|
||||||
Me.grpFields.Location = New System.Drawing.Point(12, 12)
|
Me.grpFields.Location = New System.Drawing.Point(12, 12)
|
||||||
Me.grpFields.Name = "grpFields"
|
Me.grpFields.Name = "grpFields"
|
||||||
Me.grpFields.Size = New System.Drawing.Size(195, 162)
|
Me.grpFields.Size = New System.Drawing.Size(195, 135)
|
||||||
Me.grpFields.TabIndex = 0
|
Me.grpFields.TabIndex = 0
|
||||||
Me.grpFields.TabStop = False
|
Me.grpFields.TabStop = False
|
||||||
Me.grpFields.Text = "Available Fields"
|
Me.grpFields.Text = "Available Fields"
|
||||||
@@ -52,7 +50,7 @@ Partial Class frmSyncFields
|
|||||||
'chkMonitorGame
|
'chkMonitorGame
|
||||||
'
|
'
|
||||||
Me.chkMonitorGame.AutoSize = True
|
Me.chkMonitorGame.AutoSize = True
|
||||||
Me.chkMonitorGame.Location = New System.Drawing.Point(6, 134)
|
Me.chkMonitorGame.Location = New System.Drawing.Point(6, 111)
|
||||||
Me.chkMonitorGame.Name = "chkMonitorGame"
|
Me.chkMonitorGame.Name = "chkMonitorGame"
|
||||||
Me.chkMonitorGame.Size = New System.Drawing.Size(109, 17)
|
Me.chkMonitorGame.Size = New System.Drawing.Size(109, 17)
|
||||||
Me.chkMonitorGame.TabIndex = 5
|
Me.chkMonitorGame.TabIndex = 5
|
||||||
@@ -62,7 +60,7 @@ Partial Class frmSyncFields
|
|||||||
'chkIcon
|
'chkIcon
|
||||||
'
|
'
|
||||||
Me.chkIcon.AutoSize = True
|
Me.chkIcon.AutoSize = True
|
||||||
Me.chkIcon.Location = New System.Drawing.Point(6, 111)
|
Me.chkIcon.Location = New System.Drawing.Point(6, 88)
|
||||||
Me.chkIcon.Name = "chkIcon"
|
Me.chkIcon.Name = "chkIcon"
|
||||||
Me.chkIcon.Size = New System.Drawing.Size(148, 17)
|
Me.chkIcon.Size = New System.Drawing.Size(148, 17)
|
||||||
Me.chkIcon.TabIndex = 4
|
Me.chkIcon.TabIndex = 4
|
||||||
@@ -72,7 +70,7 @@ Partial Class frmSyncFields
|
|||||||
'chkVersion
|
'chkVersion
|
||||||
'
|
'
|
||||||
Me.chkVersion.AutoSize = True
|
Me.chkVersion.AutoSize = True
|
||||||
Me.chkVersion.Location = New System.Drawing.Point(6, 88)
|
Me.chkVersion.Location = New System.Drawing.Point(6, 65)
|
||||||
Me.chkVersion.Name = "chkVersion"
|
Me.chkVersion.Name = "chkVersion"
|
||||||
Me.chkVersion.Size = New System.Drawing.Size(61, 17)
|
Me.chkVersion.Size = New System.Drawing.Size(61, 17)
|
||||||
Me.chkVersion.TabIndex = 3
|
Me.chkVersion.TabIndex = 3
|
||||||
@@ -82,7 +80,7 @@ Partial Class frmSyncFields
|
|||||||
'chkCompany
|
'chkCompany
|
||||||
'
|
'
|
||||||
Me.chkCompany.AutoSize = True
|
Me.chkCompany.AutoSize = True
|
||||||
Me.chkCompany.Location = New System.Drawing.Point(6, 65)
|
Me.chkCompany.Location = New System.Drawing.Point(6, 42)
|
||||||
Me.chkCompany.Name = "chkCompany"
|
Me.chkCompany.Name = "chkCompany"
|
||||||
Me.chkCompany.Size = New System.Drawing.Size(70, 17)
|
Me.chkCompany.Size = New System.Drawing.Size(70, 17)
|
||||||
Me.chkCompany.TabIndex = 2
|
Me.chkCompany.TabIndex = 2
|
||||||
@@ -92,27 +90,17 @@ Partial Class frmSyncFields
|
|||||||
'chkGamePath
|
'chkGamePath
|
||||||
'
|
'
|
||||||
Me.chkGamePath.AutoSize = True
|
Me.chkGamePath.AutoSize = True
|
||||||
Me.chkGamePath.Location = New System.Drawing.Point(6, 42)
|
Me.chkGamePath.Location = New System.Drawing.Point(6, 19)
|
||||||
Me.chkGamePath.Name = "chkGamePath"
|
Me.chkGamePath.Name = "chkGamePath"
|
||||||
Me.chkGamePath.Size = New System.Drawing.Size(180, 17)
|
Me.chkGamePath.Size = New System.Drawing.Size(180, 17)
|
||||||
Me.chkGamePath.TabIndex = 1
|
Me.chkGamePath.TabIndex = 1
|
||||||
Me.chkGamePath.Text = "Game Path (Not Recommended)"
|
Me.chkGamePath.Text = "Game Path (Not Recommended)"
|
||||||
Me.chkGamePath.UseVisualStyleBackColor = True
|
Me.chkGamePath.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
'chkTimeStamp
|
|
||||||
'
|
|
||||||
Me.chkTimeStamp.AutoSize = True
|
|
||||||
Me.chkTimeStamp.Location = New System.Drawing.Point(6, 19)
|
|
||||||
Me.chkTimeStamp.Name = "chkTimeStamp"
|
|
||||||
Me.chkTimeStamp.Size = New System.Drawing.Size(133, 17)
|
|
||||||
Me.chkTimeStamp.TabIndex = 0
|
|
||||||
Me.chkTimeStamp.Text = "Save multiple backups"
|
|
||||||
Me.chkTimeStamp.UseVisualStyleBackColor = True
|
|
||||||
'
|
|
||||||
'btnCancel
|
'btnCancel
|
||||||
'
|
'
|
||||||
Me.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel
|
Me.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel
|
||||||
Me.btnCancel.Location = New System.Drawing.Point(132, 180)
|
Me.btnCancel.Location = New System.Drawing.Point(132, 153)
|
||||||
Me.btnCancel.Name = "btnCancel"
|
Me.btnCancel.Name = "btnCancel"
|
||||||
Me.btnCancel.Size = New System.Drawing.Size(75, 23)
|
Me.btnCancel.Size = New System.Drawing.Size(75, 23)
|
||||||
Me.btnCancel.TabIndex = 2
|
Me.btnCancel.TabIndex = 2
|
||||||
@@ -122,7 +110,7 @@ Partial Class frmSyncFields
|
|||||||
'btnSave
|
'btnSave
|
||||||
'
|
'
|
||||||
Me.btnSave.DialogResult = System.Windows.Forms.DialogResult.OK
|
Me.btnSave.DialogResult = System.Windows.Forms.DialogResult.OK
|
||||||
Me.btnSave.Location = New System.Drawing.Point(52, 180)
|
Me.btnSave.Location = New System.Drawing.Point(52, 153)
|
||||||
Me.btnSave.Name = "btnSave"
|
Me.btnSave.Name = "btnSave"
|
||||||
Me.btnSave.Size = New System.Drawing.Size(75, 23)
|
Me.btnSave.Size = New System.Drawing.Size(75, 23)
|
||||||
Me.btnSave.TabIndex = 1
|
Me.btnSave.TabIndex = 1
|
||||||
@@ -133,7 +121,7 @@ Partial Class frmSyncFields
|
|||||||
'
|
'
|
||||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||||
Me.ClientSize = New System.Drawing.Size(219, 211)
|
Me.ClientSize = New System.Drawing.Size(219, 186)
|
||||||
Me.Controls.Add(Me.btnCancel)
|
Me.Controls.Add(Me.btnCancel)
|
||||||
Me.Controls.Add(Me.btnSave)
|
Me.Controls.Add(Me.btnSave)
|
||||||
Me.Controls.Add(Me.grpFields)
|
Me.Controls.Add(Me.grpFields)
|
||||||
@@ -157,7 +145,6 @@ Partial Class frmSyncFields
|
|||||||
Friend WithEvents chkVersion As CheckBox
|
Friend WithEvents chkVersion As CheckBox
|
||||||
Friend WithEvents chkCompany As CheckBox
|
Friend WithEvents chkCompany As CheckBox
|
||||||
Friend WithEvents chkGamePath As CheckBox
|
Friend WithEvents chkGamePath As CheckBox
|
||||||
Friend WithEvents chkTimeStamp As CheckBox
|
|
||||||
Friend WithEvents btnCancel As Button
|
Friend WithEvents btnCancel As Button
|
||||||
Friend WithEvents btnSave As Button
|
Friend WithEvents btnSave As Button
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
+10
-22
@@ -26,9 +26,6 @@ Public Class frmSyncFields
|
|||||||
If (eSyncFields And clsGame.eOptionalSyncFields.MonitorGame) = clsGame.eOptionalSyncFields.MonitorGame Then
|
If (eSyncFields And clsGame.eOptionalSyncFields.MonitorGame) = clsGame.eOptionalSyncFields.MonitorGame Then
|
||||||
chkMonitorGame.Checked = True
|
chkMonitorGame.Checked = True
|
||||||
End If
|
End If
|
||||||
If (eSyncFields And clsGame.eOptionalSyncFields.TimeStamp) = clsGame.eOptionalSyncFields.TimeStamp Then
|
|
||||||
chkTimeStamp.Checked = True
|
|
||||||
End If
|
|
||||||
If (eSyncFields And clsGame.eOptionalSyncFields.Version) = clsGame.eOptionalSyncFields.Version Then
|
If (eSyncFields And clsGame.eOptionalSyncFields.Version) = clsGame.eOptionalSyncFields.Version Then
|
||||||
chkVersion.Checked = True
|
chkVersion.Checked = True
|
||||||
End If
|
End If
|
||||||
@@ -47,7 +44,6 @@ Public Class frmSyncFields
|
|||||||
chkVersion.Text = frmSyncFields_chkVersion
|
chkVersion.Text = frmSyncFields_chkVersion
|
||||||
chkCompany.Text = frmSyncFields_chkCompany
|
chkCompany.Text = frmSyncFields_chkCompany
|
||||||
chkGamePath.Text = frmSyncFields_chkGamePath
|
chkGamePath.Text = frmSyncFields_chkGamePath
|
||||||
chkTimeStamp.Text = frmSyncFields_chkTimeStamp
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub frmSyncFields_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
Private Sub frmSyncFields_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||||
@@ -65,51 +61,43 @@ Public Class frmSyncFields
|
|||||||
Me.Close()
|
Me.Close()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub chkTimeStamp_CheckedChanged(sender As Object, e As EventArgs) Handles chkTimeStamp.CheckedChanged
|
|
||||||
If chkTimeStamp.Checked Then
|
|
||||||
SyncFields = mgrCommon.SetSyncField(SyncFields, clsGame.eOptionalSyncFields.TimeStamp)
|
|
||||||
Else
|
|
||||||
SyncFields = mgrCommon.RemoveSyncField(SyncFields, clsGame.eOptionalSyncFields.TimeStamp)
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub chkGamePath_CheckedChanged(sender As Object, e As EventArgs) Handles chkGamePath.CheckedChanged
|
Private Sub chkGamePath_CheckedChanged(sender As Object, e As EventArgs) Handles chkGamePath.CheckedChanged
|
||||||
If chkGamePath.Checked Then
|
If chkGamePath.Checked Then
|
||||||
SyncFields = mgrCommon.SetSyncField(SyncFields, clsGame.eOptionalSyncFields.GamePath)
|
SyncFields = clsGame.SetSyncField(SyncFields, clsGame.eOptionalSyncFields.GamePath)
|
||||||
Else
|
Else
|
||||||
SyncFields = mgrCommon.RemoveSyncField(SyncFields, clsGame.eOptionalSyncFields.GamePath)
|
SyncFields = clsGame.RemoveSyncField(SyncFields, clsGame.eOptionalSyncFields.GamePath)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub chkCompany_CheckedChanged(sender As Object, e As EventArgs) Handles chkCompany.CheckedChanged
|
Private Sub chkCompany_CheckedChanged(sender As Object, e As EventArgs) Handles chkCompany.CheckedChanged
|
||||||
If chkCompany.Checked Then
|
If chkCompany.Checked Then
|
||||||
SyncFields = mgrCommon.SetSyncField(SyncFields, clsGame.eOptionalSyncFields.Company)
|
SyncFields = clsGame.SetSyncField(SyncFields, clsGame.eOptionalSyncFields.Company)
|
||||||
Else
|
Else
|
||||||
SyncFields = mgrCommon.RemoveSyncField(SyncFields, clsGame.eOptionalSyncFields.Company)
|
SyncFields = clsGame.RemoveSyncField(SyncFields, clsGame.eOptionalSyncFields.Company)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub chkVersion_CheckedChanged(sender As Object, e As EventArgs) Handles chkVersion.CheckedChanged
|
Private Sub chkVersion_CheckedChanged(sender As Object, e As EventArgs) Handles chkVersion.CheckedChanged
|
||||||
If chkVersion.Checked Then
|
If chkVersion.Checked Then
|
||||||
SyncFields = mgrCommon.SetSyncField(SyncFields, clsGame.eOptionalSyncFields.Version)
|
SyncFields = clsGame.SetSyncField(SyncFields, clsGame.eOptionalSyncFields.Version)
|
||||||
Else
|
Else
|
||||||
SyncFields = mgrCommon.RemoveSyncField(SyncFields, clsGame.eOptionalSyncFields.Version)
|
SyncFields = clsGame.RemoveSyncField(SyncFields, clsGame.eOptionalSyncFields.Version)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub chkIcon_CheckedChanged(sender As Object, e As EventArgs) Handles chkIcon.CheckedChanged
|
Private Sub chkIcon_CheckedChanged(sender As Object, e As EventArgs) Handles chkIcon.CheckedChanged
|
||||||
If chkIcon.Checked Then
|
If chkIcon.Checked Then
|
||||||
SyncFields = mgrCommon.SetSyncField(SyncFields, clsGame.eOptionalSyncFields.Icon)
|
SyncFields = clsGame.SetSyncField(SyncFields, clsGame.eOptionalSyncFields.Icon)
|
||||||
Else
|
Else
|
||||||
SyncFields = mgrCommon.RemoveSyncField(SyncFields, clsGame.eOptionalSyncFields.Icon)
|
SyncFields = clsGame.RemoveSyncField(SyncFields, clsGame.eOptionalSyncFields.Icon)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub chkMonitorGame_CheckedChanged(sender As Object, e As EventArgs) Handles chkMonitorGame.CheckedChanged
|
Private Sub chkMonitorGame_CheckedChanged(sender As Object, e As EventArgs) Handles chkMonitorGame.CheckedChanged
|
||||||
If chkMonitorGame.Checked Then
|
If chkMonitorGame.Checked Then
|
||||||
SyncFields = mgrCommon.SetSyncField(SyncFields, clsGame.eOptionalSyncFields.MonitorGame)
|
SyncFields = clsGame.SetSyncField(SyncFields, clsGame.eOptionalSyncFields.MonitorGame)
|
||||||
Else
|
Else
|
||||||
SyncFields = mgrCommon.RemoveSyncField(SyncFields, clsGame.eOptionalSyncFields.MonitorGame)
|
SyncFields = clsGame.RemoveSyncField(SyncFields, clsGame.eOptionalSyncFields.MonitorGame)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
@@ -54,7 +54,7 @@ Public Class frmVariableManager
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
sNewPath = mgrCommon.OpenFolderBrowser(frmVariableManager_PathBrowse, sDefaultFolder, False)
|
sNewPath = mgrCommon.OpenFolderBrowser("VM_Path", frmVariableManager_PathBrowse, sDefaultFolder, False, False)
|
||||||
|
|
||||||
If sNewPath <> String.Empty Then txtPath.Text = sNewPath
|
If sNewPath <> String.Empty Then txtPath.Text = sNewPath
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -106,6 +106,7 @@
|
|||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
|
<Reference Include="System.Management" />
|
||||||
<Reference Include="System.Windows.Forms" />
|
<Reference Include="System.Windows.Forms" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
@@ -121,6 +122,14 @@
|
|||||||
<Import Include="System.Windows.Forms" />
|
<Import Include="System.Windows.Forms" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="Classes\clsGameProcess.vb" />
|
||||||
|
<Compile Include="Classes\clsProcess.vb" />
|
||||||
|
<Compile Include="Classes\clsGameFilter.vb" />
|
||||||
|
<Compile Include="Classes\clsGameFilterField.vb" />
|
||||||
|
<Compile Include="Classes\clsSavedPath.vb" />
|
||||||
|
<Compile Include="Classes\clsSession.vb" />
|
||||||
|
<Compile Include="Classes\XML Serialize Classes\ExportData.vb" />
|
||||||
|
<Compile Include="Classes\XML Serialize Classes\Session.vb" />
|
||||||
<Compile Include="Classes\XML Serialize Classes\Tag.vb" />
|
<Compile Include="Classes\XML Serialize Classes\Tag.vb" />
|
||||||
<Compile Include="Classes\XML Serialize Classes\Game.vb" />
|
<Compile Include="Classes\XML Serialize Classes\Game.vb" />
|
||||||
<Compile Include="Classes\clsGameTag.vb" />
|
<Compile Include="Classes\clsGameTag.vb" />
|
||||||
@@ -152,6 +161,12 @@
|
|||||||
<Compile Include="Forms\frmFileFolderSearch.vb">
|
<Compile Include="Forms\frmFileFolderSearch.vb">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Forms\frmGameProcesses.Designer.vb">
|
||||||
|
<DependentUpon>frmGameProcesses.vb</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Forms\frmGameProcesses.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Forms\frmGameTags.Designer.vb">
|
<Compile Include="Forms\frmGameTags.Designer.vb">
|
||||||
<DependentUpon>frmGameTags.vb</DependentUpon>
|
<DependentUpon>frmGameTags.vb</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -164,6 +179,24 @@
|
|||||||
<Compile Include="Forms\frmIncludeExclude.vb">
|
<Compile Include="Forms\frmIncludeExclude.vb">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Forms\frmProcessManager.Designer.vb">
|
||||||
|
<DependentUpon>frmProcessManager.vb</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Forms\frmProcessManager.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Forms\frmSessionExport.Designer.vb">
|
||||||
|
<DependentUpon>frmSessionExport.vb</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Forms\frmSessionExport.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Forms\frmSessions.Designer.vb">
|
||||||
|
<DependentUpon>frmSessions.vb</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Forms\frmSessions.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Forms\frmStartUpWizard.Designer.vb">
|
<Compile Include="Forms\frmStartUpWizard.Designer.vb">
|
||||||
<DependentUpon>frmStartUpWizard.vb</DependentUpon>
|
<DependentUpon>frmStartUpWizard.vb</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -213,6 +246,8 @@
|
|||||||
<Compile Include="Forms\frmVariableManager.vb">
|
<Compile Include="Forms\frmVariableManager.vb">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Managers\mgrGameProcesses.vb" />
|
||||||
|
<Compile Include="Managers\mgrProcess.vb" />
|
||||||
<Compile Include="Managers\mgrCommon.vb" />
|
<Compile Include="Managers\mgrCommon.vb" />
|
||||||
<Compile Include="Managers\mgrGameTags.vb" />
|
<Compile Include="Managers\mgrGameTags.vb" />
|
||||||
<Compile Include="Managers\mgrHash.vb" />
|
<Compile Include="Managers\mgrHash.vb" />
|
||||||
@@ -220,13 +255,15 @@
|
|||||||
<Compile Include="Managers\mgrMonitorList.vb" />
|
<Compile Include="Managers\mgrMonitorList.vb" />
|
||||||
<Compile Include="Managers\mgrPath.vb" />
|
<Compile Include="Managers\mgrPath.vb" />
|
||||||
<Compile Include="Managers\mgrRestore.vb" />
|
<Compile Include="Managers\mgrRestore.vb" />
|
||||||
|
<Compile Include="Managers\mgrSavedPath.vb" />
|
||||||
|
<Compile Include="Managers\mgrSessions.vb" />
|
||||||
<Compile Include="Managers\mgrSettings.vb" />
|
<Compile Include="Managers\mgrSettings.vb" />
|
||||||
<Compile Include="Managers\mgrBackup.vb" />
|
<Compile Include="Managers\mgrBackup.vb" />
|
||||||
<Compile Include="Managers\mgrSQLite.vb" />
|
<Compile Include="Managers\mgrSQLite.vb" />
|
||||||
<Compile Include="Managers\mgrTags.vb" />
|
<Compile Include="Managers\mgrTags.vb" />
|
||||||
<Compile Include="Managers\mgrVariables.vb" />
|
<Compile Include="Managers\mgrVariables.vb" />
|
||||||
<Compile Include="Managers\mgrXML.vb" />
|
<Compile Include="Managers\mgrXML.vb" />
|
||||||
<Compile Include="Managers\mgrProcesses.vb" />
|
<Compile Include="Managers\mgrProcessDetection.vb" />
|
||||||
<Compile Include="My Project\AssemblyInfo.vb" />
|
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||||
<Compile Include="My Project\Application.Designer.vb">
|
<Compile Include="My Project\Application.Designer.vb">
|
||||||
<AutoGen>True</AutoGen>
|
<AutoGen>True</AutoGen>
|
||||||
@@ -256,12 +293,24 @@
|
|||||||
<EmbeddedResource Include="Forms\frmFileFolderSearch.resx">
|
<EmbeddedResource Include="Forms\frmFileFolderSearch.resx">
|
||||||
<DependentUpon>frmFileFolderSearch.vb</DependentUpon>
|
<DependentUpon>frmFileFolderSearch.vb</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="Forms\frmGameProcesses.resx">
|
||||||
|
<DependentUpon>frmGameProcesses.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Forms\frmGameTags.resx">
|
<EmbeddedResource Include="Forms\frmGameTags.resx">
|
||||||
<DependentUpon>frmGameTags.vb</DependentUpon>
|
<DependentUpon>frmGameTags.vb</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Forms\frmIncludeExclude.resx">
|
<EmbeddedResource Include="Forms\frmIncludeExclude.resx">
|
||||||
<DependentUpon>frmIncludeExclude.vb</DependentUpon>
|
<DependentUpon>frmIncludeExclude.vb</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="Forms\frmProcessManager.resx">
|
||||||
|
<DependentUpon>frmProcessManager.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="Forms\frmSessionExport.resx">
|
||||||
|
<DependentUpon>frmSessionExport.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="Forms\frmSessions.resx">
|
||||||
|
<DependentUpon>frmSessions.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Forms\frmStartUpWizard.resx">
|
<EmbeddedResource Include="Forms\frmStartUpWizard.resx">
|
||||||
<DependentUpon>frmStartUpWizard.vb</DependentUpon>
|
<DependentUpon>frmStartUpWizard.vb</DependentUpon>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
@@ -338,12 +387,15 @@
|
|||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="References\Mono.Data.Sqlite.dll" />
|
<Content Include="References\Mono.Data.Sqlite.dll" />
|
||||||
|
<Content Include="Resources\New.png" />
|
||||||
|
<Content Include="Resources\Update.png" />
|
||||||
<Content Include="Utilities\x64\7za.exe">
|
<Content Include="Utilities\x64\7za.exe">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="Utilities\x86\7za.exe">
|
<Content Include="Utilities\x86\7za.exe">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="x64\sqlite3.dll" />
|
||||||
<Content Include="x86\sqlite3.dll" />
|
<Content Include="x86\sqlite3.dll" />
|
||||||
<None Include="Resources\gbm.ico" />
|
<None Include="Resources\gbm.ico" />
|
||||||
<Content Include="Resources\Admin.png" />
|
<Content Include="Resources\Admin.png" />
|
||||||
@@ -356,7 +408,6 @@
|
|||||||
<Content Include="Resources\Inbox.png" />
|
<Content Include="Resources\Inbox.png" />
|
||||||
<Content Include="Resources\type.ico" />
|
<Content Include="Resources\type.ico" />
|
||||||
<Content Include="Resources\User.png" />
|
<Content Include="Resources\User.png" />
|
||||||
<Content Include="x64\sqlite3.dll" />
|
|
||||||
<None Include="Resources\Stopped.png" />
|
<None Include="Resources\Stopped.png" />
|
||||||
<None Include="Resources\Detected.png" />
|
<None Include="Resources\Detected.png" />
|
||||||
<None Include="Resources\Ready.png" />
|
<None Include="Resources\Ready.png" />
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
License for use and distribution
|
License for use and distribution
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Copyright (C) 1999-2016 Igor Pavlov.
|
Copyright (C) 1999-2018 Igor Pavlov.
|
||||||
|
|
||||||
7-Zip Extra files are under the GNU LGPL license.
|
7-Zip Extra files are under the GNU LGPL license.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
Game Backup Monitor would like to credit the following people/organizations:
|
Game Backup Monitor would like to credit the following people/organizations:
|
||||||
|
|
||||||
7-zip - Igor Pavlov
|
Contributors:
|
||||||
|
|
||||||
|
Michael J. Seiferling (MikeMaximus) - Design, Programming and Windows Game Configuration Maintainer.
|
||||||
|
Sebastian Riedel (basxto) - Linux Packaging, Installation and Game Configuration Maintainer.
|
||||||
|
|
||||||
|
Special Thanks:
|
||||||
|
|
||||||
|
7-Zip - Igor Pavlov
|
||||||
Sixpack Status Icons - JankoAtWarpSpeed.com
|
Sixpack Status Icons - JankoAtWarpSpeed.com
|
||||||
Primo Icon Set - webdesignerdepot.com
|
Primo Icon Set - webdesignerdepot.com
|
||||||
+104
-42
@@ -40,25 +40,25 @@ Public Class mgrBackup
|
|||||||
Dim oItem As New clsBackup
|
Dim oItem As New clsBackup
|
||||||
|
|
||||||
'Create manifest item
|
'Create manifest item
|
||||||
oItem.Name = oGameInfo.Name
|
oItem.MonitorID = oGameInfo.ID
|
||||||
'Keep the path relative to the manifest location
|
'Keep the path relative to the manifest location
|
||||||
oItem.FileName = sBackupFile.Replace(Path.GetDirectoryName(mgrPath.RemoteDatabaseLocation) & Path.DirectorySeparatorChar, "")
|
oItem.FileName = sBackupFile.Replace(Path.GetDirectoryName(mgrPath.RemoteDatabaseLocation) & Path.DirectorySeparatorChar, "")
|
||||||
oItem.RestorePath = oGameInfo.TruePath
|
|
||||||
oItem.AbsolutePath = oGameInfo.AbsolutePath
|
|
||||||
oItem.DateUpdated = dTimeStamp
|
oItem.DateUpdated = dTimeStamp
|
||||||
oItem.UpdatedBy = My.Computer.Name
|
oItem.UpdatedBy = My.Computer.Name
|
||||||
oItem.CheckSum = sCheckSum
|
oItem.CheckSum = sCheckSum
|
||||||
|
|
||||||
'Save Remote Manifest
|
'Save Remote Manifest
|
||||||
If mgrManifest.DoSpecificManifestCheck(oItem, mgrSQLite.Database.Remote) Then
|
If Not oGameInfo.AppendTimeStamp Then
|
||||||
mgrManifest.DoManifestUpdateByID(oItem, mgrSQLite.Database.Remote)
|
If Not mgrManifest.DoUpdateLatestManifest(oItem, mgrSQLite.Database.Remote) Then
|
||||||
|
mgrManifest.DoManifestAdd(oItem, mgrSQLite.Database.Remote)
|
||||||
|
End If
|
||||||
Else
|
Else
|
||||||
mgrManifest.DoManifestAdd(oItem, mgrSQLite.Database.Remote)
|
mgrManifest.DoManifestAdd(oItem, mgrSQLite.Database.Remote)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'Save Local Manifest
|
'Save Local Manifest
|
||||||
If mgrManifest.DoGlobalManifestCheck(oItem.Name, mgrSQLite.Database.Local) Then
|
If mgrManifest.DoManifestCheck(oItem.MonitorID, mgrSQLite.Database.Local) Then
|
||||||
mgrManifest.DoManifestUpdateByName(oItem, mgrSQLite.Database.Local)
|
mgrManifest.DoManifestUpdateByMonitorID(oItem, mgrSQLite.Database.Local)
|
||||||
Else
|
Else
|
||||||
mgrManifest.DoManifestAdd(oItem, mgrSQLite.Database.Local)
|
mgrManifest.DoManifestAdd(oItem, mgrSQLite.Database.Local)
|
||||||
End If
|
End If
|
||||||
@@ -85,30 +85,92 @@ Public Class mgrBackup
|
|||||||
End Try
|
End Try
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Function VerifySavePath(ByVal oGame As clsGame) As String
|
||||||
|
Dim sSavePath As String
|
||||||
|
|
||||||
|
If oGame.AbsolutePath = False Then
|
||||||
|
If oGame.Path <> String.Empty Then
|
||||||
|
sSavePath = oGame.ProcessPath & Path.DirectorySeparatorChar & oGame.Path
|
||||||
|
Else
|
||||||
|
sSavePath = oGame.ProcessPath
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
sSavePath = oGame.Path
|
||||||
|
End If
|
||||||
|
|
||||||
|
Return sSavePath
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Function GetFileName(ByVal oGame As clsGame) As String
|
||||||
|
Dim sName As String
|
||||||
|
|
||||||
|
If oSettings.UseGameID Then
|
||||||
|
sName = oGame.ID
|
||||||
|
Else
|
||||||
|
sName = oGame.FileSafeName
|
||||||
|
End If
|
||||||
|
|
||||||
|
Return sName
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Function CheckBackupPrereq(ByVal oGame As clsGame) As Boolean
|
Public Function CheckBackupPrereq(ByVal oGame As clsGame) As Boolean
|
||||||
Dim sBackupFile As String = oSettings.BackupFolder
|
Dim sBackupFile As String = oSettings.BackupFolder
|
||||||
If oSettings.CreateSubFolder Then sBackupFile = sBackupFile & Path.DirectorySeparatorChar & oGame.Name
|
Dim sSavePath As String
|
||||||
sBackupFile = sBackupFile & Path.DirectorySeparatorChar & oGame.Name & ".7z"
|
Dim sOverwriteMessage As String
|
||||||
|
Dim lAvailableSpace As Long
|
||||||
|
Dim lFolderSize As Long
|
||||||
|
|
||||||
If mgrRestore.CheckManifest(oGame.Name) Then
|
If oSettings.CreateSubFolder Then sBackupFile = sBackupFile & Path.DirectorySeparatorChar & GetFileName(oGame)
|
||||||
If mgrCommon.ShowMessage(mgrBackup_ConfirmManifestConflict, oGame.Name, MsgBoxStyle.YesNo) = MsgBoxResult.No Then
|
sBackupFile = sBackupFile & Path.DirectorySeparatorChar & GetFileName(oGame) & ".7z"
|
||||||
RaiseEvent UpdateLog(mgrBackup_ErrorManifestConflict, False, ToolTipIcon.Error, True)
|
|
||||||
|
'Verify saved game path
|
||||||
|
sSavePath = VerifySavePath(oGame)
|
||||||
|
|
||||||
|
'Calculate space
|
||||||
|
lAvailableSpace = mgrCommon.GetAvailableDiskSpace(oSettings.BackupFolder)
|
||||||
|
lFolderSize = mgrCommon.GetFolderSize(sSavePath, oGame.IncludeArray, oGame.ExcludeArray)
|
||||||
|
|
||||||
|
'Show Available Space
|
||||||
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrCommon_AvailableDiskSpace, mgrCommon.FormatDiskSpace(lAvailableSpace)), False, ToolTipIcon.Info, True)
|
||||||
|
|
||||||
|
'Show Save Folder Size
|
||||||
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrCommon_SavedGameFolderSize, New String() {oGame.Name, mgrCommon.FormatDiskSpace(lFolderSize)}), False, ToolTipIcon.Info, True)
|
||||||
|
|
||||||
|
If lFolderSize >= lAvailableSpace Then
|
||||||
|
If mgrCommon.ShowMessage(mgrBackup_ConfirmDiskSpace, MsgBoxStyle.YesNo) = MsgBoxResult.No Then
|
||||||
|
RaiseEvent UpdateLog(mgrBackup_ErrorDiskSpace, False, ToolTipIcon.Error, True)
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
'A manifest check is only required when "Save Multiple Backups" is disabled
|
||||||
|
If Not oGame.AppendTimeStamp Then
|
||||||
|
If mgrRestore.CheckManifest(oGame.ID) Then
|
||||||
|
If mgrCommon.ShowMessage(mgrBackup_ConfirmManifestConflict, oGame.Name, MsgBoxStyle.YesNo) = MsgBoxResult.No Then
|
||||||
|
RaiseEvent UpdateLog(mgrBackup_ErrorManifestConflict, False, ToolTipIcon.Error, True)
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
If oSettings.ShowOverwriteWarning And File.Exists(sBackupFile) And Not oGame.AppendTimeStamp Then
|
If oSettings.ShowOverwriteWarning And File.Exists(sBackupFile) And Not oGame.AppendTimeStamp Then
|
||||||
If mgrCommon.ShowMessage(mgrBackup_ConfirmOverwrite, MsgBoxStyle.YesNo) = MsgBoxResult.No Then
|
If oGame.AbsolutePath Then
|
||||||
|
sOverwriteMessage = mgrBackup_ConfirmOverwrite
|
||||||
|
Else
|
||||||
|
sOverwriteMessage = mgrBackup_ConfirmOverwriteRelative
|
||||||
|
End If
|
||||||
|
|
||||||
|
If mgrCommon.ShowMessage(sOverwriteMessage, MsgBoxStyle.YesNo) = MsgBoxResult.No Then
|
||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_ErrorOverwriteAbort, oGame.Name), False, ToolTipIcon.Error, True)
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_ErrorOverwriteAbort, oGame.Name), False, ToolTipIcon.Error, True)
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Sub CheckOldBackups(ByVal oGame As clsGame)
|
Private Sub CheckOldBackups(ByVal oGame As clsGame)
|
||||||
Dim oGameBackups As List(Of clsBackup) = mgrManifest.DoManifestGetByName(oGame.Name, mgrSQLite.Database.Remote)
|
Dim oGameBackups As List(Of clsBackup) = mgrManifest.DoManifestGetByMonitorID(oGame.ID, mgrSQLite.Database.Remote)
|
||||||
Dim oGameBackup As clsBackup
|
Dim oGameBackup As clsBackup
|
||||||
Dim sOldBackup As String
|
Dim sOldBackup As String
|
||||||
Dim iBackupCount As Integer = oGameBackups.Count
|
Dim iBackupCount As Integer = oGameBackups.Count
|
||||||
@@ -124,8 +186,8 @@ Public Class mgrBackup
|
|||||||
oGameBackup = oGameBackups(oGameBackups.Count - i)
|
oGameBackup = oGameBackups(oGameBackups.Count - i)
|
||||||
sOldBackup = Settings.BackupFolder & Path.DirectorySeparatorChar & oGameBackup.FileName
|
sOldBackup = Settings.BackupFolder & Path.DirectorySeparatorChar & oGameBackup.FileName
|
||||||
|
|
||||||
mgrManifest.DoManifestDeletebyID(oGameBackup, mgrSQLite.Database.Remote)
|
mgrManifest.DoManifestDeleteByManifestID(oGameBackup, mgrSQLite.Database.Remote)
|
||||||
mgrManifest.DoManifestDeletebyID(oGameBackup, mgrSQLite.Database.Local)
|
mgrManifest.DoManifestDeleteByManifestID(oGameBackup, mgrSQLite.Database.Local)
|
||||||
mgrCommon.DeleteFile(sOldBackup)
|
mgrCommon.DeleteFile(sOldBackup)
|
||||||
mgrCommon.DeleteDirectoryByBackup(Settings.BackupFolder & Path.DirectorySeparatorChar, oGameBackup)
|
mgrCommon.DeleteDirectoryByBackup(Settings.BackupFolder & Path.DirectorySeparatorChar, oGameBackup)
|
||||||
|
|
||||||
@@ -159,7 +221,7 @@ Public Class mgrBackup
|
|||||||
RaiseEvent UpdateBackupInfo(oGame)
|
RaiseEvent UpdateBackupInfo(oGame)
|
||||||
|
|
||||||
If oSettings.CreateSubFolder Then
|
If oSettings.CreateSubFolder Then
|
||||||
sBackupFile = sBackupFile & Path.DirectorySeparatorChar & oGame.Name
|
sBackupFile = sBackupFile & Path.DirectorySeparatorChar & GetFileName(oGame)
|
||||||
Try
|
Try
|
||||||
If Not Directory.Exists(sBackupFile) Then
|
If Not Directory.Exists(sBackupFile) Then
|
||||||
Directory.CreateDirectory(sBackupFile)
|
Directory.CreateDirectory(sBackupFile)
|
||||||
@@ -171,22 +233,15 @@ Public Class mgrBackup
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If oGame.AppendTimeStamp Then
|
If oGame.AppendTimeStamp Then
|
||||||
CheckOldBackups(oGame)
|
If oGame.BackupLimit > 0 Then CheckOldBackups(oGame)
|
||||||
sBackupFile = sBackupFile & Path.DirectorySeparatorChar & oGame.Name & sTimeStamp & ".7z"
|
sBackupFile = sBackupFile & Path.DirectorySeparatorChar & GetFileName(oGame) & sTimeStamp & ".7z"
|
||||||
Else
|
Else
|
||||||
sBackupFile = sBackupFile & Path.DirectorySeparatorChar & oGame.Name & ".7z"
|
sBackupFile = sBackupFile & Path.DirectorySeparatorChar & GetFileName(oGame) & ".7z"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If bDoBackup Then
|
If bDoBackup Then
|
||||||
If oGame.AbsolutePath = False Then
|
|
||||||
If oGame.Path <> String.Empty Then
|
sSavePath = VerifySavePath(oGame)
|
||||||
sSavePath = oGame.ProcessPath & Path.DirectorySeparatorChar & oGame.Path
|
|
||||||
Else
|
|
||||||
sSavePath = oGame.ProcessPath
|
|
||||||
End If
|
|
||||||
Else
|
|
||||||
sSavePath = oGame.Path
|
|
||||||
End If
|
|
||||||
|
|
||||||
If oGame.FolderSave = True Then
|
If oGame.FolderSave = True Then
|
||||||
BuildFileList(sSavePath, "*", mgrPath.IncludeFileLocation)
|
BuildFileList(sSavePath, "*", mgrPath.IncludeFileLocation)
|
||||||
@@ -222,13 +277,20 @@ Public Class mgrBackup
|
|||||||
End While
|
End While
|
||||||
prs7z.WaitForExit()
|
prs7z.WaitForExit()
|
||||||
If Not CancelOperation Then
|
If Not CancelOperation Then
|
||||||
If prs7z.ExitCode = 0 Then
|
Select Case prs7z.ExitCode
|
||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_BackupComplete, New String() {oGame.Name, mgrCommon.GetFileSize(sBackupFile)}), False, ToolTipIcon.Info, True)
|
Case 0
|
||||||
bBackupCompleted = True
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_BackupComplete, New String() {oGame.Name, mgrCommon.FormatDiskSpace(mgrCommon.GetFileSize(sBackupFile))}), False, ToolTipIcon.Info, True)
|
||||||
Else
|
bBackupCompleted = True
|
||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_BackupWarnings, oGame.Name), True, ToolTipIcon.Warning, True)
|
Case 1
|
||||||
bBackupCompleted = False
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_7zWarnings, oGame.Name), True, ToolTipIcon.Warning, True)
|
||||||
End If
|
bBackupCompleted = True
|
||||||
|
Case 2
|
||||||
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_7zFatalError, oGame.Name), True, ToolTipIcon.Error, True)
|
||||||
|
bBackupCompleted = False
|
||||||
|
Case 7
|
||||||
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_7zCommandFailure, oGame.Name), True, ToolTipIcon.Error, True)
|
||||||
|
bBackupCompleted = False
|
||||||
|
End Select
|
||||||
End If
|
End If
|
||||||
prs7z.Dispose()
|
prs7z.Dispose()
|
||||||
Else
|
Else
|
||||||
@@ -242,10 +304,10 @@ Public Class mgrBackup
|
|||||||
|
|
||||||
'Write Main Manifest
|
'Write Main Manifest
|
||||||
If bBackupCompleted Then
|
If bBackupCompleted Then
|
||||||
If oSettings.CheckSum Then
|
|
||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_GenerateHash, oGame.Name), False, ToolTipIcon.Info, True)
|
'Generate checksum for new backup
|
||||||
sHash = mgrHash.Generate_SHA256_Hash(sBackupFile)
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_GenerateHash, oGame.Name), False, ToolTipIcon.Info, True)
|
||||||
End If
|
sHash = mgrHash.Generate_SHA256_Hash(sBackupFile)
|
||||||
|
|
||||||
If Not DoManifestUpdate(oGame, sBackupFile, dTimeStamp, sHash) Then
|
If Not DoManifestUpdate(oGame, sBackupFile, dTimeStamp, sHash) Then
|
||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_ErrorManifestFailure, oGame.Name), True, ToolTipIcon.Error, True)
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrBackup_ErrorManifestFailure, oGame.Name), True, ToolTipIcon.Error, True)
|
||||||
|
|||||||
+288
-50
@@ -2,12 +2,15 @@
|
|||||||
Imports System.Net
|
Imports System.Net
|
||||||
Imports System.IO
|
Imports System.IO
|
||||||
Imports System.Security.Principal
|
Imports System.Security.Principal
|
||||||
|
Imports System.Text.RegularExpressions
|
||||||
|
Imports System.Runtime.Serialization
|
||||||
|
Imports System.Runtime.Serialization.Formatters.Binary
|
||||||
|
|
||||||
Public Class mgrCommon
|
Public Class mgrCommon
|
||||||
|
|
||||||
'These need to be updated when upgrading the packaged 7z utility
|
'These need to be updated when upgrading the packaged 7z utility
|
||||||
Private Shared sUtility64Hash As String = "05ACEE3BAC0C6C4E396116EF27B953F992DE8D28DD14D317977F45692304C318" 'v16.02 7za.exe x64
|
Private Shared sUtility64Hash As String = "8BC2A3D6C37C4DB9BD487AD35039AE0DC8A1DDF2C3B1F0B76B3E678FEBB9F223" 'v18.05 7za.exe x64
|
||||||
Private Shared sUtility32Hash As String = "7AA7056DB4348229A288EEF49027B94C0D8D1A3C3AEDC6FA89B640334C7B37E9" 'v16.02 7za.exe x86
|
Private Shared sUtility32Hash As String = "77613CCA716EDF68B9D5BAB951463ED7FADE5BC0EC465B36190A76299C50F117" 'v18.05 7za.exe x86
|
||||||
|
|
||||||
Public Shared ReadOnly Property UtilityHash As String
|
Public Shared ReadOnly Property UtilityHash As String
|
||||||
Get
|
Get
|
||||||
@@ -30,13 +33,60 @@ Public Class mgrCommon
|
|||||||
|
|
||||||
Public Shared ReadOnly Property AppVersion As Integer
|
Public Shared ReadOnly Property AppVersion As Integer
|
||||||
Get
|
Get
|
||||||
Return (My.Application.Info.Version.Major * 100) + My.Application.Info.Version.Minor
|
Return (My.Application.Info.Version.Major * 100) + (My.Application.Info.Version.Minor * 10) + My.Application.Info.Version.Build
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Shared Function CheckAddress(ByVal URL As String) As Boolean
|
Public Shared ReadOnly Property DisplayAppVersion As String
|
||||||
|
Get
|
||||||
|
Return My.Application.Info.Version.Major & "." & My.Application.Info.Version.Minor & "." & My.Application.Info.Version.Build
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'Source - https://stackoverflow.com/questions/18873152/deep-copy-of-ordereddictionary
|
||||||
|
Public Shared Function GenericClone(ByVal oOriginal As Object) As Object
|
||||||
|
'Construct a temporary memory stream
|
||||||
|
Dim oStream As MemoryStream = New MemoryStream()
|
||||||
|
|
||||||
|
'Construct a serialization formatter that does all the hard work
|
||||||
|
Dim oFormatter As BinaryFormatter = New BinaryFormatter()
|
||||||
|
|
||||||
|
'This line Is explained in the "Streaming Contexts" section
|
||||||
|
oFormatter.Context = New StreamingContext(StreamingContextStates.Clone)
|
||||||
|
|
||||||
|
'Serialize the object graph into the memory stream
|
||||||
|
oFormatter.Serialize(oStream, oOriginal)
|
||||||
|
|
||||||
|
'Seek back to the start of the memory stream before deserializing
|
||||||
|
oStream.Position = 0
|
||||||
|
|
||||||
|
'Deserialize the graph into a New set of objects
|
||||||
|
'Return the root of the graph (deep copy) to the caller
|
||||||
|
Return oFormatter.Deserialize(oStream)
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function SafeIconFromFile(ByVal sPath As String) As Image
|
||||||
|
Dim oImage As Image
|
||||||
|
Dim oReturnImage As Image
|
||||||
|
Dim oImageSize As Size = New Size(48, 48)
|
||||||
|
|
||||||
|
oImage = Image.FromFile(sPath)
|
||||||
|
oReturnImage = New Bitmap(oImage, oImageSize)
|
||||||
|
oImage.Dispose()
|
||||||
|
|
||||||
|
Return oReturnImage
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function IsAddress(ByVal sURL As String) As Boolean
|
||||||
|
If (sURL.IndexOf("http://", 0, StringComparison.CurrentCultureIgnoreCase) > -1) Or (sURL.IndexOf("https://", 0, StringComparison.CurrentCultureIgnoreCase) > -1) Then
|
||||||
|
Return True
|
||||||
|
End If
|
||||||
|
Return False
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function CheckAddress(ByVal sURL As String) As Boolean
|
||||||
Try
|
Try
|
||||||
Dim request As WebRequest = WebRequest.Create(URL)
|
Dim request As WebRequest = WebRequest.Create(sURL)
|
||||||
Dim response As WebResponse = request.GetResponse()
|
Dim response As WebResponse = request.GetResponse()
|
||||||
response.Close()
|
response.Close()
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
@@ -61,30 +111,66 @@ Public Class mgrCommon
|
|||||||
End If
|
End If
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function SaveFileBrowser(ByVal sTitle As String, ByVal sExtension As String, ByVal sFileType As String, ByVal sDefaultFolder As String, ByVal sDefaultFile As String) As String
|
Public Shared Function SaveFileBrowser(ByVal sName As String, ByVal sTitle As String, ByVal sExtension As String, ByVal sFileType As String, ByVal sDefaultFolder As String,
|
||||||
|
ByVal sDefaultFile As String, Optional ByVal bSavedPath As Boolean = True) As String
|
||||||
Dim fbBrowser As New SaveFileDialog
|
Dim fbBrowser As New SaveFileDialog
|
||||||
|
Dim oSavedPath As New clsSavedPath
|
||||||
|
|
||||||
fbBrowser.Title = sTitle
|
fbBrowser.Title = sTitle
|
||||||
fbBrowser.DefaultExt = sExtension
|
fbBrowser.DefaultExt = sExtension
|
||||||
fbBrowser.Filter = FormatString(mgrCommon_FilesFilter, New String() {sFileType, sExtension, sExtension})
|
fbBrowser.Filter = FormatString(mgrCommon_FilesFilter, New String() {sFileType, sExtension, sExtension})
|
||||||
fbBrowser.InitialDirectory = sDefaultFolder
|
|
||||||
fbBrowser.FileName = sDefaultFile
|
fbBrowser.FileName = sDefaultFile
|
||||||
|
fbBrowser.InitialDirectory = sDefaultFolder
|
||||||
|
|
||||||
If fbBrowser.ShowDialog() = Windows.Forms.DialogResult.OK Then
|
If bSavedPath Then
|
||||||
Return fbBrowser.FileName
|
oSavedPath = mgrSavedPath.GetPathByName(sName)
|
||||||
|
If oSavedPath.Path <> String.Empty Then
|
||||||
|
If Directory.Exists(oSavedPath.Path) Then
|
||||||
|
fbBrowser.InitialDirectory = oSavedPath.Path
|
||||||
|
End If
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Return String.Empty
|
If fbBrowser.ShowDialog() = Windows.Forms.DialogResult.OK Then
|
||||||
|
If bSavedPath Then
|
||||||
|
oSavedPath.PathName = sName
|
||||||
|
oSavedPath.Path = Path.GetDirectoryName(fbBrowser.FileName)
|
||||||
|
mgrSavedPath.AddUpdatePath(oSavedPath)
|
||||||
|
End If
|
||||||
|
|
||||||
|
Return fbBrowser.FileName
|
||||||
|
End If
|
||||||
|
|
||||||
|
Return String.Empty
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function OpenFileBrowser(ByVal sTitle As String, ByVal sExtension As String, ByVal sFileType As String, ByVal sDefaultFolder As String, ByVal bMulti As Boolean) As String
|
Public Shared Function OpenFileBrowser(ByVal sName As String, ByVal sTitle As String, ByVal sExtension As String, ByVal sFileType As String, ByVal sDefaultFolder As String,
|
||||||
|
ByVal bMulti As Boolean, Optional ByVal bSavedPath As Boolean = True) As String
|
||||||
Dim fbBrowser As New OpenFileDialog
|
Dim fbBrowser As New OpenFileDialog
|
||||||
|
Dim oSavedPath As New clsSavedPath
|
||||||
|
|
||||||
fbBrowser.Title = sTitle
|
fbBrowser.Title = sTitle
|
||||||
fbBrowser.DefaultExt = sExtension
|
fbBrowser.DefaultExt = sExtension
|
||||||
fbBrowser.Filter = FormatString(mgrCommon_FilesFilter, New String() {sFileType, sExtension, sExtension})
|
fbBrowser.Filter = FormatString(mgrCommon_FilesFilter, New String() {sFileType, sExtension, sExtension})
|
||||||
fbBrowser.InitialDirectory = sDefaultFolder
|
|
||||||
fbBrowser.Multiselect = bMulti
|
fbBrowser.Multiselect = bMulti
|
||||||
|
fbBrowser.InitialDirectory = sDefaultFolder
|
||||||
|
|
||||||
|
If bSavedPath Then
|
||||||
|
oSavedPath = mgrSavedPath.GetPathByName(sName)
|
||||||
|
If oSavedPath.Path <> String.Empty Then
|
||||||
|
If Directory.Exists(oSavedPath.Path) Then
|
||||||
|
fbBrowser.InitialDirectory = oSavedPath.Path
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
If fbBrowser.ShowDialog() = Windows.Forms.DialogResult.OK Then
|
If fbBrowser.ShowDialog() = Windows.Forms.DialogResult.OK Then
|
||||||
|
If bSavedPath Then
|
||||||
|
oSavedPath.PathName = sName
|
||||||
|
oSavedPath.Path = Path.GetDirectoryName(fbBrowser.FileName)
|
||||||
|
mgrSavedPath.AddUpdatePath(oSavedPath)
|
||||||
|
End If
|
||||||
|
|
||||||
If bMulti Then
|
If bMulti Then
|
||||||
Dim sFileNames As String = String.Empty
|
Dim sFileNames As String = String.Empty
|
||||||
For Each sFileName As String In fbBrowser.FileNames
|
For Each sFileName As String In fbBrowser.FileNames
|
||||||
@@ -100,12 +186,31 @@ Public Class mgrCommon
|
|||||||
Return String.Empty
|
Return String.Empty
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function OpenFolderBrowser(ByVal sTitle As String, ByVal sDefaultFolder As String, ByVal bEnableNewFolder As Boolean) As String
|
Public Shared Function OpenFolderBrowser(ByVal sName As String, ByVal sTitle As String, ByVal sDefaultFolder As String, ByVal bEnableNewFolder As Boolean,
|
||||||
|
Optional ByVal bSavedPath As Boolean = True) As String
|
||||||
Dim fbBrowser As New FolderBrowserDialog
|
Dim fbBrowser As New FolderBrowserDialog
|
||||||
|
Dim oSavedPath As New clsSavedPath
|
||||||
|
|
||||||
fbBrowser.Description = sTitle
|
fbBrowser.Description = sTitle
|
||||||
fbBrowser.SelectedPath = sDefaultFolder
|
fbBrowser.SelectedPath = sDefaultFolder
|
||||||
fbBrowser.ShowNewFolderButton = bEnableNewFolder
|
fbBrowser.ShowNewFolderButton = bEnableNewFolder
|
||||||
|
|
||||||
|
If bSavedPath Then
|
||||||
|
oSavedPath = mgrSavedPath.GetPathByName(sName)
|
||||||
|
If oSavedPath.Path <> String.Empty Then
|
||||||
|
If Directory.Exists(oSavedPath.Path) Then
|
||||||
|
fbBrowser.SelectedPath = oSavedPath.Path
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
If fbBrowser.ShowDialog() = Windows.Forms.DialogResult.OK Then
|
If fbBrowser.ShowDialog() = Windows.Forms.DialogResult.OK Then
|
||||||
|
If bSavedPath Then
|
||||||
|
oSavedPath.PathName = sName
|
||||||
|
oSavedPath.Path = fbBrowser.SelectedPath
|
||||||
|
mgrSavedPath.AddUpdatePath(oSavedPath)
|
||||||
|
End If
|
||||||
|
|
||||||
Return fbBrowser.SelectedPath
|
Return fbBrowser.SelectedPath
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -116,11 +221,6 @@ Public Class mgrCommon
|
|||||||
Dim sExemptList As String() = {"dosbox", "scummvm"}
|
Dim sExemptList As String() = {"dosbox", "scummvm"}
|
||||||
Dim bFound As Boolean = False
|
Dim bFound As Boolean = False
|
||||||
|
|
||||||
'We can't search if we don't have a configuration
|
|
||||||
If oGame.Temporary Then
|
|
||||||
Return True
|
|
||||||
End If
|
|
||||||
|
|
||||||
For Each s As String In sExemptList
|
For Each s As String In sExemptList
|
||||||
If oGame.ProcessName.ToLower.Contains(s) Then bFound = True
|
If oGame.ProcessName.ToLower.Contains(s) Then bFound = True
|
||||||
Next
|
Next
|
||||||
@@ -157,12 +257,162 @@ Public Class mgrCommon
|
|||||||
oProcess.Start()
|
oProcess.Start()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Shared Function SetSyncField(ByVal eSyncFields As clsGame.eOptionalSyncFields, ByVal eSyncField As clsGame.eOptionalSyncFields) As clsGame.eOptionalSyncFields
|
'Get a file size
|
||||||
Return eSyncFields Or eSyncField
|
Public Shared Function GetFileSize(ByVal sFile As String) As Long
|
||||||
|
Dim oFileInfo As FileInfo
|
||||||
|
Dim dFileSize As Long = 0
|
||||||
|
|
||||||
|
Try
|
||||||
|
oFileInfo = New FileInfo(sFile)
|
||||||
|
dFileSize = oFileInfo.Length
|
||||||
|
Catch ex As Exception
|
||||||
|
'Do Nothing
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return dFileSize
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function RemoveSyncField(ByVal eSyncFields As clsGame.eOptionalSyncFields, ByVal eSyncField As clsGame.eOptionalSyncFields) As clsGame.eOptionalSyncFields
|
Public Shared Function WildcardToRegex(ByVal sPattern As String) As String
|
||||||
Return eSyncFields And (Not eSyncField)
|
Dim sRegEx As String
|
||||||
|
sRegEx = sPattern.Replace("*", ".*")
|
||||||
|
sRegEx = sRegEx.Replace("?", ".")
|
||||||
|
Return sRegEx
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function CompareValueToArrayRegEx(ByVal sValue As String, ByVal sValues As String()) As Boolean
|
||||||
|
For Each se As String In sValues
|
||||||
|
If Regex.IsMatch(sValue, WildcardToRegex(se)) Then
|
||||||
|
Return True
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
Return False
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function IsRegExValid(ByVal sPattern As String) As Boolean
|
||||||
|
Dim oRegEx As Regex
|
||||||
|
Try
|
||||||
|
oRegEx = New Regex(sPattern)
|
||||||
|
Return True
|
||||||
|
Catch ex As Exception
|
||||||
|
Return False
|
||||||
|
End Try
|
||||||
|
End Function
|
||||||
|
|
||||||
|
'Calculate the current size of a folder
|
||||||
|
Public Shared Function GetFolderSize(ByVal sPath As String, ByVal sInclude As String(), ByVal sExclude As String()) As Long
|
||||||
|
Dim oFolder As DirectoryInfo
|
||||||
|
Dim bInclude As Boolean
|
||||||
|
Dim bExclude As Boolean
|
||||||
|
Dim lSize As Long = 0
|
||||||
|
|
||||||
|
Try
|
||||||
|
If Not Directory.Exists(sPath) Then Return lSize
|
||||||
|
|
||||||
|
oFolder = New DirectoryInfo(sPath)
|
||||||
|
|
||||||
|
'Files
|
||||||
|
For Each fi As FileInfo In oFolder.EnumerateFiles()
|
||||||
|
If sInclude.Length > 0 Then
|
||||||
|
bInclude = CompareValueToArrayRegEx(fi.Name, sInclude) Or CompareValueToArrayRegEx(fi.DirectoryName, sInclude)
|
||||||
|
Else
|
||||||
|
bInclude = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
If sExclude.Length > 0 Then
|
||||||
|
bExclude = CompareValueToArrayRegEx(fi.Name, sExclude) Or CompareValueToArrayRegEx(fi.DirectoryName, sExclude)
|
||||||
|
Else
|
||||||
|
bExclude = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If bInclude And Not bExclude Then
|
||||||
|
lSize += fi.Length
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
'Sub Folders
|
||||||
|
For Each di As DirectoryInfo In oFolder.EnumerateDirectories()
|
||||||
|
If Not ((di.Attributes And FileAttributes.ReparsePoint) = FileAttributes.ReparsePoint) Then
|
||||||
|
If sExclude.Length > 0 Then
|
||||||
|
bExclude = CompareValueToArrayRegEx(di.Name, sExclude)
|
||||||
|
Else
|
||||||
|
bExclude = False
|
||||||
|
End If
|
||||||
|
If Not bExclude Then
|
||||||
|
lSize += GetFolderSize(di.FullName, sInclude, sExclude)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
Catch
|
||||||
|
'Do Nothing
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return lSize
|
||||||
|
End Function
|
||||||
|
|
||||||
|
'Format Disk Space Amounts
|
||||||
|
Public Shared Function FormatDiskSpace(ByVal lSize As Long)
|
||||||
|
|
||||||
|
Select Case lSize
|
||||||
|
Case >= 1125899906842624
|
||||||
|
Return FormatString(mgrCommon_PB, Math.Round(lSize / 1125899906842624, 2))
|
||||||
|
Case >= 1099511627776
|
||||||
|
Return FormatString(mgrCommon_TB, Math.Round(lSize / 1099511627776, 2))
|
||||||
|
Case >= 1073741824
|
||||||
|
Return FormatString(mgrCommon_GB, Math.Round(lSize / 1073741824, 2))
|
||||||
|
Case >= 1048576
|
||||||
|
Return FormatString(mgrCommon_MB, Math.Round(lSize / 1048576, 2))
|
||||||
|
Case >= 1024
|
||||||
|
Return FormatString(mgrCommon_KB, Math.Round(lSize / 1024, 2))
|
||||||
|
Case >= 0
|
||||||
|
Return FormatString(mgrCommon_B, lSize)
|
||||||
|
End Select
|
||||||
|
|
||||||
|
Return lSize
|
||||||
|
End Function
|
||||||
|
|
||||||
|
'Get available disk space on a drive (Unix)
|
||||||
|
Private Shared Function GetAvailableDiskSpaceUnix(ByVal sPath As String) As Long
|
||||||
|
Dim prsdf As Process
|
||||||
|
Dim sOutput As String
|
||||||
|
Dim sAvailableSpace As String
|
||||||
|
Try
|
||||||
|
prsdf = New Process
|
||||||
|
prsdf.StartInfo.FileName = "/bin/df"
|
||||||
|
prsdf.StartInfo.Arguments = sPath
|
||||||
|
prsdf.StartInfo.UseShellExecute = False
|
||||||
|
prsdf.StartInfo.RedirectStandardOutput = True
|
||||||
|
prsdf.StartInfo.CreateNoWindow = True
|
||||||
|
prsdf.Start()
|
||||||
|
sOutput = prsdf.StandardOutput.ReadToEnd
|
||||||
|
'Parse df output to grab "Available" value
|
||||||
|
sAvailableSpace = sOutput.Split(vbLf)(1).Split(New Char() {" "}, StringSplitOptions.RemoveEmptyEntries)(3)
|
||||||
|
'Return value in bytes
|
||||||
|
Return CLng(sAvailableSpace) * 1024
|
||||||
|
Catch
|
||||||
|
Return 0
|
||||||
|
End Try
|
||||||
|
End Function
|
||||||
|
|
||||||
|
'Get available disk space on a drive (Windows)
|
||||||
|
Private Shared Function GetAvailableDiskSpaceWindows(ByVal sPath As String) As Long
|
||||||
|
Dim oDrive As DriveInfo
|
||||||
|
Dim lAvailableSpace As Long = 0
|
||||||
|
Try
|
||||||
|
oDrive = New DriveInfo(Path.GetPathRoot(sPath))
|
||||||
|
lAvailableSpace = oDrive.AvailableFreeSpace
|
||||||
|
Catch
|
||||||
|
'Do Nothing
|
||||||
|
End Try
|
||||||
|
Return lAvailableSpace
|
||||||
|
End Function
|
||||||
|
|
||||||
|
'Get available disk space on a drive
|
||||||
|
Public Shared Function GetAvailableDiskSpace(ByVal sPath As String) As Long
|
||||||
|
If IsUnix() Then
|
||||||
|
Return GetAvailableDiskSpaceUnix(sPath)
|
||||||
|
Else
|
||||||
|
Return GetAvailableDiskSpaceWindows(sPath)
|
||||||
|
End If
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
'Delete file based on OS type
|
'Delete file based on OS type
|
||||||
@@ -194,17 +444,24 @@ Public Class mgrCommon
|
|||||||
'Delete a sub-folder based on the provided backup information
|
'Delete a sub-folder based on the provided backup information
|
||||||
Public Shared Sub DeleteDirectoryByBackup(ByVal sBackupFolder As String, ByVal oBackup As clsBackup)
|
Public Shared Sub DeleteDirectoryByBackup(ByVal sBackupFolder As String, ByVal oBackup As clsBackup)
|
||||||
Dim oDir As DirectoryInfo
|
Dim oDir As DirectoryInfo
|
||||||
Dim sDir As String = sBackupFolder & oBackup.Name
|
Dim sDir As String = sBackupFolder & oBackup.MonitorID
|
||||||
|
|
||||||
|
'Check if the sub-folder is an ID or Name
|
||||||
|
If oBackup.FileName.StartsWith(oBackup.MonitorID & Path.DirectorySeparatorChar) Then
|
||||||
|
sDir = sBackupFolder & oBackup.MonitorID
|
||||||
|
ElseIf oBackup.FileName.StartsWith(oBackup.FileSafeName & Path.DirectorySeparatorChar) Then
|
||||||
|
sDir = sBackupFolder & oBackup.FileSafeName
|
||||||
|
Else
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
'Delete sub directory if it's empty
|
'Delete sub directory if it's empty
|
||||||
If oBackup.FileName.StartsWith(oBackup.Name & Path.DirectorySeparatorChar) Then
|
If Directory.Exists(sDir) Then
|
||||||
If Directory.Exists(sDir) Then
|
'Check if there's any sub-directories or files remaining
|
||||||
'Check if there's any sub-directories or files remaining
|
oDir = New DirectoryInfo(sDir)
|
||||||
oDir = New DirectoryInfo(sDir)
|
If oDir.GetDirectories.Length = 0 And oDir.GetFiles.Length = 0 Then
|
||||||
If oDir.GetDirectories.Length = 0 And oDir.GetFiles.Length = 0 Then
|
'Folder is empty, delete the empty sub-folder
|
||||||
'Folder is empty, delete the empty sub-folder
|
If Directory.Exists(sDir) Then DeleteDirectory(sDir)
|
||||||
If Directory.Exists(sDir) Then DeleteDirectory(sDir)
|
|
||||||
End If
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
@@ -224,24 +481,6 @@ Public Class mgrCommon
|
|||||||
End Try
|
End Try
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
'Get a file size
|
|
||||||
Public Shared Function GetFileSize(ByVal sFile As String) As String
|
|
||||||
Dim oFileInfo As FileInfo
|
|
||||||
Dim dFileSize As Double
|
|
||||||
|
|
||||||
Try
|
|
||||||
oFileInfo = New FileInfo(sFile)
|
|
||||||
dFileSize = oFileInfo.Length
|
|
||||||
If dFileSize > 1048576 Then
|
|
||||||
Return FormatString(App_MB, Math.Round(dFileSize / 1048576, 2).ToString)
|
|
||||||
Else
|
|
||||||
Return FormatString(App_KB, Math.Round(dFileSize / 1024, 2).ToString)
|
|
||||||
End If
|
|
||||||
Catch ex As Exception
|
|
||||||
Return String.Empty
|
|
||||||
End Try
|
|
||||||
End Function
|
|
||||||
|
|
||||||
'Handles no extra parameters
|
'Handles no extra parameters
|
||||||
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
|
||||||
@@ -270,7 +509,6 @@ Public Class mgrCommon
|
|||||||
Return sString
|
Return sString
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
'Handles single parameter stings
|
'Handles single parameter stings
|
||||||
Public Shared Function FormatString(ByVal sString As String, ByVal sParam As String) As String
|
Public Shared Function FormatString(ByVal sString As String, ByVal sParam As String) As String
|
||||||
sString = sString.Replace("[BR]", vbCrLf)
|
sString = sString.Replace("[BR]", vbCrLf)
|
||||||
|
|||||||
@@ -0,0 +1,163 @@
|
|||||||
|
Public Class mgrGameProcesses
|
||||||
|
|
||||||
|
Public Shared Sub DoGameProcessAdd(ByVal oGameProcess As clsGameProcess)
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
|
sSQL = "INSERT INTO gameprocesses VALUES (@ProcessID, @MonitorID)"
|
||||||
|
hshParams.Add("ProcessID", oGameProcess.ProcessID)
|
||||||
|
hshParams.Add("MonitorID", oGameProcess.MonitorID)
|
||||||
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Shared Sub DoGameProcessAddBatch(ByVal oGameProcesss As List(Of clsGameProcess))
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As Hashtable
|
||||||
|
Dim oParamList As New List(Of Hashtable)
|
||||||
|
|
||||||
|
sSQL = "INSERT INTO gameprocesses VALUES (@ProcessID, @MonitorID);"
|
||||||
|
|
||||||
|
For Each oGameProcess As clsGameProcess In oGameProcesss
|
||||||
|
hshParams = New Hashtable
|
||||||
|
hshParams.Add("ProcessID", oGameProcess.ProcessID)
|
||||||
|
hshParams.Add("MonitorID", oGameProcess.MonitorID)
|
||||||
|
oParamList.Add(hshParams)
|
||||||
|
Next
|
||||||
|
|
||||||
|
oDatabase.RunMassParamQuery(sSQL, oParamList)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Shared Sub DoGameProcessDelete(ByVal oGameProcesss As List(Of clsGameProcess))
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As Hashtable
|
||||||
|
Dim oParamList As New List(Of Hashtable)
|
||||||
|
|
||||||
|
sSQL = "DELETE FROM gameprocesses "
|
||||||
|
sSQL &= "WHERE ProcessID = @ProcessID AND MonitorID = @MonitorID;"
|
||||||
|
|
||||||
|
For Each oGameProcess As clsGameProcess In oGameProcesss
|
||||||
|
hshParams = New Hashtable
|
||||||
|
hshParams.Add("ProcessID", oGameProcess.ProcessID)
|
||||||
|
hshParams.Add("MonitorID", oGameProcess.MonitorID)
|
||||||
|
oParamList.Add(hshParams)
|
||||||
|
Next
|
||||||
|
|
||||||
|
oDatabase.RunMassParamQuery(sSQL, oParamList)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Shared Sub DoGameProcessDeleteByGame(ByVal sMonitorID As String)
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
|
sSQL = "DELETE FROM gameprocesses "
|
||||||
|
sSQL &= "WHERE MonitorID = @ID;"
|
||||||
|
|
||||||
|
hshParams.Add("ID", sMonitorID)
|
||||||
|
|
||||||
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Public Shared Sub DoGameProcessDeleteByProcess(ByVal sProcessID As String)
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
|
sSQL = "DELETE FROM gameprocesses "
|
||||||
|
sSQL &= "WHERE ProcessID = @ID;"
|
||||||
|
|
||||||
|
hshParams.Add("ID", sProcessID)
|
||||||
|
|
||||||
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Shared Function GetProcessesByGame(ByVal sMonitorID As String) As Hashtable
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim oData As DataSet
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshList As New Hashtable
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
Dim oProcess As clsProcess
|
||||||
|
|
||||||
|
sSQL = "SELECT ProcessID, processes.Name, processes.Path, processes.Args, processes.Kill FROM gameprocesses NATURAL JOIN processes WHERE MonitorID = @ID"
|
||||||
|
|
||||||
|
hshParams.Add("ID", sMonitorID)
|
||||||
|
|
||||||
|
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
|
|
||||||
|
For Each dr As DataRow In oData.Tables(0).Rows
|
||||||
|
oProcess = New clsProcess
|
||||||
|
oProcess.ID = CStr(dr("ProcessID"))
|
||||||
|
oProcess.Name = CStr(dr("Name"))
|
||||||
|
oProcess.Path = CStr(dr("Path"))
|
||||||
|
If Not IsDBNull(dr("Args")) Then oProcess.Args = CStr(dr("Args"))
|
||||||
|
oProcess.Kill = CBool(dr("Kill"))
|
||||||
|
|
||||||
|
hshList.Add(oProcess.ID, oProcess)
|
||||||
|
Next
|
||||||
|
|
||||||
|
Return hshList
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function GetProcessesByGameMulti(ByVal sMonitorIDs As List(Of String)) As Hashtable
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim oData As DataSet
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshList As New Hashtable
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
Dim oProcess As clsProcess
|
||||||
|
Dim iCounter As Integer
|
||||||
|
|
||||||
|
sSQL = "SELECT DISTINCT ProcessID, processes.Name, processes.Path, processes.Args, processes.Kill FROM gameprocesses NATURAL JOIN processes WHERE MonitorID IN ("
|
||||||
|
|
||||||
|
For Each s As String In sMonitorIDs
|
||||||
|
sSQL &= "@MonitorID" & iCounter & ","
|
||||||
|
hshParams.Add("MonitorID" & iCounter, s)
|
||||||
|
iCounter += 1
|
||||||
|
Next
|
||||||
|
|
||||||
|
sSQL = sSQL.TrimEnd(",")
|
||||||
|
sSQL &= ")"
|
||||||
|
|
||||||
|
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
|
|
||||||
|
For Each dr As DataRow In oData.Tables(0).Rows
|
||||||
|
oProcess = New clsProcess
|
||||||
|
oProcess.ID = CStr(dr("ProcessID"))
|
||||||
|
oProcess.Name = CStr(dr("Name"))
|
||||||
|
oProcess.Path = CStr(dr("Path"))
|
||||||
|
If Not IsDBNull(dr("Args")) Then oProcess.Args = CStr(dr("Args"))
|
||||||
|
oProcess.Kill = CBool(dr("Kill"))
|
||||||
|
hshList.Add(oProcess.ID, oProcess)
|
||||||
|
Next
|
||||||
|
|
||||||
|
Return hshList
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function ReadGameProcesss() As Hashtable
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim oData As DataSet
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim sCompoundKey As String
|
||||||
|
Dim hshList As New Hashtable
|
||||||
|
Dim oGameProcess As clsGameProcess
|
||||||
|
|
||||||
|
sSQL = "SELECT * from gameprocesses"
|
||||||
|
oData = oDatabase.ReadParamData(sSQL, New Hashtable)
|
||||||
|
|
||||||
|
For Each dr As DataRow In oData.Tables(0).Rows
|
||||||
|
oGameProcess = New clsGameProcess
|
||||||
|
oGameProcess.ProcessID = CStr(dr("ProcessID"))
|
||||||
|
oGameProcess.MonitorID = CStr(dr("MonitorID"))
|
||||||
|
sCompoundKey = oGameProcess.ProcessID & ":" & oGameProcess.MonitorID
|
||||||
|
hshList.Add(sCompoundKey, oGameProcess)
|
||||||
|
Next
|
||||||
|
|
||||||
|
Return hshList
|
||||||
|
End Function
|
||||||
|
End Class
|
||||||
@@ -76,11 +76,11 @@
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Shared Function GetTagsByGame(ByVal sMonitorID As String) As Hashtable
|
Public Shared Function GetTagsByGame(ByVal sMonitorID As String) As SortedList
|
||||||
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
Dim oData As DataSet
|
Dim oData As DataSet
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
Dim hshList As New Hashtable
|
Dim slList As New SortedList
|
||||||
Dim hshParams As New Hashtable
|
Dim hshParams As New Hashtable
|
||||||
Dim oTag As clsTag
|
Dim oTag As clsTag
|
||||||
|
|
||||||
@@ -94,10 +94,10 @@
|
|||||||
oTag = New clsTag
|
oTag = New clsTag
|
||||||
oTag.ID = CStr(dr("TagID"))
|
oTag.ID = CStr(dr("TagID"))
|
||||||
oTag.Name = CStr(dr("Name"))
|
oTag.Name = CStr(dr("Name"))
|
||||||
hshList.Add(oTag.Name, oTag)
|
slList.Add(oTag.Name, oTag)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
Return hshList
|
Return slList
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function GetTagsByGameForExport(ByVal sMonitorID As String) As List(Of Tag)
|
Public Shared Function GetTagsByGameForExport(ByVal sMonitorID As String) As List(Of Tag)
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
Dim hshParams As New Hashtable
|
Dim hshParams As New Hashtable
|
||||||
Dim oTag As Tag
|
Dim oTag As Tag
|
||||||
|
|
||||||
sSQL = "SELECT TagID, tags.Name FROM gametags NATURAL JOIN tags WHERE MonitorID = @ID"
|
sSQL = "SELECT TagID, tags.Name FROM gametags NATURAL JOIN tags WHERE MonitorID = @ID ORDER BY tags.Name ASC"
|
||||||
|
|
||||||
hshParams.Add("ID", sMonitorID)
|
hshParams.Add("ID", sMonitorID)
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
Public Class mgrGlobals
|
|
||||||
Public Shared LocalDatabaseHash As String = String.Empty
|
|
||||||
Public Shared RemoteDatabaseHash As String = String.Empty
|
|
||||||
End Class
|
|
||||||
+45
-71
@@ -4,10 +4,11 @@
|
|||||||
Dim oBackupItem As clsBackup
|
Dim oBackupItem As clsBackup
|
||||||
|
|
||||||
oBackupItem = New clsBackup
|
oBackupItem = New clsBackup
|
||||||
oBackupItem.ID = CStr(dr("ManifestID"))
|
oBackupItem.ManifestID = CStr(dr("ManifestID"))
|
||||||
|
oBackupItem.MonitorID = CStr(dr("MonitorID"))
|
||||||
oBackupItem.Name = CStr(dr("Name"))
|
oBackupItem.Name = CStr(dr("Name"))
|
||||||
oBackupItem.FileName = CStr(dr("FileName"))
|
oBackupItem.FileName = CStr(dr("FileName"))
|
||||||
oBackupItem.RestorePath = CStr(dr("RestorePath"))
|
oBackupItem.RestorePath = CStr(dr("Path"))
|
||||||
oBackupItem.AbsolutePath = CBool(dr("AbsolutePath"))
|
oBackupItem.AbsolutePath = CBool(dr("AbsolutePath"))
|
||||||
oBackupItem.DateUpdated = mgrCommon.UnixToDate(dr("DateUpdated"))
|
oBackupItem.DateUpdated = mgrCommon.UnixToDate(dr("DateUpdated"))
|
||||||
oBackupItem.UpdatedBy = CStr(dr("UpdatedBy"))
|
oBackupItem.UpdatedBy = CStr(dr("UpdatedBy"))
|
||||||
@@ -19,11 +20,9 @@
|
|||||||
Private Shared Function SetCoreParameters(ByVal oBackupItem As clsBackup) As Hashtable
|
Private Shared Function SetCoreParameters(ByVal oBackupItem As clsBackup) As Hashtable
|
||||||
Dim hshParams As New Hashtable
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
hshParams.Add("ID", oBackupItem.ID)
|
hshParams.Add("ManifestID", oBackupItem.ManifestID)
|
||||||
hshParams.Add("Name", oBackupItem.Name)
|
hshParams.Add("MonitorID", oBackupItem.MonitorID)
|
||||||
hshParams.Add("FileName", oBackupItem.FileName)
|
hshParams.Add("FileName", oBackupItem.FileName)
|
||||||
hshParams.Add("Path", oBackupItem.TruePath)
|
|
||||||
hshParams.Add("AbsolutePath", oBackupItem.AbsolutePath)
|
|
||||||
hshParams.Add("DateUpdated", oBackupItem.DateUpdatedUnix)
|
hshParams.Add("DateUpdated", oBackupItem.DateUpdatedUnix)
|
||||||
hshParams.Add("UpdatedBy", oBackupItem.UpdatedBy)
|
hshParams.Add("UpdatedBy", oBackupItem.UpdatedBy)
|
||||||
hshParams.Add("CheckSum", oBackupItem.CheckSum)
|
hshParams.Add("CheckSum", oBackupItem.CheckSum)
|
||||||
@@ -38,12 +37,12 @@
|
|||||||
Dim oBackupItem As clsBackup
|
Dim oBackupItem As clsBackup
|
||||||
Dim slList As New SortedList
|
Dim slList As New SortedList
|
||||||
|
|
||||||
sSQL = "SELECT * from manifest ORDER BY Name Asc"
|
sSQL = "SELECT * from manifest NATURAL JOIN monitorlist ORDER BY Name Asc"
|
||||||
oData = oDatabase.ReadParamData(sSQL, New Hashtable)
|
oData = oDatabase.ReadParamData(sSQL, New Hashtable)
|
||||||
|
|
||||||
For Each dr As DataRow In oData.Tables(0).Rows
|
For Each dr As DataRow In oData.Tables(0).Rows
|
||||||
oBackupItem = MapToObject(dr)
|
oBackupItem = MapToObject(dr)
|
||||||
slList.Add(oBackupItem.ID, oBackupItem)
|
slList.Add(oBackupItem.ManifestID, oBackupItem)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
Return slList
|
Return slList
|
||||||
@@ -57,19 +56,19 @@
|
|||||||
Dim oBackupItem As clsBackup
|
Dim oBackupItem As clsBackup
|
||||||
Dim slList As New SortedList
|
Dim slList As New SortedList
|
||||||
|
|
||||||
sSQL = "SELECT ManifestID, Name, FileName, RestorePath, AbsolutePath, Max(DateUpdated) As DateUpdated, UpdatedBy, CheckSum FROM manifest GROUP BY Name ORDER By Name ASC"
|
sSQL = "SELECT ManifestID, MonitorID, Name, FileName, Path, AbsolutePath, Max(DateUpdated) As DateUpdated, UpdatedBy, CheckSum FROM manifest NATURAL JOIN monitorlist GROUP BY Name ORDER By Name ASC"
|
||||||
oData = oDatabase.ReadParamData(sSQL, New Hashtable)
|
oData = oDatabase.ReadParamData(sSQL, New Hashtable)
|
||||||
|
|
||||||
For Each dr As DataRow In oData.Tables(0).Rows
|
For Each dr As DataRow In oData.Tables(0).Rows
|
||||||
oBackupItem = MapToObject(dr)
|
oBackupItem = MapToObject(dr)
|
||||||
slList.Add(oBackupItem.Name, oBackupItem)
|
slList.Add(oBackupItem.MonitorID, oBackupItem)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
Return slList
|
Return slList
|
||||||
|
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function DoManifestGetByName(ByVal sName As String, ByVal iSelectDB As mgrSQLite.Database) As List(Of clsBackup)
|
Public Shared Function DoManifestGetByMonitorID(ByVal sMonitorID As String, ByVal iSelectDB As mgrSQLite.Database) As List(Of clsBackup)
|
||||||
Dim oDatabase As New mgrSQLite(iSelectDB)
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
Dim oData As DataSet
|
Dim oData As DataSet
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
@@ -78,10 +77,10 @@
|
|||||||
Dim oList As New List(Of clsBackup)
|
Dim oList As New List(Of clsBackup)
|
||||||
|
|
||||||
|
|
||||||
sSQL = "SELECT * from manifest "
|
sSQL = "SELECT * FROM manifest NATURAL JOIN monitorlist "
|
||||||
sSQL &= "WHERE Name = @Name ORDER BY DateUpdated Desc"
|
sSQL &= "WHERE MonitorID = @MonitorID ORDER BY DateUpdated Desc"
|
||||||
|
|
||||||
hshParams.Add("Name", sName)
|
hshParams.Add("MonitorID", sMonitorID)
|
||||||
|
|
||||||
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
|
|
||||||
@@ -93,7 +92,7 @@
|
|||||||
Return oList
|
Return oList
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function DoManifestGetByID(ByVal sID As String, ByVal iSelectDB As mgrSQLite.Database) As clsBackup
|
Public Shared Function DoManifestGetByManifestID(ByVal sManifestID As String, ByVal iSelectDB As mgrSQLite.Database) As clsBackup
|
||||||
Dim oDatabase As New mgrSQLite(iSelectDB)
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
Dim oData As DataSet
|
Dim oData As DataSet
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
@@ -101,10 +100,10 @@
|
|||||||
Dim oBackupItem As New clsBackup
|
Dim oBackupItem As New clsBackup
|
||||||
Dim oList As New List(Of clsBackup)
|
Dim oList As New List(Of clsBackup)
|
||||||
|
|
||||||
sSQL = "SELECT * from manifest "
|
sSQL = "SELECT * FROM manifest NATURAL JOIN monitorlist "
|
||||||
sSQL &= "WHERE ManifestID = @ID ORDER BY DateUpdated Desc"
|
sSQL &= "WHERE ManifestID = @ManifestID ORDER BY DateUpdated Desc"
|
||||||
|
|
||||||
hshParams.Add("ID", sID)
|
hshParams.Add("ManifestID", sManifestID)
|
||||||
|
|
||||||
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
|
|
||||||
@@ -115,25 +114,22 @@
|
|||||||
Return oBackupItem
|
Return oBackupItem
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
'This should only be used to update specific entries in the remote manifest
|
Public Shared Function DoUpdateLatestManifest(ByRef oItem As clsBackup, ByVal iSelectDB As mgrSQLite.Database) As Boolean
|
||||||
Public Shared Function DoSpecificManifestCheck(ByRef oItem As clsBackup, ByVal iSelectDB As mgrSQLite.Database) As Boolean
|
|
||||||
Dim oDatabase As New mgrSQLite(iSelectDB)
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
Dim oData As DataSet
|
Dim oData As Object
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
Dim hshParams As New Hashtable
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
sSQL = "SELECT * from manifest "
|
sSQL = "SELECT ManifestID FROM manifest NATURAL JOIN monitorlist "
|
||||||
sSQL &= "WHERE Name = @Name AND FileName = @FileName"
|
sSQL &= "WHERE MonitorID = @MonitorID ORDER BY DateUpdated DESC LIMIT 1"
|
||||||
|
|
||||||
hshParams.Add("Name", oItem.Name)
|
hshParams.Add("MonitorID", oItem.MonitorID)
|
||||||
hshParams.Add("FileName", oItem.FileName)
|
|
||||||
|
|
||||||
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
oData = oDatabase.ReadSingleValue(sSQL, hshParams)
|
||||||
|
|
||||||
If oData.Tables(0).Rows.Count > 0 Then
|
If Not oData Is Nothing Then
|
||||||
For Each dr As DataRow In oData.Tables(0).Rows
|
oItem.ManifestID = CStr(oData)
|
||||||
oItem.ID = CStr(dr("ManifestID"))
|
DoManifestUpdateByManifestID(oItem, mgrSQLite.Database.Remote)
|
||||||
Next
|
|
||||||
Return True
|
Return True
|
||||||
Else
|
Else
|
||||||
Return False
|
Return False
|
||||||
@@ -141,38 +137,16 @@
|
|||||||
|
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
'This should only be used to update entries in the local manifest
|
Public Shared Function DoManifestCheck(ByVal sMonitorID As String, ByVal iSelectDB As mgrSQLite.Database) As Boolean
|
||||||
Public Shared Function DoGlobalManifestCheck(ByVal sName As String, ByVal iSelectDB As mgrSQLite.Database) As Boolean
|
|
||||||
Dim oDatabase As New mgrSQLite(iSelectDB)
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
Dim oData As DataSet
|
Dim oData As DataSet
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
Dim hshParams As New Hashtable
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
sSQL = "SELECT * from manifest "
|
sSQL = "SELECT * FROM manifest "
|
||||||
sSQL &= "WHERE Name = @Name"
|
sSQL &= "WHERE MonitorID = @MonitorID"
|
||||||
|
|
||||||
hshParams.Add("Name", sName)
|
hshParams.Add("MonitorID", sMonitorID)
|
||||||
|
|
||||||
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
|
||||||
|
|
||||||
If oData.Tables(0).Rows.Count > 0 Then
|
|
||||||
Return True
|
|
||||||
Else
|
|
||||||
Return False
|
|
||||||
End If
|
|
||||||
|
|
||||||
End Function
|
|
||||||
|
|
||||||
Public Shared Function DoManifestNameCheck(ByVal sName As String, ByVal iSelectDB As mgrSQLite.Database) As Boolean
|
|
||||||
Dim oDatabase As New mgrSQLite(iSelectDB)
|
|
||||||
Dim oData As DataSet
|
|
||||||
Dim sSQL As String
|
|
||||||
Dim hshParams As New Hashtable
|
|
||||||
|
|
||||||
sSQL = "SELECT * from manifest "
|
|
||||||
sSQL &= "WHERE Name = @Name"
|
|
||||||
|
|
||||||
hshParams.Add("Name", sName)
|
|
||||||
|
|
||||||
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
|
|
||||||
@@ -189,63 +163,63 @@
|
|||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
Dim hshParams As Hashtable
|
Dim hshParams As Hashtable
|
||||||
|
|
||||||
sSQL = "INSERT INTO manifest VALUES (@ID, @Name, @FileName, @Path, @AbsolutePath, @DateUpdated, @UpdatedBy, @CheckSum)"
|
sSQL = "INSERT INTO manifest VALUES (@ManifestID, @MonitorID, @FileName, @DateUpdated, @UpdatedBy, @CheckSum)"
|
||||||
|
|
||||||
hshParams = SetCoreParameters(oBackupItem)
|
hshParams = SetCoreParameters(oBackupItem)
|
||||||
|
|
||||||
oDatabase.RunParamQuery(sSQL, hshParams)
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Shared Sub DoManifestUpdateByName(ByVal oBackupItem As clsBackup, ByVal iSelectDB As mgrSQLite.Database)
|
Public Shared Sub DoManifestUpdateByMonitorID(ByVal oBackupItem As clsBackup, ByVal iSelectDB As mgrSQLite.Database)
|
||||||
Dim oDatabase As New mgrSQLite(iSelectDB)
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
Dim hshParams As Hashtable
|
Dim hshParams As Hashtable
|
||||||
|
|
||||||
sSQL = "UPDATE manifest SET Name = @Name, FileName = @FileName, RestorePath = @Path, AbsolutePath = @AbsolutePath, "
|
sSQL = "UPDATE manifest SET MonitorID = @MonitorID, FileName = @FileName, DateUpdated = @DateUpdated, "
|
||||||
sSQL &= "DateUpdated = @DateUpdated, UpdatedBy = @UpdatedBy, CheckSum = @CheckSum WHERE Name = @QueryName"
|
sSQL &= "UpdatedBy = @UpdatedBy, CheckSum = @CheckSum WHERE MonitorID = @QueryID"
|
||||||
|
|
||||||
hshParams = SetCoreParameters(oBackupItem)
|
hshParams = SetCoreParameters(oBackupItem)
|
||||||
hshParams.Add("QueryName", oBackupItem.Name)
|
hshParams.Add("QueryID", oBackupItem.MonitorID)
|
||||||
|
|
||||||
oDatabase.RunParamQuery(sSQL, hshParams)
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Shared Sub DoManifestUpdateByID(ByVal oBackupItem As clsBackup, ByVal iSelectDB As mgrSQLite.Database)
|
Public Shared Sub DoManifestUpdateByManifestID(ByVal oBackupItem As clsBackup, ByVal iSelectDB As mgrSQLite.Database)
|
||||||
Dim oDatabase As New mgrSQLite(iSelectDB)
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
Dim hshParams As Hashtable
|
Dim hshParams As Hashtable
|
||||||
|
|
||||||
sSQL = "UPDATE manifest SET Name = @Name, FileName = @FileName, RestorePath = @Path, AbsolutePath = @AbsolutePath, "
|
sSQL = "UPDATE manifest SET MonitorID = @MonitorID, FileName = @FileName, DateUpdated = @DateUpdated, "
|
||||||
sSQL &= "DateUpdated = @DateUpdated, UpdatedBy = @UpdatedBy, CheckSum = @CheckSum WHERE ManifestID = @QueryID"
|
sSQL &= "UpdatedBy = @UpdatedBy, CheckSum = @CheckSum WHERE ManifestID = @QueryID"
|
||||||
|
|
||||||
hshParams = SetCoreParameters(oBackupItem)
|
hshParams = SetCoreParameters(oBackupItem)
|
||||||
hshParams.Add("QueryID", oBackupItem.ID)
|
hshParams.Add("QueryID", oBackupItem.ManifestID)
|
||||||
|
|
||||||
oDatabase.RunParamQuery(sSQL, hshParams)
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Shared Sub DoManifestDeletebyName(ByVal oBackupItem As clsBackup, ByVal iSelectDB As mgrSQLite.Database)
|
Public Shared Sub DoManifestDeleteByMonitorID(ByVal oBackupItem As clsBackup, ByVal iSelectDB As mgrSQLite.Database)
|
||||||
Dim oDatabase As New mgrSQLite(iSelectDB)
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
Dim hshParams As New Hashtable
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
sSQL = "DELETE FROM manifest "
|
sSQL = "DELETE FROM manifest "
|
||||||
sSQL &= "WHERE Name = @Name"
|
sSQL &= "WHERE MonitorID = @MonitorID"
|
||||||
|
|
||||||
hshParams.Add("Name", oBackupItem.Name)
|
hshParams.Add("MonitorID", oBackupItem.MonitorID)
|
||||||
|
|
||||||
oDatabase.RunParamQuery(sSQL, hshParams)
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Shared Sub DoManifestDeletebyID(ByVal oBackupItem As clsBackup, ByVal iSelectDB As mgrSQLite.Database)
|
Public Shared Sub DoManifestDeleteByManifestID(ByVal oBackupItem As clsBackup, ByVal iSelectDB As mgrSQLite.Database)
|
||||||
Dim oDatabase As New mgrSQLite(iSelectDB)
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
Dim hshParams As New Hashtable
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
sSQL = "DELETE FROM manifest "
|
sSQL = "DELETE FROM manifest "
|
||||||
sSQL &= "WHERE ManifestID = @ID"
|
sSQL &= "WHERE ManifestID = @ManifestID"
|
||||||
|
|
||||||
hshParams.Add("ID", oBackupItem.ID)
|
hshParams.Add("ManifestID", oBackupItem.ManifestID)
|
||||||
|
|
||||||
oDatabase.RunParamQuery(sSQL, hshParams)
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
+468
-135
@@ -1,4 +1,6 @@
|
|||||||
Imports GBM.My.Resources
|
Imports GBM.My.Resources
|
||||||
|
Imports System.Text.RegularExpressions
|
||||||
|
Imports System.Collections.Specialized
|
||||||
Imports System.IO
|
Imports System.IO
|
||||||
|
|
||||||
Public Class mgrMonitorList
|
Public Class mgrMonitorList
|
||||||
@@ -30,6 +32,10 @@ Public Class mgrMonitorList
|
|||||||
oGame.Enabled = CBool(dr("Enabled"))
|
oGame.Enabled = CBool(dr("Enabled"))
|
||||||
oGame.MonitorOnly = CBool(dr("MonitorOnly"))
|
oGame.MonitorOnly = CBool(dr("MonitorOnly"))
|
||||||
oGame.BackupLimit = CInt(dr("BackupLimit"))
|
oGame.BackupLimit = CInt(dr("BackupLimit"))
|
||||||
|
oGame.CleanFolder = CBool(dr("CleanFolder"))
|
||||||
|
If Not IsDBNull(dr("Parameter")) Then oGame.Parameter = CStr(dr("Parameter"))
|
||||||
|
If Not IsDBNull(dr("Comments")) Then oGame.Comments = CStr(dr("Comments"))
|
||||||
|
oGame.IsRegEx = CBool(dr("IsRegEx"))
|
||||||
|
|
||||||
Return oGame
|
Return oGame
|
||||||
End Function
|
End Function
|
||||||
@@ -54,6 +60,10 @@ Public Class mgrMonitorList
|
|||||||
hshParams.Add("Enabled", oGame.Enabled)
|
hshParams.Add("Enabled", oGame.Enabled)
|
||||||
hshParams.Add("MonitorOnly", oGame.MonitorOnly)
|
hshParams.Add("MonitorOnly", oGame.MonitorOnly)
|
||||||
hshParams.Add("BackupLimit", oGame.BackupLimit)
|
hshParams.Add("BackupLimit", oGame.BackupLimit)
|
||||||
|
hshParams.Add("CleanFolder", oGame.CleanFolder)
|
||||||
|
hshParams.Add("Parameter", oGame.Parameter)
|
||||||
|
hshParams.Add("Comments", oGame.Comments)
|
||||||
|
hshParams.Add("IsRegEx", oGame.IsRegEx)
|
||||||
|
|
||||||
Return hshParams
|
Return hshParams
|
||||||
End Function
|
End Function
|
||||||
@@ -65,22 +75,50 @@ Public Class mgrMonitorList
|
|||||||
Dim hshList As New Hashtable
|
Dim hshList As New Hashtable
|
||||||
Dim hshDupeList As New Hashtable
|
Dim hshDupeList As New Hashtable
|
||||||
Dim oGame As clsGame
|
Dim oGame As clsGame
|
||||||
|
Dim oCompareGame As clsGame
|
||||||
|
Dim bIsDupe As Boolean
|
||||||
|
|
||||||
sSQL = "Select * from monitorlist ORDER BY Name Asc"
|
sSQL = "Select * FROM monitorlist ORDER BY Name Asc"
|
||||||
oData = oDatabase.ReadParamData(sSQL, New Hashtable)
|
oData = oDatabase.ReadParamData(sSQL, New Hashtable)
|
||||||
|
|
||||||
For Each dr As DataRow In oData.Tables(0).Rows
|
For Each dr As DataRow In oData.Tables(0).Rows
|
||||||
oGame = MapToObject(dr)
|
oGame = MapToObject(dr)
|
||||||
Select Case eListType
|
Select Case eListType
|
||||||
Case eListTypes.FullList
|
Case eListTypes.FullList
|
||||||
'Don't wrap this, if it fails there's a problem with the database
|
hshList.Add(oGame.ID, oGame)
|
||||||
hshList.Add(oGame.ProcessName & ":" & oGame.Name, oGame)
|
|
||||||
Case eListTypes.ScanList
|
Case eListTypes.ScanList
|
||||||
If hshList.Contains(oGame.ProcessName) Then
|
For Each de As DictionaryEntry In hshList
|
||||||
DirectCast(hshList.Item(oGame.ProcessName), clsGame).Duplicate = True
|
bIsDupe = False
|
||||||
oGame.ProcessName = oGame.ProcessName & ":" & oGame.Name
|
oCompareGame = DirectCast(de.Value, clsGame)
|
||||||
oGame.Duplicate = True
|
|
||||||
End If
|
If oCompareGame.IsRegEx Then
|
||||||
|
If oGame.IsRegEx Then
|
||||||
|
If oCompareGame.ProcessName = oGame.ProcessName Then
|
||||||
|
bIsDupe = True
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
If Regex.IsMatch(oGame.ProcessName, oCompareGame.ProcessName) Then
|
||||||
|
bIsDupe = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
If oGame.IsRegEx Then
|
||||||
|
If Regex.IsMatch(oCompareGame.ProcessName, oGame.ProcessName) Then
|
||||||
|
bIsDupe = True
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
If oGame.ProcessName = oCompareGame.ProcessName Then
|
||||||
|
bIsDupe = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
If bIsDupe Then
|
||||||
|
DirectCast(hshList.Item(oCompareGame.ProcessName), clsGame).Duplicate = True
|
||||||
|
oGame.ProcessName = oGame.CompoundKey
|
||||||
|
oGame.Duplicate = True
|
||||||
|
End If
|
||||||
|
Next
|
||||||
If oGame.Enabled Then hshList.Add(oGame.ProcessName, oGame)
|
If oGame.Enabled Then hshList.Add(oGame.ProcessName, oGame)
|
||||||
End Select
|
End Select
|
||||||
Next
|
Next
|
||||||
@@ -94,7 +132,8 @@ Public Class mgrMonitorList
|
|||||||
Dim hshParams As Hashtable
|
Dim hshParams As Hashtable
|
||||||
|
|
||||||
sSQL = "INSERT INTO monitorlist VALUES (@ID, @Name, @Process, @Path, @AbsolutePath, @FolderSave, @FileType, @TimeStamp, "
|
sSQL = "INSERT INTO monitorlist VALUES (@ID, @Name, @Process, @Path, @AbsolutePath, @FolderSave, @FileType, @TimeStamp, "
|
||||||
sSQL &= "@ExcludeList, @ProcessPath, @Icon, @Hours, @Version, @Company, @Enabled, @MonitorOnly, @BackupLimit)"
|
sSQL &= "@ExcludeList, @ProcessPath, @Icon, @Hours, @Version, @Company, @Enabled, @MonitorOnly, @BackupLimit, @CleanFolder, "
|
||||||
|
sSQL &= "@Parameter, @Comments, @IsRegEx)"
|
||||||
|
|
||||||
'Parameters
|
'Parameters
|
||||||
hshParams = SetCoreParameters(oGame)
|
hshParams = SetCoreParameters(oGame)
|
||||||
@@ -103,20 +142,31 @@ Public Class mgrMonitorList
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Shared Sub DoListUpdate(ByVal oGame As clsGame, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local)
|
Public Shared Sub DoListUpdate(ByVal oGame As clsGame, Optional ByVal sQueryID As String = "", Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local)
|
||||||
Dim oDatabase As New mgrSQLite(iSelectDB)
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
Dim hshParams As Hashtable
|
Dim hshParams As Hashtable
|
||||||
|
|
||||||
sSQL = "UPDATE monitorlist SET Name=@Name, Process=@Process, Path=@Path, AbsolutePath=@AbsolutePath, FolderSave=@FolderSave, "
|
sSQL = "UPDATE monitorlist SET MonitorID=@ID, Name=@Name, Process=@Process, Path=@Path, AbsolutePath=@AbsolutePath, FolderSave=@FolderSave, "
|
||||||
sSQL &= "FileType=@FileType, TimeStamp=@TimeStamp, ExcludeList=@ExcludeList, ProcessPath=@ProcessPath, Icon=@Icon, "
|
sSQL &= "FileType=@FileType, TimeStamp=@TimeStamp, ExcludeList=@ExcludeList, ProcessPath=@ProcessPath, Icon=@Icon, "
|
||||||
sSQL &= "Hours=@Hours, Version=@Version, Company=@Company, Enabled=@Enabled, MonitorOnly=@MonitorOnly, BackupLimit=@BackupLimit WHERE MonitorID=@ID"
|
sSQL &= "Hours=@Hours, Version=@Version, Company=@Company, Enabled=@Enabled, MonitorOnly=@MonitorOnly, BackupLimit=@BackupLimit, "
|
||||||
|
sSQL &= "CleanFolder=@CleanFolder, Parameter=@Parameter, Comments=@Comments, IsRegEx=@IsRegEx WHERE MonitorID=@QueryID;"
|
||||||
|
sSQL &= "UPDATE gametags SET MonitorID=@ID WHERE MonitorID=@QueryID;"
|
||||||
|
|
||||||
|
If iSelectDB = mgrSQLite.Database.Local Then
|
||||||
|
sSQL &= "UPDATE gameprocesses SET MonitorID=@ID WHERE MonitorID=@QueryID;"
|
||||||
|
sSQL &= "UPDATE sessions SET MonitorID=@ID WHERE MonitorID=@QueryID;"
|
||||||
|
End If
|
||||||
|
|
||||||
'Parameters
|
'Parameters
|
||||||
hshParams = SetCoreParameters(oGame)
|
hshParams = SetCoreParameters(oGame)
|
||||||
|
If sQueryID <> String.Empty Then
|
||||||
|
hshParams.Add("QueryID", sQueryID)
|
||||||
|
Else
|
||||||
|
hshParams.Add("QueryID", oGame.ID)
|
||||||
|
End If
|
||||||
|
|
||||||
oDatabase.RunParamQuery(sSQL, hshParams)
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Shared Sub DoListUpdateMulti(ByVal sMonitorIDs As List(Of String), ByVal oGame As clsGame, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local)
|
Public Shared Sub DoListUpdateMulti(ByVal sMonitorIDs As List(Of String), ByVal oGame As clsGame, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local)
|
||||||
@@ -149,8 +199,16 @@ Public Class mgrMonitorList
|
|||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
Dim hshParams As New Hashtable
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
sSQL = "DELETE FROM gametags "
|
sSQL = "DELETE FROM manifest "
|
||||||
sSQL &= "WHERE MonitorID = @MonitorID;"
|
sSQL &= "WHERE MonitorID = @MonitorID;"
|
||||||
|
sSQL &= "DELETE FROM gametags "
|
||||||
|
sSQL &= "WHERE MonitorID = @MonitorID;"
|
||||||
|
If iSelectDB = mgrSQLite.Database.Local Then
|
||||||
|
sSQL &= "DELETE FROM gameprocesses "
|
||||||
|
sSQL &= "WHERE MonitorID = @MonitorID;"
|
||||||
|
sSQL &= "DELETE FROM sessions "
|
||||||
|
sSQL &= "WHERE MonitorID = @MonitorID;"
|
||||||
|
End If
|
||||||
sSQL &= "DELETE FROM monitorlist "
|
sSQL &= "DELETE FROM monitorlist "
|
||||||
sSQL &= "WHERE MonitorID = @MonitorID;"
|
sSQL &= "WHERE MonitorID = @MonitorID;"
|
||||||
|
|
||||||
@@ -166,7 +224,7 @@ Public Class mgrMonitorList
|
|||||||
Dim hshParams As New Hashtable
|
Dim hshParams As New Hashtable
|
||||||
Dim iCounter As Integer
|
Dim iCounter As Integer
|
||||||
|
|
||||||
sSQL = "DELETE FROM gametags "
|
sSQL = "DELETE FROM manifest "
|
||||||
sSQL &= "WHERE MonitorID IN ("
|
sSQL &= "WHERE MonitorID IN ("
|
||||||
|
|
||||||
For Each s As String In sMonitorIDs
|
For Each s As String In sMonitorIDs
|
||||||
@@ -178,6 +236,44 @@ Public Class mgrMonitorList
|
|||||||
sSQL = sSQL.TrimEnd(",")
|
sSQL = sSQL.TrimEnd(",")
|
||||||
sSQL &= ");"
|
sSQL &= ");"
|
||||||
|
|
||||||
|
sSQL &= "DELETE FROM gametags "
|
||||||
|
sSQL &= "WHERE MonitorID IN ("
|
||||||
|
|
||||||
|
For Each s As String In sMonitorIDs
|
||||||
|
sSQL &= "@MonitorID" & iCounter & ","
|
||||||
|
hshParams.Add("MonitorID" & iCounter, s)
|
||||||
|
iCounter += 1
|
||||||
|
Next
|
||||||
|
|
||||||
|
sSQL = sSQL.TrimEnd(",")
|
||||||
|
sSQL &= ");"
|
||||||
|
|
||||||
|
If iSelectDB = mgrSQLite.Database.Local Then
|
||||||
|
sSQL &= "DELETE FROM gameprocesses "
|
||||||
|
sSQL &= "WHERE MonitorID IN ("
|
||||||
|
|
||||||
|
For Each s As String In sMonitorIDs
|
||||||
|
sSQL &= "@MonitorID" & iCounter & ","
|
||||||
|
hshParams.Add("MonitorID" & iCounter, s)
|
||||||
|
iCounter += 1
|
||||||
|
Next
|
||||||
|
|
||||||
|
sSQL = sSQL.TrimEnd(",")
|
||||||
|
sSQL &= ");"
|
||||||
|
|
||||||
|
sSQL &= "DELETE FROM sessions "
|
||||||
|
sSQL &= "WHERE MonitorID IN ("
|
||||||
|
|
||||||
|
For Each s As String In sMonitorIDs
|
||||||
|
sSQL &= "@MonitorID" & iCounter & ","
|
||||||
|
hshParams.Add("MonitorID" & iCounter, s)
|
||||||
|
iCounter += 1
|
||||||
|
Next
|
||||||
|
|
||||||
|
sSQL = sSQL.TrimEnd(",")
|
||||||
|
sSQL &= ");"
|
||||||
|
End If
|
||||||
|
|
||||||
sSQL &= "DELETE FROM monitorlist "
|
sSQL &= "DELETE FROM monitorlist "
|
||||||
sSQL &= "WHERE MonitorID IN ("
|
sSQL &= "WHERE MonitorID IN ("
|
||||||
|
|
||||||
@@ -214,7 +310,7 @@ Public Class mgrMonitorList
|
|||||||
Return oGame
|
Return oGame
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function DoListGetbyName(ByVal sName As String, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local) As Hashtable
|
Public Shared Function DoListGetbyMonitorID(ByVal sMonitorID As String, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local) As Hashtable
|
||||||
Dim oDatabase As New mgrSQLite(iSelectDB)
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
Dim oData As DataSet
|
Dim oData As DataSet
|
||||||
@@ -223,10 +319,10 @@ Public Class mgrMonitorList
|
|||||||
Dim hshParams As New Hashtable
|
Dim hshParams As New Hashtable
|
||||||
Dim iCounter As Integer = 0
|
Dim iCounter As Integer = 0
|
||||||
|
|
||||||
sSQL = "SELECT * from monitorlist "
|
sSQL = "SELECT * FROM monitorlist "
|
||||||
sSQL &= "WHERE Name = @Name"
|
sSQL &= "WHERE MonitorID = @MonitorID"
|
||||||
|
|
||||||
hshParams.Add("Name", sName)
|
hshParams.Add("MonitorID", sMonitorID)
|
||||||
|
|
||||||
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
|
|
||||||
@@ -239,20 +335,19 @@ Public Class mgrMonitorList
|
|||||||
Return hshGames
|
Return hshGames
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function DoDuplicateListCheck(ByVal sName As String, ByVal sProcess As String, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local, Optional ByVal sExcludeID As String = "") As Boolean
|
Public Shared Function DoDuplicateListCheck(ByVal sMonitorID 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 oDatabase As New mgrSQLite(iSelectDB)
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
Dim oData As DataSet
|
Dim oData As DataSet
|
||||||
Dim hshParams As New Hashtable
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
sSQL = "SELECT * FROM monitorlist WHERE Name = @Name AND Process= @Process"
|
sSQL = "SELECT * FROM monitorlist WHERE MonitorID = @MonitorID"
|
||||||
|
|
||||||
hshParams.Add("Name", sName)
|
hshParams.Add("MonitorID", sMonitorID)
|
||||||
hshParams.Add("Process", sProcess)
|
|
||||||
|
|
||||||
If sExcludeID <> String.Empty Then
|
If sExcludeID <> String.Empty Then
|
||||||
sSQL &= " AND MonitorID <> @MonitorID"
|
sSQL &= " AND MonitorID <> @QueryID"
|
||||||
hshParams.Add("MonitorID", sExcludeID)
|
hshParams.Add("QueryID", sExcludeID)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
@@ -278,8 +373,6 @@ Public Class mgrMonitorList
|
|||||||
Dim sVersion As String
|
Dim sVersion As String
|
||||||
Dim sCompany As String
|
Dim sCompany As String
|
||||||
Dim sMonitorGame As String
|
Dim sMonitorGame As String
|
||||||
Dim sTimeStamp As String
|
|
||||||
Dim sBackupLimit As String
|
|
||||||
|
|
||||||
'Setup SQL for optional fields
|
'Setup SQL for optional fields
|
||||||
If (eSyncFields And clsGame.eOptionalSyncFields.Company) = clsGame.eOptionalSyncFields.Company Then
|
If (eSyncFields And clsGame.eOptionalSyncFields.Company) = clsGame.eOptionalSyncFields.Company Then
|
||||||
@@ -302,24 +395,17 @@ Public Class mgrMonitorList
|
|||||||
Else
|
Else
|
||||||
sMonitorGame = "COALESCE((SELECT Enabled FROM monitorlist WHERE MonitorID=@ID),1)"
|
sMonitorGame = "COALESCE((SELECT Enabled FROM monitorlist WHERE MonitorID=@ID),1)"
|
||||||
End If
|
End If
|
||||||
If (eSyncFields And clsGame.eOptionalSyncFields.TimeStamp) = clsGame.eOptionalSyncFields.TimeStamp Then
|
|
||||||
sTimeStamp = "@TimeStamp"
|
|
||||||
sBackupLimit = "@BackupLimit"
|
|
||||||
Else
|
|
||||||
sTimeStamp = "COALESCE((SELECT TimeStamp FROM monitorlist WHERE MonitorID=@ID),0)"
|
|
||||||
sBackupLimit = "COALESCE((SELECT BackupLimit FROM monitorlist WHERE MonitorID=@ID),2)"
|
|
||||||
End If
|
|
||||||
If (eSyncFields And clsGame.eOptionalSyncFields.Version) = clsGame.eOptionalSyncFields.Version Then
|
If (eSyncFields And clsGame.eOptionalSyncFields.Version) = clsGame.eOptionalSyncFields.Version Then
|
||||||
sVersion = "@Version"
|
sVersion = "@Version"
|
||||||
Else
|
Else
|
||||||
sVersion = "(SELECT Version FROM monitorlist WHERE MonitorID=@ID)"
|
sVersion = "(SELECT Version FROM monitorlist WHERE MonitorID=@ID)"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
sSQL = "INSERT OR REPLACE INTO monitorlist (MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit) "
|
sSQL = "INSERT OR REPLACE INTO monitorlist (MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit, CleanFolder, Parameter, Comments, IsRegEx) "
|
||||||
sSQL &= "VALUES (@ID, @Name, @Process, @Path, @AbsolutePath, @FolderSave, @FileType, "
|
sSQL &= "VALUES (@ID, @Name, @Process, @Path, @AbsolutePath, @FolderSave, @FileType, "
|
||||||
sSQL &= sTimeStamp & ", @ExcludeList, " & sGamePath & ", "
|
sSQL &= "@TimeStamp, @ExcludeList, " & sGamePath & ", "
|
||||||
sSQL &= sIcon & ", @Hours, " & sVersion & ", "
|
sSQL &= sIcon & ", @Hours, " & sVersion & ", "
|
||||||
sSQL &= sCompany & ", " & sMonitorGame & ", @MonitorOnly, " & sBackupLimit & ");"
|
sSQL &= sCompany & ", " & sMonitorGame & ", @MonitorOnly, @BackupLimit, @CleanFolder, @Parameter, @Comments, @IsRegEx);"
|
||||||
|
|
||||||
For Each oGame As clsGame In hshGames.Values
|
For Each oGame As clsGame In hshGames.Values
|
||||||
hshParams = New Hashtable
|
hshParams = New Hashtable
|
||||||
@@ -331,10 +417,16 @@ Public Class mgrMonitorList
|
|||||||
hshParams.Add("Path", oGame.TruePath)
|
hshParams.Add("Path", oGame.TruePath)
|
||||||
hshParams.Add("AbsolutePath", oGame.AbsolutePath)
|
hshParams.Add("AbsolutePath", oGame.AbsolutePath)
|
||||||
hshParams.Add("FolderSave", oGame.FolderSave)
|
hshParams.Add("FolderSave", oGame.FolderSave)
|
||||||
|
hshParams.Add("TimeStamp", oGame.AppendTimeStamp)
|
||||||
|
hshParams.Add("BackupLimit", oGame.BackupLimit)
|
||||||
hshParams.Add("FileType", oGame.FileType)
|
hshParams.Add("FileType", oGame.FileType)
|
||||||
hshParams.Add("ExcludeList", oGame.ExcludeList)
|
hshParams.Add("ExcludeList", oGame.ExcludeList)
|
||||||
hshParams.Add("Hours", oGame.Hours)
|
hshParams.Add("Hours", oGame.Hours)
|
||||||
hshParams.Add("MonitorOnly", oGame.MonitorOnly)
|
hshParams.Add("MonitorOnly", oGame.MonitorOnly)
|
||||||
|
hshParams.Add("CleanFolder", oGame.CleanFolder)
|
||||||
|
hshParams.Add("Parameter", oGame.Parameter)
|
||||||
|
hshParams.Add("Comments", oGame.Comments)
|
||||||
|
hshParams.Add("IsRegEx", oGame.IsRegEx)
|
||||||
|
|
||||||
'Optional Parameters
|
'Optional Parameters
|
||||||
If (eSyncFields And clsGame.eOptionalSyncFields.Company) = clsGame.eOptionalSyncFields.Company Then
|
If (eSyncFields And clsGame.eOptionalSyncFields.Company) = clsGame.eOptionalSyncFields.Company Then
|
||||||
@@ -349,10 +441,6 @@ Public Class mgrMonitorList
|
|||||||
If (eSyncFields And clsGame.eOptionalSyncFields.MonitorGame) = clsGame.eOptionalSyncFields.MonitorGame Then
|
If (eSyncFields And clsGame.eOptionalSyncFields.MonitorGame) = clsGame.eOptionalSyncFields.MonitorGame Then
|
||||||
hshParams.Add("Enabled", oGame.Enabled)
|
hshParams.Add("Enabled", oGame.Enabled)
|
||||||
End If
|
End If
|
||||||
If (eSyncFields And clsGame.eOptionalSyncFields.TimeStamp) = clsGame.eOptionalSyncFields.TimeStamp Then
|
|
||||||
hshParams.Add("TimeStamp", oGame.AppendTimeStamp)
|
|
||||||
hshParams.Add("BackupLimit", oGame.BackupLimit)
|
|
||||||
End If
|
|
||||||
If (eSyncFields And clsGame.eOptionalSyncFields.Version) = clsGame.eOptionalSyncFields.Version Then
|
If (eSyncFields And clsGame.eOptionalSyncFields.Version) = clsGame.eOptionalSyncFields.Version Then
|
||||||
hshParams.Add("Version", oGame.Version)
|
hshParams.Add("Version", oGame.Version)
|
||||||
End If
|
End If
|
||||||
@@ -370,23 +458,29 @@ Public Class mgrMonitorList
|
|||||||
Dim hshParams As Hashtable
|
Dim hshParams As Hashtable
|
||||||
Dim oParamList As New List(Of Hashtable)
|
Dim oParamList As New List(Of Hashtable)
|
||||||
|
|
||||||
sSQL = "DELETE FROM gametags "
|
sSQL = "DELETE FROM manifest "
|
||||||
sSQL &= "WHERE MonitorID = @MonitorID;"
|
sSQL &= "WHERE MonitorID = @MonitorID;"
|
||||||
|
sSQL &= "DELETE FROM gametags "
|
||||||
|
sSQL &= "WHERE MonitorID = @MonitorID;"
|
||||||
|
If iSelectDB = mgrSQLite.Database.Local Then
|
||||||
|
sSQL &= "DELETE FROM gameprocesses "
|
||||||
|
sSQL &= "WHERE MonitorID = @MonitorID;"
|
||||||
|
sSQL &= "DELETE FROM sessions "
|
||||||
|
sSQL &= "WHERE MonitorID = @MonitorID;"
|
||||||
|
End If
|
||||||
sSQL &= "DELETE FROM monitorlist "
|
sSQL &= "DELETE FROM monitorlist "
|
||||||
sSQL &= "WHERE Name = @Name AND Process= @Process;"
|
sSQL &= "WHERE MonitorID = @MonitorID;"
|
||||||
|
|
||||||
For Each oGame As clsGame In hshGames.Values
|
For Each oGame As clsGame In hshGames.Values
|
||||||
hshParams = New Hashtable
|
hshParams = New Hashtable
|
||||||
hshParams.Add("MonitorID", oGame.ID)
|
hshParams.Add("MonitorID", oGame.ID)
|
||||||
hshParams.Add("Name", oGame.Name)
|
|
||||||
hshParams.Add("Process", oGame.TrueProcess)
|
|
||||||
oParamList.Add(hshParams)
|
oParamList.Add(hshParams)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
oDatabase.RunMassParamQuery(sSQL, oParamList)
|
oDatabase.RunMassParamQuery(sSQL, oParamList)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Shared Sub SyncMonitorLists(ByVal eSyncFields As clsGame.eOptionalSyncFields, Optional ByVal bToRemote As Boolean = True)
|
Public Shared Sub SyncMonitorLists(ByVal oSettings As mgrSettings, Optional ByVal bToRemote As Boolean = True, Optional ByVal bSyncProtection As Boolean = True)
|
||||||
Dim hshCompareFrom As Hashtable
|
Dim hshCompareFrom As Hashtable
|
||||||
Dim hshCompareTo As Hashtable
|
Dim hshCompareTo As Hashtable
|
||||||
Dim hshSyncItems As Hashtable
|
Dim hshSyncItems As Hashtable
|
||||||
@@ -397,10 +491,12 @@ Public Class mgrMonitorList
|
|||||||
|
|
||||||
Cursor.Current = Cursors.WaitCursor
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
If bToRemote Then
|
If Not oSettings.DisableSyncMessages Then
|
||||||
RaiseEvent UpdateLog(mgrMonitorList_SyncToMaster, False, ToolTipIcon.Info, True)
|
If bToRemote Then
|
||||||
Else
|
RaiseEvent UpdateLog(mgrMonitorList_SyncToMaster, False, ToolTipIcon.Info, True)
|
||||||
RaiseEvent UpdateLog(mgrMonitorList_SyncFromMaster, False, ToolTipIcon.Info, True)
|
Else
|
||||||
|
RaiseEvent UpdateLog(mgrMonitorList_SyncFromMaster, False, ToolTipIcon.Info, True)
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'Add / Update Sync
|
'Add / Update Sync
|
||||||
@@ -412,21 +508,34 @@ Public Class mgrMonitorList
|
|||||||
hshCompareTo = ReadList(eListTypes.FullList, mgrSQLite.Database.Local)
|
hshCompareTo = ReadList(eListTypes.FullList, mgrSQLite.Database.Local)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
'Sync Wipe Protection
|
||||||
|
If bSyncProtection Then
|
||||||
|
If hshCompareFrom.Count = 0 And hshCompareTo.Count > 0 Then
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
If mgrCommon.ShowMessage(mgrMonitorList_WarningSyncProtection, MsgBoxStyle.YesNo) = MsgBoxResult.No Then
|
||||||
|
'We will always show this one in the log regardless of setting
|
||||||
|
RaiseEvent UpdateLog(mgrMonitorList_ErrorSyncCancel, False, ToolTipIcon.Warning, True)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
hshSyncItems = hshCompareFrom.Clone
|
hshSyncItems = hshCompareFrom.Clone
|
||||||
|
|
||||||
For Each oFromItem In hshCompareFrom.Values
|
For Each oFromItem In hshCompareFrom.Values
|
||||||
If hshCompareTo.Contains(oFromItem.CompoundKey) Then
|
If hshCompareTo.Contains(oFromItem.ID) Then
|
||||||
oToItem = DirectCast(hshCompareTo(oFromItem.CompoundKey), clsGame)
|
oToItem = DirectCast(hshCompareTo(oFromItem.ID), clsGame)
|
||||||
If oFromItem.SyncEquals(oToItem, eSyncFields) Then
|
If oFromItem.SyncEquals(oToItem, oSettings.SyncFields) Then
|
||||||
hshSyncItems.Remove(oFromItem.CompoundKey)
|
hshSyncItems.Remove(oFromItem.ID)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
If bToRemote Then
|
If bToRemote Then
|
||||||
DoListAddUpdateSync(hshSyncItems, mgrSQLite.Database.Remote, eSyncFields)
|
DoListAddUpdateSync(hshSyncItems, mgrSQLite.Database.Remote, oSettings.SyncFields)
|
||||||
Else
|
Else
|
||||||
DoListAddUpdateSync(hshSyncItems, mgrSQLite.Database.Local, eSyncFields)
|
DoListAddUpdateSync(hshSyncItems, mgrSQLite.Database.Local, oSettings.SyncFields)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'Sync Tags
|
'Sync Tags
|
||||||
@@ -445,10 +554,10 @@ Public Class mgrMonitorList
|
|||||||
hshDeleteItems = hshCompareTo.Clone
|
hshDeleteItems = hshCompareTo.Clone
|
||||||
|
|
||||||
For Each oToItem In hshCompareTo.Values
|
For Each oToItem In hshCompareTo.Values
|
||||||
If hshCompareFrom.Contains(oToItem.CompoundKey) Then
|
If hshCompareFrom.Contains(oToItem.ID) Then
|
||||||
oFromItem = DirectCast(hshCompareFrom(oToItem.CompoundKey), clsGame)
|
oFromItem = DirectCast(hshCompareFrom(oToItem.ID), clsGame)
|
||||||
If oToItem.MinimalEquals(oFromItem) Then
|
If oToItem.MinimalEquals(oFromItem) Then
|
||||||
hshDeleteItems.Remove(oToItem.CompoundKey)
|
hshDeleteItems.Remove(oToItem.ID)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
@@ -459,132 +568,266 @@ Public Class mgrMonitorList
|
|||||||
DoListDeleteSync(hshDeleteItems, mgrSQLite.Database.Local)
|
DoListDeleteSync(hshDeleteItems, mgrSQLite.Database.Local)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrMonitorList_SyncChanges, (hshDeleteItems.Count + hshSyncItems.Count + iChanges).ToString), False, ToolTipIcon.Info, True)
|
If Not oSettings.DisableSyncMessages Then
|
||||||
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrMonitorList_SyncChanges, (hshDeleteItems.Count + hshSyncItems.Count + iChanges).ToString), False, ToolTipIcon.Info, True)
|
||||||
|
End If
|
||||||
|
|
||||||
Cursor.Current = Cursors.Default
|
Cursor.Current = Cursors.Default
|
||||||
Application.DoEvents()
|
Application.DoEvents()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
'Filter Functions
|
'Filter Functions
|
||||||
Private Shared Function BuildFilterQuery(ByVal oTagFilters As List(Of clsTag), ByVal hshStringFilters As Hashtable, eFilterType As frmFilter.eFilterType, ByRef hshParams As Hashtable) As String
|
Private Shared Function BuildFilterQuery(ByVal oIncludeTagFilters As List(Of clsTag), ByVal oExcludeTagFilters As List(Of clsTag), ByVal oFilters As List(Of clsGameFilter),
|
||||||
|
ByVal eFilterType As frmFilter.eFilterType, ByVal bAndOperator As Boolean, ByVal bSortAsc As Boolean, ByVal sSortField As String,
|
||||||
|
ByRef hshParams As Hashtable) As String
|
||||||
Dim sSQL As String = String.Empty
|
Dim sSQL As String = String.Empty
|
||||||
Dim iCounter As Integer = 0
|
Dim iCounter As Integer = 0
|
||||||
|
Dim sBaseSelect As String = "MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit, CleanFolder, Parameter, Comments, IsRegEx FROM monitorlist"
|
||||||
|
Dim sSort As String = " ORDER BY " & sSortField
|
||||||
|
|
||||||
|
If bSortAsc Then
|
||||||
|
sSort &= " ASC"
|
||||||
|
Else
|
||||||
|
sSort &= " DESC"
|
||||||
|
End If
|
||||||
|
|
||||||
Select Case eFilterType
|
Select Case eFilterType
|
||||||
Case frmFilter.eFilterType.NoFilter
|
Case frmFilter.eFilterType.BaseFilter
|
||||||
sSQL = "SELECT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit FROM monitorlist ORDER BY Name Asc"
|
sSQL = "SELECT " & sBaseSelect
|
||||||
Case frmFilter.eFilterType.FieldAnd, frmFilter.eFilterType.FieldOr
|
|
||||||
sSQL = "SELECT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit FROM monitorlist"
|
|
||||||
|
|
||||||
If hshStringFilters.Count > 0 Then
|
|
||||||
sSQL &= " WHERE ("
|
|
||||||
For Each de As DictionaryEntry In hshStringFilters
|
|
||||||
sSQL &= de.Key & " LIKE @" & de.Key
|
|
||||||
hshParams.Add(de.Key, "%" & de.Value.ToString & "%")
|
|
||||||
iCounter += 1
|
|
||||||
If iCounter <> hshStringFilters.Count Then
|
|
||||||
Select Case eFilterType
|
|
||||||
Case frmFilter.eFilterType.FieldAnd
|
|
||||||
sSQL &= " AND "
|
|
||||||
Case frmFilter.eFilterType.FieldOr
|
|
||||||
sSQL &= " OR "
|
|
||||||
End Select
|
|
||||||
End If
|
|
||||||
|
|
||||||
Next
|
|
||||||
sSQL &= ")"
|
|
||||||
End If
|
|
||||||
sSQL &= " ORDER BY Name Asc"
|
|
||||||
Case frmFilter.eFilterType.AnyTag
|
Case frmFilter.eFilterType.AnyTag
|
||||||
sSQL = "SELECT DISTINCT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit FROM monitorlist "
|
|
||||||
sSQL &= "NATURAL JOIN gametags WHERE gametags.TagID IN ("
|
|
||||||
|
|
||||||
For Each oTag As clsTag In oTagFilters
|
If oExcludeTagFilters.Count > 0 And oIncludeTagFilters.Count = 0 Then
|
||||||
sSQL &= "@TagID" & iCounter & ","
|
sSQL = "SELECT " & sBaseSelect
|
||||||
hshParams.Add("TagID" & iCounter, oTag.ID)
|
|
||||||
iCounter += 1
|
|
||||||
Next
|
|
||||||
|
|
||||||
sSQL = sSQL.TrimEnd(",")
|
sSQL &= " WHERE MonitorID NOT IN (SELECT MonitorID FROM monitorlist NATURAL JOIN gametags WHERE gametags.TagID IN ("
|
||||||
sSQL &= ") ORDER BY Name Asc"
|
|
||||||
Case frmFilter.eFilterType.AllTags
|
|
||||||
sSQL = "SELECT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit FROM monitorlist WHERE MonitorID IN "
|
|
||||||
|
|
||||||
For Each oTag As clsTag In oTagFilters
|
For Each oTag As clsTag In oExcludeTagFilters
|
||||||
sSQL &= "(SELECT MonitorID FROM gametags WHERE monitorlist.MonitorID = gametags.MonitorID And TagID = @TagID" & iCounter & ")"
|
sSQL &= "@TagID" & iCounter & ","
|
||||||
If iCounter <> oTagFilters.Count - 1 Then
|
hshParams.Add("TagID" & iCounter, oTag.ID)
|
||||||
sSQL &= " AND MonitorID IN "
|
iCounter += 1
|
||||||
|
Next
|
||||||
|
|
||||||
|
sSQL = sSQL.TrimEnd(",")
|
||||||
|
sSQL &= "))"
|
||||||
|
Else
|
||||||
|
sSQL = "SELECT DISTINCT " & sBaseSelect
|
||||||
|
|
||||||
|
sSQL &= " NATURAL JOIN gametags WHERE gametags.TagID IN ("
|
||||||
|
|
||||||
|
For Each oTag As clsTag In oIncludeTagFilters
|
||||||
|
sSQL &= "@TagID" & iCounter & ","
|
||||||
|
hshParams.Add("TagID" & iCounter, oTag.ID)
|
||||||
|
iCounter += 1
|
||||||
|
Next
|
||||||
|
|
||||||
|
sSQL = sSQL.TrimEnd(",")
|
||||||
|
sSQL &= ")"
|
||||||
|
|
||||||
|
If oExcludeTagFilters.Count > 0 Then
|
||||||
|
sSQL &= " AND MonitorID NOT IN (SELECT MonitorID FROM monitorlist NATURAL JOIN gametags WHERE gametags.TagID IN ("
|
||||||
|
|
||||||
|
For Each oTag As clsTag In oExcludeTagFilters
|
||||||
|
sSQL &= "@TagID" & iCounter & ","
|
||||||
|
hshParams.Add("TagID" & iCounter, oTag.ID)
|
||||||
|
iCounter += 1
|
||||||
|
Next
|
||||||
|
|
||||||
|
sSQL = sSQL.TrimEnd(",")
|
||||||
|
sSQL &= "))"
|
||||||
End If
|
End If
|
||||||
hshParams.Add("TagID" & iCounter, oTag.ID)
|
End If
|
||||||
iCounter += 1
|
|
||||||
Next
|
Case frmFilter.eFilterType.AllTags
|
||||||
|
|
||||||
|
If oExcludeTagFilters.Count > 0 And oIncludeTagFilters.Count = 0 Then
|
||||||
|
sSQL = "SELECT " & sBaseSelect & " WHERE MonitorID NOT IN "
|
||||||
|
|
||||||
|
For Each oTag As clsTag In oExcludeTagFilters
|
||||||
|
sSQL &= "(SELECT MonitorID FROM gametags WHERE monitorlist.MonitorID = gametags.MonitorID And TagID = @TagID" & iCounter & ")"
|
||||||
|
If iCounter <> oExcludeTagFilters.Count - 1 Then
|
||||||
|
sSQL &= " AND MonitorID IN "
|
||||||
|
End If
|
||||||
|
hshParams.Add("TagID" & iCounter, oTag.ID)
|
||||||
|
iCounter += 1
|
||||||
|
Next
|
||||||
|
Else
|
||||||
|
sSQL = "SELECT " & sBaseSelect & " WHERE MonitorID IN "
|
||||||
|
|
||||||
|
For Each oTag As clsTag In oIncludeTagFilters
|
||||||
|
sSQL &= "(SELECT MonitorID FROM gametags WHERE monitorlist.MonitorID = gametags.MonitorID And TagID = @TagID" & iCounter & ")"
|
||||||
|
If iCounter <> oIncludeTagFilters.Count - 1 Then
|
||||||
|
sSQL &= " AND MonitorID IN "
|
||||||
|
End If
|
||||||
|
hshParams.Add("TagID" & iCounter, oTag.ID)
|
||||||
|
iCounter += 1
|
||||||
|
Next
|
||||||
|
|
||||||
|
If oExcludeTagFilters.Count > 0 Then
|
||||||
|
sSQL &= " AND MonitorID NOT IN (SELECT MonitorID FROM monitorlist NATURAL JOIN gametags WHERE gametags.TagID IN ("
|
||||||
|
|
||||||
|
For Each oTag As clsTag In oExcludeTagFilters
|
||||||
|
sSQL &= "@TagID" & iCounter & ","
|
||||||
|
hshParams.Add("TagID" & iCounter, oTag.ID)
|
||||||
|
iCounter += 1
|
||||||
|
Next
|
||||||
|
|
||||||
|
sSQL = sSQL.TrimEnd(",")
|
||||||
|
sSQL &= "))"
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
sSQL &= " ORDER BY Name Asc"
|
|
||||||
Case frmFilter.eFilterType.NoTags
|
Case frmFilter.eFilterType.NoTags
|
||||||
sSQL = "SELECT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit FROM monitorlist WHERE MonitorID NOT IN (SELECT MonitorID FROM gametags) ORDER BY Name Asc"
|
sSQL = "SELECT " & sBaseSelect & " WHERE MonitorID NOT IN (SELECT MonitorID FROM gametags)"
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
|
'Handle Other Filters
|
||||||
|
If oFilters.Count > 0 Then
|
||||||
|
If eFilterType = frmFilter.eFilterType.BaseFilter Then
|
||||||
|
sSQL &= " WHERE ("
|
||||||
|
Else
|
||||||
|
sSQL &= " AND ("
|
||||||
|
End If
|
||||||
|
|
||||||
|
iCounter = 0
|
||||||
|
For Each oFilter As clsGameFilter In oFilters
|
||||||
|
If oFilter.NotCondition Then
|
||||||
|
sSQL &= " NOT "
|
||||||
|
End If
|
||||||
|
|
||||||
|
Select Case oFilter.Field.Type
|
||||||
|
Case clsGameFilterField.eDataType.fString
|
||||||
|
sSQL &= oFilter.Field.FieldName & " LIKE @" & oFilter.ID
|
||||||
|
hshParams.Add(oFilter.ID, "%" & oFilter.Data & "%")
|
||||||
|
Case clsGameFilterField.eDataType.fNumeric
|
||||||
|
sSQL &= oFilter.Field.FieldName & " " & oFilter.NumericOperatorAsString & " @" & oFilter.ID
|
||||||
|
hshParams.Add(oFilter.ID, oFilter.Data)
|
||||||
|
Case clsGameFilterField.eDataType.fBool
|
||||||
|
sSQL &= oFilter.Field.FieldName & " = @" & oFilter.ID
|
||||||
|
hshParams.Add(oFilter.ID, oFilter.Data)
|
||||||
|
End Select
|
||||||
|
|
||||||
|
iCounter += 1
|
||||||
|
If iCounter <> oFilters.Count Then
|
||||||
|
If bAndOperator Then
|
||||||
|
sSQL &= " AND "
|
||||||
|
Else
|
||||||
|
sSQL &= " OR "
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
sSQL &= ")"
|
||||||
|
End If
|
||||||
|
|
||||||
|
'Handle Sorting
|
||||||
|
sSQL &= sSort
|
||||||
|
|
||||||
Return sSQL
|
Return sSQL
|
||||||
|
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function ReadFilteredList(ByVal oTagFilters As List(Of clsTag), ByVal hshStringFilters As Hashtable, eFilterType As frmFilter.eFilterType, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local) As Hashtable
|
Public Shared Function ReadFilteredList(ByVal oIncludeTagFilters As List(Of clsTag), ByVal oExcludeTagFilters As List(Of clsTag), ByVal oFilters As List(Of clsGameFilter), ByVal eFilterType As frmFilter.eFilterType, ByVal bAndOperator As Boolean,
|
||||||
|
ByVal bSortAsc As Boolean, ByVal sSortField As String, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local) As OrderedDictionary
|
||||||
Dim oDatabase As New mgrSQLite(iSelectDB)
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
Dim oData As DataSet
|
Dim oData As DataSet
|
||||||
Dim sSQL As String = String.Empty
|
Dim sSQL As String = String.Empty
|
||||||
Dim hshList As New Hashtable
|
Dim oList As New OrderedDictionary
|
||||||
Dim oGame As clsGame
|
Dim oGame As clsGame
|
||||||
Dim hshParams As New Hashtable
|
Dim hshParams As New Hashtable
|
||||||
Dim iCounter As Integer = 0
|
Dim iCounter As Integer = 0
|
||||||
|
|
||||||
sSQL = BuildFilterQuery(oTagFilters, hshStringFilters, eFilterType, hshParams)
|
sSQL = BuildFilterQuery(oIncludeTagFilters, oExcludeTagFilters, oFilters, eFilterType, bAndOperator, bSortAsc, sSortField, hshParams)
|
||||||
|
|
||||||
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
|
|
||||||
For Each dr As DataRow In oData.Tables(0).Rows
|
For Each dr As DataRow In oData.Tables(0).Rows
|
||||||
oGame = MapToObject(dr)
|
oGame = MapToObject(dr)
|
||||||
|
|
||||||
hshList.Add(oGame.ID, oGame)
|
oList.Add(oGame.ID, oGame)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
Return hshList
|
Return oList
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
'Import / Export Functions
|
'Import / Export Functions
|
||||||
Public Shared Function ReadListForExport(ByVal oTagFilters As List(Of clsTag), ByVal hshStringFilters As Hashtable, ByVal eFilterType As frmFilter.eFilterType, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local) As List(Of Game)
|
Public Shared Function ReadListForExport(ByVal oIncludeTagFilters As List(Of clsTag), ByVal oExcludeTagFilters As List(Of clsTag), ByVal oFilters As List(Of clsGameFilter), ByVal eFilterType As frmFilter.eFilterType, ByVal bAndOperator As Boolean,
|
||||||
|
ByVal bSortAsc As Boolean, ByVal sSortField As String, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local) As List(Of Game)
|
||||||
Dim oDatabase As New mgrSQLite(iSelectDB)
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
Dim oData As DataSet
|
Dim oData As DataSet
|
||||||
Dim sSQL As String = String.Empty
|
Dim sSQL As String = String.Empty
|
||||||
Dim sID As String
|
|
||||||
Dim oList As New List(Of Game)
|
Dim oList As New List(Of Game)
|
||||||
Dim oGame As Game
|
Dim oGame As Game
|
||||||
Dim hshParams As New Hashtable
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
sSQL = BuildFilterQuery(oTagFilters, hshStringFilters, eFilterType, hshParams)
|
sSQL = BuildFilterQuery(oIncludeTagFilters, oExcludeTagFilters, oFilters, eFilterType, bAndOperator, bSortAsc, sSortField, hshParams)
|
||||||
|
|
||||||
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
|
|
||||||
For Each dr As DataRow In oData.Tables(0).Rows
|
For Each dr As DataRow In oData.Tables(0).Rows
|
||||||
oGame = New Game
|
oGame = New Game
|
||||||
sID = CStr(dr("MonitorID"))
|
oGame.ID = CStr(dr("MonitorID"))
|
||||||
oGame.Name = CStr(dr("Name"))
|
oGame.Name = CStr(dr("Name"))
|
||||||
oGame.ProcessName = CStr(dr("Process"))
|
oGame.ProcessName = CStr(dr("Process"))
|
||||||
If Not IsDBNull(dr("Path")) Then oGame.Path = CStr(dr("Path"))
|
If Not IsDBNull(dr("Path")) Then oGame.Path = CStr(dr("Path"))
|
||||||
oGame.AbsolutePath = CBool(dr("AbsolutePath"))
|
oGame.AbsolutePath = CBool(dr("AbsolutePath"))
|
||||||
oGame.FolderSave = CBool(dr("FolderSave"))
|
oGame.FolderSave = CBool(dr("FolderSave"))
|
||||||
|
oGame.AppendTimeStamp = CBool(dr("TimeStamp"))
|
||||||
|
oGame.BackupLimit = CInt(dr("BackupLimit"))
|
||||||
If Not IsDBNull(dr("FileType")) Then oGame.FileType = CStr(dr("FileType"))
|
If Not IsDBNull(dr("FileType")) Then oGame.FileType = CStr(dr("FileType"))
|
||||||
If Not IsDBNull(dr("ExcludeList")) Then oGame.ExcludeList = CStr(dr("ExcludeList"))
|
If Not IsDBNull(dr("ExcludeList")) Then oGame.ExcludeList = CStr(dr("ExcludeList"))
|
||||||
oGame.Tags = mgrGameTags.GetTagsByGameForExport(sID)
|
oGame.MonitorOnly = CBool(dr("MonitorOnly"))
|
||||||
|
If Not IsDBNull(dr("Parameter")) Then oGame.Parameter = CStr(dr("Parameter"))
|
||||||
|
If Not IsDBNull(dr("Comments")) Then oGame.Comments = CStr(dr("Comments"))
|
||||||
|
oGame.IsRegEx = CBool(dr("IsRegEx"))
|
||||||
|
oGame.Tags = mgrGameTags.GetTagsByGameForExport(oGame.ID)
|
||||||
oList.Add(oGame)
|
oList.Add(oGame)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
Return oList
|
Return oList
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function DoImport(ByVal sPath As String) As Boolean
|
Public Shared Function SyncGameIDs(ByVal sPath As String, ByRef oSettings As mgrSettings, ByVal bOfficial As Boolean) As Boolean
|
||||||
If (sPath.IndexOf("http://", 0, StringComparison.CurrentCultureIgnoreCase) > -1) Or
|
Dim sWarning As String
|
||||||
(sPath.IndexOf("https://", 0, StringComparison.CurrentCultureIgnoreCase) > -1) Then
|
|
||||||
|
If bOfficial Then
|
||||||
|
If (oSettings.SuppressMessages And mgrSettings.eSuppressMessages.GameIDSync) = mgrSettings.eSuppressMessages.GameIDSync Then
|
||||||
|
sWarning = mgrMonitorList_ConfirmOfficialGameIDSync
|
||||||
|
Else
|
||||||
|
sWarning = mgrMonitorList_ConfirmInitialOfficialGameIDSync
|
||||||
|
oSettings.SuppressMessages = oSettings.SetMessageField(oSettings.SuppressMessages, mgrSettings.eSuppressMessages.GameIDSync)
|
||||||
|
oSettings.SaveSettings()
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
sWarning = mgrMonitorList_ConfirmFileGameIDSync
|
||||||
|
End If
|
||||||
|
|
||||||
|
If mgrCommon.ShowMessage(sWarning, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
|
||||||
|
If mgrCommon.IsAddress(sPath) Then
|
||||||
|
If mgrCommon.CheckAddress(sPath) Then
|
||||||
|
DoGameIDSync(sPath, True)
|
||||||
|
Else
|
||||||
|
mgrCommon.ShowMessage(mgrMonitorList_WebNoReponse, sPath, MsgBoxStyle.Exclamation)
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
If File.Exists(sPath) Then
|
||||||
|
DoGameIDSync(sPath)
|
||||||
|
Else
|
||||||
|
mgrCommon.ShowMessage(mgrMonitorList_FileNotFound, sPath, MsgBoxStyle.Exclamation)
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
Return True
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function DoImport(ByVal sPath As String, ByVal bOfficial As Boolean, ByRef oSettings As mgrSettings, Optional ByVal bStartUpWizard As Boolean = False) As Boolean
|
||||||
|
If mgrCommon.IsAddress(sPath) Then
|
||||||
If mgrCommon.CheckAddress(sPath) Then
|
If mgrCommon.CheckAddress(sPath) Then
|
||||||
|
If bOfficial And Not bStartUpWizard And Not ((oSettings.SuppressMessages And mgrSettings.eSuppressMessages.GameIDSync) = mgrSettings.eSuppressMessages.GameIDSync) Then
|
||||||
|
SyncGameIDs(sPath, oSettings, True)
|
||||||
|
End If
|
||||||
ImportMonitorList(sPath, True)
|
ImportMonitorList(sPath, True)
|
||||||
Return True
|
Return True
|
||||||
Else
|
Else
|
||||||
@@ -604,25 +847,42 @@ Public Class mgrMonitorList
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Shared Sub ImportMonitorList(ByVal sLocation As String, Optional ByVal bWebRead As Boolean = False)
|
Private Shared Sub ImportMonitorList(ByVal sLocation As String, Optional ByVal bWebRead As Boolean = False)
|
||||||
Dim hshCompareFrom As Hashtable
|
Dim hshCompareFrom As New Hashtable
|
||||||
Dim hshCompareTo As Hashtable
|
Dim hshCompareTo As Hashtable
|
||||||
Dim hshSyncItems As Hashtable
|
Dim hshSyncItems As Hashtable
|
||||||
Dim oFromItem As clsGame
|
Dim oFromItem As clsGame
|
||||||
Dim oToItem As clsGame
|
Dim oToItem As clsGame
|
||||||
|
Dim oExportInfo As New ExportData
|
||||||
|
|
||||||
Cursor.Current = Cursors.WaitCursor
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
'Add / Update Sync
|
If Not mgrXML.ReadMonitorList(sLocation, oExportInfo, hshCompareFrom, bWebRead) Then
|
||||||
hshCompareFrom = mgrXML.ReadMonitorList(sLocation, bWebRead)
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
If oExportInfo.AppVer < 110 Then
|
||||||
|
If mgrCommon.ShowMessage(mgrMonitorList_ImportVersionWarning, MsgBoxStyle.YesNo) = MsgBoxResult.No Then
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
hshCompareTo = ReadList(eListTypes.FullList, mgrSQLite.Database.Local)
|
hshCompareTo = ReadList(eListTypes.FullList, mgrSQLite.Database.Local)
|
||||||
|
|
||||||
hshSyncItems = hshCompareFrom.Clone
|
hshSyncItems = hshCompareFrom.Clone
|
||||||
|
|
||||||
For Each oFromItem In hshCompareFrom.Values
|
For Each oFromItem In hshCompareFrom.Values
|
||||||
If hshCompareTo.Contains(oFromItem.CompoundKey) Then
|
If hshCompareTo.Contains(oFromItem.ID) Then
|
||||||
oToItem = DirectCast(hshCompareTo(oFromItem.CompoundKey), clsGame)
|
oToItem = DirectCast(hshCompareTo(oFromItem.ID), clsGame)
|
||||||
If oFromItem.CoreEquals(oToItem) Then
|
If oFromItem.MinimalEquals(oToItem) Then
|
||||||
hshSyncItems.Remove(oFromItem.CompoundKey)
|
If oFromItem.CoreEquals(oToItem) Then
|
||||||
|
hshSyncItems.Remove(oFromItem.ID)
|
||||||
|
Else
|
||||||
|
DirectCast(hshSyncItems(oFromItem.ID), clsGame).ImportUpdate = True
|
||||||
|
'These fields need to be set via the object or they will be lost when the configuration is updated
|
||||||
|
DirectCast(hshSyncItems(oFromItem.ID), clsGame).Hours = oToItem.Hours
|
||||||
|
DirectCast(hshSyncItems(oFromItem.ID), clsGame).CleanFolder = oToItem.CleanFolder
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
@@ -631,6 +891,7 @@ Public Class mgrMonitorList
|
|||||||
|
|
||||||
If hshSyncItems.Count > 0 Then
|
If hshSyncItems.Count > 0 Then
|
||||||
Dim frm As New frmAdvancedImport
|
Dim frm As New frmAdvancedImport
|
||||||
|
frm.ImportInfo = oExportInfo
|
||||||
frm.ImportData = hshSyncItems
|
frm.ImportData = hshSyncItems
|
||||||
If frm.ShowDialog() = DialogResult.OK Then
|
If frm.ShowDialog() = DialogResult.OK Then
|
||||||
Cursor.Current = Cursors.WaitCursor
|
Cursor.Current = Cursors.WaitCursor
|
||||||
@@ -648,22 +909,94 @@ Public Class mgrMonitorList
|
|||||||
Application.DoEvents()
|
Application.DoEvents()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Shared Sub DoGameIDSync(ByVal sLocation As String, Optional ByVal bWebRead As Boolean = False)
|
||||||
|
Dim oLocalDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim oRemoteDatabase As New mgrSQLite(mgrSQLite.Database.Remote)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As Hashtable
|
||||||
|
Dim oParamList As New List(Of Hashtable)
|
||||||
|
Dim hshCompareFrom As New Hashtable
|
||||||
|
Dim hshCompareTo As Hashtable
|
||||||
|
Dim hshSyncIDs As New Hashtable
|
||||||
|
Dim oFromItem As clsGame
|
||||||
|
Dim oToItem As clsGame
|
||||||
|
Dim oExportInfo As New ExportData
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
If Not mgrXML.ReadMonitorList(sLocation, oExportInfo, hshCompareFrom, bWebRead) Then
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
If oExportInfo.AppVer < 110 Then
|
||||||
|
mgrCommon.ShowMessage(mgrMonitorList_ErrorGameIDVerFailure, MsgBoxStyle.Exclamation)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
hshCompareTo = ReadList(eListTypes.FullList, mgrSQLite.Database.Local)
|
||||||
|
|
||||||
|
For Each oFromItem In hshCompareFrom.Values
|
||||||
|
If Not hshCompareTo.Contains(oFromItem.ID) Then
|
||||||
|
For Each oToItem In hshCompareTo.Values
|
||||||
|
'Strip all special characters and compare names
|
||||||
|
If Regex.Replace(oToItem.Name, "[^\w]+", "").ToLower = Regex.Replace(oFromItem.Name, "[^\w]+", "").ToLower Then
|
||||||
|
'Ignore games with duplicate names
|
||||||
|
If Not hshSyncIDs.Contains(oFromItem.ID) Then
|
||||||
|
hshSyncIDs.Add(oFromItem.ID, oToItem.ID)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
For Each de As DictionaryEntry In hshSyncIDs
|
||||||
|
hshParams = New Hashtable
|
||||||
|
hshParams.Add("MonitorID", CStr(de.Key))
|
||||||
|
hshParams.Add("QueryID", CStr(de.Value))
|
||||||
|
oParamList.Add(hshParams)
|
||||||
|
Next
|
||||||
|
|
||||||
|
sSQL = "UPDATE monitorlist SET MonitorID=@MonitorID WHERE MonitorID=@QueryID;"
|
||||||
|
sSQL &= "UPDATE gametags SET MonitorID=@MonitorID WHERE MonitorID=@QueryID;"
|
||||||
|
sSQL &= "UPDATE manifest SET MonitorID=@MonitorID WHERE MonitorID=@QueryID;"
|
||||||
|
|
||||||
|
oRemoteDatabase.RunMassParamQuery(sSQL, oParamList)
|
||||||
|
|
||||||
|
sSQL &= "UPDATE sessions SET MonitorID=@MonitorID WHERE MonitorID=@QueryID;"
|
||||||
|
sSQL &= "UPDATE gameprocesses SET MonitorID=@MonitorID WHERE MonitorID=@QueryID;"
|
||||||
|
|
||||||
|
oLocalDatabase.RunMassParamQuery(sSQL, oParamList)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
|
||||||
|
mgrCommon.ShowMessage(mgrMonitorList_GameIDSyncCompleted, hshSyncIDs.Count.ToString, MsgBoxStyle.Information)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
Public Shared Sub ExportMonitorList(ByVal sLocation As String)
|
Public Shared Sub ExportMonitorList(ByVal sLocation As String)
|
||||||
Dim oList As List(Of Game)
|
Dim oList As List(Of Game)
|
||||||
Dim bSuccess As Boolean = False
|
Dim bSuccess As Boolean = False
|
||||||
Dim oTagFilters As New List(Of clsTag)
|
Dim oIncludeTagFilters As New List(Of clsTag)
|
||||||
Dim oStringFilters As New Hashtable
|
Dim oExcludeTagFilters As New List(Of clsTag)
|
||||||
Dim eCurrentFilter As frmFilter.eFilterType = frmFilter.eFilterType.NoFilter
|
Dim oFilters As New List(Of clsGameFilter)
|
||||||
|
Dim eCurrentFilter As frmFilter.eFilterType = frmFilter.eFilterType.BaseFilter
|
||||||
|
Dim bAndOperator As Boolean = True
|
||||||
|
Dim bSortAsc As Boolean = True
|
||||||
|
Dim sSortField As String = "Name"
|
||||||
|
|
||||||
If mgrCommon.ShowMessage(mgrMonitorList_ConfirmApplyFilter, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
|
If mgrCommon.ShowMessage(mgrMonitorList_ConfirmApplyFilter, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
|
||||||
Dim frm As New frmFilter
|
Dim frm As New frmFilter
|
||||||
frm.ShowDialog()
|
frm.ShowDialog()
|
||||||
oTagFilters = frm.TagFilters
|
oIncludeTagFilters = frm.IncludeTagFilters
|
||||||
oStringFilters = frm.StringFilters
|
oExcludeTagFilters = frm.ExcludeTagFilters
|
||||||
|
oFilters = frm.GameFilters
|
||||||
eCurrentFilter = frm.FilterType
|
eCurrentFilter = frm.FilterType
|
||||||
|
bAndOperator = frm.AndOperator
|
||||||
|
bSortAsc = frm.SortAsc
|
||||||
|
sSortField = frm.SortField
|
||||||
End If
|
End If
|
||||||
|
|
||||||
oList = ReadListForExport(oTagFilters, oStringFilters, eCurrentFilter)
|
oList = ReadListForExport(oIncludeTagFilters, oExcludeTagFilters, oFilters, eCurrentFilter, bAndOperator, bSortAsc, sSortField)
|
||||||
|
|
||||||
bSuccess = mgrXML.SerializeAndExport(oList, sLocation)
|
bSuccess = mgrXML.SerializeAndExport(oList, sLocation)
|
||||||
|
|
||||||
@@ -688,15 +1021,15 @@ Public Class mgrMonitorList
|
|||||||
'If the remote database actually contains a list, then ask what to do
|
'If the remote database actually contains a list, then ask what to do
|
||||||
If iGameCount > 0 Then
|
If iGameCount > 0 Then
|
||||||
If mgrCommon.ShowMessage(mgrMonitorList_ConfirmExistingData, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
|
If mgrCommon.ShowMessage(mgrMonitorList_ConfirmExistingData, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
|
||||||
mgrMonitorList.SyncMonitorLists(oSettings.SyncFields)
|
mgrMonitorList.SyncMonitorLists(oSettings)
|
||||||
Else
|
Else
|
||||||
mgrMonitorList.SyncMonitorLists(oSettings.SyncFields, False)
|
mgrMonitorList.SyncMonitorLists(oSettings, False)
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
mgrMonitorList.SyncMonitorLists(oSettings.SyncFields)
|
mgrMonitorList.SyncMonitorLists(oSettings)
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
mgrMonitorList.SyncMonitorLists(oSettings.SyncFields)
|
mgrMonitorList.SyncMonitorLists(oSettings)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
+53
-15
@@ -99,8 +99,18 @@ Public Class mgrPath
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public Shared Function ValidateForFileSystem(ByVal sCheckString As String) As String
|
Public Shared Function ValidatePathForOS(ByVal sCheckString As String) As String
|
||||||
Dim cInvalidCharacters As Char() = {"\", "/", ":", "*", "?", """", "<", ">", "|", "."}
|
Dim cInvalidCharacters As Char() = Path.GetInvalidPathChars
|
||||||
|
|
||||||
|
For Each c As Char In cInvalidCharacters
|
||||||
|
sCheckString = sCheckString.Replace(c, "")
|
||||||
|
Next
|
||||||
|
|
||||||
|
Return sCheckString.Trim
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function ValidateFileNameForOS(ByVal sCheckString As String) As String
|
||||||
|
Dim cInvalidCharacters As Char() = Path.GetInvalidFileNameChars
|
||||||
|
|
||||||
For Each c As Char In cInvalidCharacters
|
For Each c As Char In cInvalidCharacters
|
||||||
sCheckString = sCheckString.Replace(c, "")
|
sCheckString = sCheckString.Replace(c, "")
|
||||||
@@ -192,6 +202,28 @@ Public Class mgrPath
|
|||||||
Return sResult
|
Return sResult
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function CheckSpecialPaths() As Boolean
|
||||||
|
Dim hshEnvs As New Hashtable
|
||||||
|
Dim bNoError As Boolean = True
|
||||||
|
|
||||||
|
hshEnvs.Add("Documents", Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments))
|
||||||
|
hshEnvs.Add("AppDataRoaming", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData))
|
||||||
|
hshEnvs.Add("AppDataLocal", Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData))
|
||||||
|
If Not mgrCommon.IsUnix Then
|
||||||
|
hshEnvs.Add("UserData", Environment.GetFolderPath(Environment.SpecialFolder.UserProfile))
|
||||||
|
hshEnvs.Add("PublicDocuments", Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments))
|
||||||
|
End If
|
||||||
|
|
||||||
|
For Each de As DictionaryEntry In hshEnvs
|
||||||
|
If de.Value = String.Empty Then
|
||||||
|
mgrCommon.ShowMessage(mgrPath_SpecialPathError, de.Key, MsgBoxStyle.Critical)
|
||||||
|
bNoError = False
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
Return bNoError
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Shared Function ReplaceSpecialPaths(sValue As String) As String
|
Public Shared Function ReplaceSpecialPaths(sValue As String) As String
|
||||||
Dim sMyDocs As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
|
Dim sMyDocs As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
|
||||||
Dim sPublicDocs As String = Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments)
|
Dim sPublicDocs As String = Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments)
|
||||||
@@ -236,39 +268,45 @@ Public Class mgrPath
|
|||||||
|
|
||||||
Public Shared Function ReverseSpecialPaths(sValue As String) As String
|
Public Shared Function ReverseSpecialPaths(sValue As String) As String
|
||||||
Dim sMyDocs As String = "*mydocs*"
|
Dim sMyDocs As String = "*mydocs*"
|
||||||
|
Dim sEnvMyDocs As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
|
||||||
Dim sPublicDocs As String = "*publicdocs*"
|
Dim sPublicDocs As String = "*publicdocs*"
|
||||||
Dim sAppDataRoaming As String = "*appdatalocal*"
|
Dim sEnvPublicDocs As String = Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments)
|
||||||
Dim sAppDataLocal As String = "*appdataroaming*"
|
Dim sAppDataLocal As String = "*appdatalocal*"
|
||||||
|
Dim sEnvAppDataLocal As String = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
|
||||||
|
Dim sAppDataRoaming As String = "*appdataroaming*"
|
||||||
|
Dim sEnvAppDataRoaming As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
|
||||||
Dim sCurrentUser As String = "*currentuser*"
|
Dim sCurrentUser As String = "*currentuser*"
|
||||||
|
Dim sEnvCurrentUser As String = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)
|
||||||
Dim oCustomVariable As clsPathVariable
|
Dim oCustomVariable As clsPathVariable
|
||||||
|
|
||||||
|
|
||||||
For Each oCustomVariable In hshCustomVariables.Values
|
For Each oCustomVariable In hshCustomVariables.Values
|
||||||
If sValue.Contains(oCustomVariable.Path) Then
|
If sValue.Contains(oCustomVariable.Path) Then
|
||||||
Return sValue.Replace(oCustomVariable.Path, oCustomVariable.FormattedName)
|
Return sValue.Replace(oCustomVariable.Path, oCustomVariable.FormattedName)
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
If sValue.Contains(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)) Then
|
If sValue.Contains(sEnvAppDataRoaming) Then
|
||||||
Return sValue.Replace(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), sAppDataLocal)
|
Return sValue.Replace(sEnvAppDataRoaming, sAppDataRoaming)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If sValue.Contains(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)) Then
|
If sValue.Contains(sEnvAppDataLocal) Then
|
||||||
Return sValue.Replace(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), sAppDataRoaming)
|
Return sValue.Replace(sEnvAppDataLocal, sAppDataLocal)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'This needs to be tested last for Unix compatability
|
'This needs to be tested last for Unix compatability
|
||||||
If sValue.Contains(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)) Then
|
If sValue.Contains(sEnvMyDocs) Then
|
||||||
Return sValue.Replace(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), sMyDocs)
|
Return sValue.Replace(sEnvMyDocs, sMyDocs)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'Don't use these in Unix
|
'Don't use these in Unix
|
||||||
If Not mgrCommon.IsUnix Then
|
If Not mgrCommon.IsUnix Then
|
||||||
If sValue.Contains(Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments)) Then
|
If sValue.Contains(sEnvPublicDocs) Then
|
||||||
Return sValue.Replace(Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments), sPublicDocs)
|
Return sValue.Replace(sEnvPublicDocs, sPublicDocs)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If sValue.Contains(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)) Then
|
If sValue.Contains(sEnvCurrentUser) Then
|
||||||
Return sValue.Replace(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), sCurrentUser)
|
Return sValue.Replace(sEnvCurrentUser, sCurrentUser)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -335,7 +373,7 @@ Public Class mgrPath
|
|||||||
Dim sDefaultFolder As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
|
Dim sDefaultFolder As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
|
||||||
Dim sNewPath As String
|
Dim sNewPath As String
|
||||||
|
|
||||||
sNewPath = mgrCommon.OpenFolderBrowser(mgrPath_ChoosePath, sDefaultFolder, False)
|
sNewPath = mgrCommon.OpenFolderBrowser("Manual_Game_Location", mgrPath_ChoosePath, sDefaultFolder, False)
|
||||||
|
|
||||||
Return sNewPath
|
Return sNewPath
|
||||||
End Function
|
End Function
|
||||||
|
|||||||
@@ -0,0 +1,152 @@
|
|||||||
|
Public Class mgrProcess
|
||||||
|
|
||||||
|
Private Shared Function MapToObject(ByVal dr As DataRow) As clsProcess
|
||||||
|
Dim oProcess As New clsProcess
|
||||||
|
|
||||||
|
oProcess.ID = CStr(dr("ProcessID"))
|
||||||
|
oProcess.Name = CStr(dr("Name"))
|
||||||
|
oProcess.Path = CStr(dr("Path"))
|
||||||
|
If Not IsDBNull(dr("Args")) Then oProcess.Args = CStr(dr("Args"))
|
||||||
|
oProcess.Kill = CBool(dr("Kill"))
|
||||||
|
|
||||||
|
Return oProcess
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Shared Function SetCoreParameters(ByVal oProcess As clsProcess) As Hashtable
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
|
hshParams.Add("ProcessID", oProcess.ID)
|
||||||
|
hshParams.Add("Name", oProcess.Name)
|
||||||
|
hshParams.Add("Path", oProcess.Path)
|
||||||
|
hshParams.Add("Args", oProcess.Args)
|
||||||
|
hshParams.Add("Kill", oProcess.Kill)
|
||||||
|
|
||||||
|
Return hshParams
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Sub DoProcessAdd(ByVal oProcess As clsProcess)
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As Hashtable
|
||||||
|
|
||||||
|
sSQL = "INSERT INTO processes VALUES (@ProcessID, @Name, @Path, @Args, @Kill)"
|
||||||
|
hshParams = SetCoreParameters(oProcess)
|
||||||
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Shared Sub DoProcessUpdate(ByVal oProcess As clsProcess)
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As Hashtable
|
||||||
|
|
||||||
|
sSQL = "UPDATE processes SET Name=@Name, Path=@Path, Args=@Args, Kill=@Kill "
|
||||||
|
sSQL &= "WHERE ProcessID = @ProcessID"
|
||||||
|
|
||||||
|
hshParams = SetCoreParameters(oProcess)
|
||||||
|
|
||||||
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Shared Sub DoProcessDelete(ByVal sProcessID As String)
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
|
sSQL = "DELETE FROM gameprocesses "
|
||||||
|
sSQL &= "WHERE ProcessID = @ProcessID;"
|
||||||
|
sSQL &= "DELETE FROM processes "
|
||||||
|
sSQL &= "WHERE ProcessID = @ProcessID;"
|
||||||
|
|
||||||
|
hshParams.Add("ProcessID", sProcessID)
|
||||||
|
|
||||||
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Shared Function DoProcessGetbyID(ByVal sProcessID As String) As clsProcess
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim oData As DataSet
|
||||||
|
Dim oProcess As New clsProcess
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
|
sSQL = "SELECT * FROM processes "
|
||||||
|
sSQL &= "WHERE ProcessID = @ProcessID"
|
||||||
|
|
||||||
|
hshParams.Add("ProcessID", sProcessID)
|
||||||
|
|
||||||
|
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
|
|
||||||
|
For Each dr As DataRow In oData.Tables(0).Rows
|
||||||
|
oProcess = MapToObject(dr)
|
||||||
|
Next
|
||||||
|
|
||||||
|
Return oProcess
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function DoProcessGetbyName(ByVal sProcessName As String) As clsProcess
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim oData As DataSet
|
||||||
|
Dim oProcess As New clsProcess
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
|
sSQL = "SELECT * FROM processes "
|
||||||
|
sSQL &= "WHERE Name = @Name"
|
||||||
|
|
||||||
|
hshParams.Add("Name", sProcessName)
|
||||||
|
|
||||||
|
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
|
|
||||||
|
For Each dr As DataRow In oData.Tables(0).Rows
|
||||||
|
oProcess = MapToObject(dr)
|
||||||
|
Next
|
||||||
|
|
||||||
|
Return oProcess
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function DoCheckDuplicate(ByVal sName As String, Optional ByVal sExcludeID As String = "") As Boolean
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim oData As DataSet
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
|
sSQL = "SELECT * FROM processes "
|
||||||
|
sSQL &= "WHERE Name = @Name"
|
||||||
|
|
||||||
|
hshParams.Add("Name", sName)
|
||||||
|
|
||||||
|
If sExcludeID <> String.Empty Then
|
||||||
|
sSQL &= " AND ProcessID <> @ProcessID"
|
||||||
|
hshParams.Add("ProcessID", 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
|
||||||
|
|
||||||
|
Public Shared Function ReadProcesses() As Hashtable
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim oData As DataSet
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshList As New Hashtable
|
||||||
|
Dim oProcess As clsProcess
|
||||||
|
|
||||||
|
sSQL = "SELECT * from processes"
|
||||||
|
oData = oDatabase.ReadParamData(sSQL, New Hashtable)
|
||||||
|
|
||||||
|
For Each dr As DataRow In oData.Tables(0).Rows
|
||||||
|
oProcess = MapToObject(dr)
|
||||||
|
hshList.Add(oProcess.Name, oProcess)
|
||||||
|
Next
|
||||||
|
|
||||||
|
Return hshList
|
||||||
|
End Function
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
Imports System.Diagnostics
|
Imports System.IO
|
||||||
Imports System.IO
|
Imports System.Management
|
||||||
Imports System.Threading
|
Imports System.Text.RegularExpressions
|
||||||
|
|
||||||
Public Class mgrProcesses
|
Public Class mgrProcessDetection
|
||||||
|
|
||||||
Private prsFoundProcess As Process
|
Private prsFoundProcess As Process
|
||||||
Private dStartTime As DateTime = Now, dEndTime As DateTime = Now
|
Private dStartTime As DateTime = Now, dEndTime As DateTime = Now
|
||||||
@@ -11,6 +11,7 @@ Public Class mgrProcesses
|
|||||||
Private oDuplicateGames As New ArrayList
|
Private oDuplicateGames As New ArrayList
|
||||||
Private bDuplicates As Boolean
|
Private bDuplicates As Boolean
|
||||||
Private bVerified As Boolean = False
|
Private bVerified As Boolean = False
|
||||||
|
Private sFullCommand As String = String.Empty
|
||||||
|
|
||||||
Property FoundProcess As Process
|
Property FoundProcess As Process
|
||||||
Get
|
Get
|
||||||
@@ -72,17 +73,84 @@ Public Class mgrProcesses
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private Sub VerifyDuplicate(oGame As clsGame, hshScanList As Hashtable)
|
Property FullCommand As String
|
||||||
|
Get
|
||||||
|
Return sFullCommand
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
sFullCommand = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private Function HandleDuplicates(hshScanList As Hashtable) As Boolean
|
||||||
Dim sProcess As String
|
Dim sProcess As String
|
||||||
|
Dim sParameter As String = String.Empty
|
||||||
|
Dim bParameter As Boolean = False
|
||||||
|
Dim oInitialDupes As New ArrayList
|
||||||
|
|
||||||
bDuplicates = True
|
bDuplicates = True
|
||||||
oDuplicateGames.Clear()
|
oDuplicateGames.Clear()
|
||||||
|
|
||||||
|
|
||||||
For Each o As clsGame In hshScanList.Values
|
For Each o As clsGame In hshScanList.Values
|
||||||
sProcess = o.ProcessName.Split(":")(0)
|
sProcess = o.ProcessName.Split(":")(0)
|
||||||
|
If o.Duplicate = True And (sProcess = oGame.TrueProcess Or Regex.IsMatch(sProcess, oGame.TrueProcess)) Then
|
||||||
If o.Duplicate = True And sProcess = oGame.TrueProcess Then
|
oInitialDupes.Add(o.ShallowCopy)
|
||||||
oDuplicateGames.Add(o.ShallowCopy)
|
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
For Each o As clsGame In oInitialDupes
|
||||||
|
If (o.Parameter <> String.Empty And FullCommand.Contains(o.Parameter)) Then
|
||||||
|
sParameter = o.Parameter
|
||||||
|
bParameter = True
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
If bParameter Then
|
||||||
|
For Each o As clsGame In oInitialDupes
|
||||||
|
If (o.Parameter = sParameter) Then
|
||||||
|
oDuplicateGames.Add(o.ShallowCopy)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
Else
|
||||||
|
For Each o As clsGame In oInitialDupes
|
||||||
|
If (o.Parameter = String.Empty) Then
|
||||||
|
oDuplicateGames.Add(o.ShallowCopy)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
|
||||||
|
If oDuplicateGames.Count = 1 Then
|
||||||
|
oGame = DirectCast(oDuplicateGames(0), clsGame).ShallowCopy
|
||||||
|
Return True
|
||||||
|
End If
|
||||||
|
|
||||||
|
Return False
|
||||||
|
End Function
|
||||||
|
|
||||||
|
'This function will only work correctly on Windows
|
||||||
|
Private Sub GetWindowsCommand(ByVal prs As Process)
|
||||||
|
FullCommand = String.Empty
|
||||||
|
Try
|
||||||
|
Using searcher As New ManagementObjectSearcher("SELECT CommandLine FROM Win32_Process WHERE ProcessId = " + prs.Id.ToString)
|
||||||
|
For Each o As ManagementObject In searcher.Get()
|
||||||
|
FullCommand &= o("CommandLine") & " "
|
||||||
|
Next
|
||||||
|
End Using
|
||||||
|
Catch ex As Exception
|
||||||
|
'Do Nothing
|
||||||
|
End Try
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'This function will only work correctly on Unix
|
||||||
|
Private Sub GetUnixCommand(ByVal prs As Process)
|
||||||
|
FullCommand = String.Empty
|
||||||
|
Try
|
||||||
|
FullCommand = File.ReadAllText("/proc/" & prs.Id.ToString() & "/cmdline").Replace(vbNullChar, " ")
|
||||||
|
Catch ex As Exception
|
||||||
|
'Do Nothing
|
||||||
|
End Try
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
'This function will only work correctly on Unix
|
'This function will only work correctly on Unix
|
||||||
@@ -99,31 +167,51 @@ Public Class mgrProcesses
|
|||||||
'This function will only work correctly on Unix
|
'This function will only work correctly on Unix
|
||||||
Private Function GetUnixSymLinkDirectory(ByVal prs As Process) As String
|
Private Function GetUnixSymLinkDirectory(ByVal prs As Process) As String
|
||||||
Dim prsls As Process
|
Dim prsls As Process
|
||||||
Dim slsinfo As String()
|
Dim slsinfo As String
|
||||||
|
|
||||||
'This is the best way I can think of to determine the end point of a symlink without doing even more crazy shit
|
|
||||||
Try
|
Try
|
||||||
prsls = New Process
|
prsls = New Process
|
||||||
prsls.StartInfo.FileName = "/bin/bash"
|
prsls.StartInfo.FileName = "/bin/readlink"
|
||||||
prsls.StartInfo.Arguments = "-c ""ls -l /proc/" & prs.Id.ToString & " | grep cwd"""
|
prsls.StartInfo.Arguments = "-f /proc/" & prs.Id.ToString & "/cwd"
|
||||||
prsls.StartInfo.UseShellExecute = False
|
prsls.StartInfo.UseShellExecute = False
|
||||||
prsls.StartInfo.RedirectStandardOutput = True
|
prsls.StartInfo.RedirectStandardOutput = True
|
||||||
prsls.StartInfo.CreateNoWindow = True
|
prsls.StartInfo.CreateNoWindow = True
|
||||||
prsls.Start()
|
prsls.Start()
|
||||||
slsinfo = prsls.StandardOutput.ReadToEnd().Split(">")
|
slsinfo = prsls.StandardOutput.ReadToEnd()
|
||||||
Return slsinfo(slsinfo.Length - 1).Trim
|
Return slsinfo.Trim()
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
Return String.Empty
|
Return String.Empty
|
||||||
End Try
|
End Try
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Private Function IsMatch(ByRef oGame As clsGame, ByRef sProcessCheck As String) As Boolean
|
||||||
|
If oGame.IsRegEx Then
|
||||||
|
Try
|
||||||
|
If Regex.IsMatch(sProcessCheck, oGame.ProcessName) Then
|
||||||
|
Return True
|
||||||
|
End If
|
||||||
|
Catch
|
||||||
|
'Ignore malformed regular expressions that may have passed validation
|
||||||
|
End Try
|
||||||
|
Else
|
||||||
|
If oGame.ProcessName = sProcessCheck Then
|
||||||
|
Return True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
Return False
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Function SearchRunningProcesses(ByVal hshScanList As Hashtable, ByRef bNeedsPath As Boolean, ByRef iErrorCode As Integer, ByVal bDebugMode As Boolean) As Boolean
|
Public Function SearchRunningProcesses(ByVal hshScanList As Hashtable, ByRef bNeedsPath As Boolean, ByRef iErrorCode As Integer, ByVal bDebugMode As Boolean) As Boolean
|
||||||
Dim prsList() As Process = Process.GetProcesses
|
Dim prsList() As Process = Process.GetProcesses
|
||||||
Dim sProcessCheck As String = String.Empty
|
Dim sProcessCheck As String = String.Empty
|
||||||
Dim sProcessList As String = String.Empty
|
Dim sProcessList As String = String.Empty
|
||||||
Dim bWineProcess As Boolean = False
|
Dim bWineProcess As Boolean = False
|
||||||
|
Dim bPass As Boolean
|
||||||
|
|
||||||
For Each prsCurrent As Process In prsList
|
For Each prsCurrent As Process In prsList
|
||||||
|
bPass = False
|
||||||
|
|
||||||
'This needs to be wrapped due to issues with Mono.
|
'This needs to be wrapped due to issues with Mono.
|
||||||
Try
|
Try
|
||||||
sProcessCheck = prsCurrent.ProcessName
|
sProcessCheck = prsCurrent.ProcessName
|
||||||
@@ -149,17 +237,38 @@ Public Class mgrProcesses
|
|||||||
'Do Nothing
|
'Do Nothing
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
If hshScanList.ContainsKey(sProcessCheck) Then
|
'Detection Pass 1
|
||||||
prsFoundProcess = prsCurrent
|
For Each oCurrentGame As clsGame In hshScanList.Values
|
||||||
oGame = DirectCast(hshScanList.Item(sProcessCheck), clsGame).ShallowCopy
|
If IsMatch(oCurrentGame, sProcessCheck) Then
|
||||||
|
prsFoundProcess = prsCurrent
|
||||||
|
oGame = oCurrentGame.ShallowCopy
|
||||||
|
bPass = True
|
||||||
|
|
||||||
If oGame.Duplicate = True Then
|
If mgrCommon.IsUnix Then
|
||||||
VerifyDuplicate(oGame, hshScanList)
|
GetUnixCommand(prsCurrent)
|
||||||
Else
|
Else
|
||||||
bDuplicates = False
|
GetWindowsCommand(prsCurrent)
|
||||||
oDuplicateGames.Clear()
|
End If
|
||||||
|
|
||||||
|
If oGame.Duplicate = True Then
|
||||||
|
If HandleDuplicates(hshScanList) Then
|
||||||
|
bDuplicates = False
|
||||||
|
oDuplicateGames.Clear()
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
bDuplicates = False
|
||||||
|
oDuplicateGames.Clear()
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Duplicate And DuplicateList.Count = 0 Then bPass = False
|
||||||
|
|
||||||
|
If oGame.Parameter <> String.Empty And Not Duplicate And Not FullCommand.Contains(oGame.Parameter) Then bPass = False
|
||||||
End If
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
'Detection Pass 2
|
||||||
|
If bPass Then
|
||||||
|
'Determine the process path if we need it
|
||||||
If Not oGame.AbsolutePath Or oGame.Duplicate Then
|
If Not oGame.AbsolutePath Or oGame.Duplicate Then
|
||||||
Try
|
Try
|
||||||
If Not bWineProcess Then
|
If Not bWineProcess Then
|
||||||
@@ -180,12 +289,12 @@ Public Class mgrProcesses
|
|||||||
Else
|
Else
|
||||||
If bDebugMode Then mgrCommon.ShowMessage(exWin32.NativeErrorCode & " " & exWin32.Message & vbCrLf & vbCrLf & exWin32.StackTrace, MsgBoxStyle.Critical)
|
If bDebugMode Then mgrCommon.ShowMessage(exWin32.NativeErrorCode & " " & exWin32.Message & vbCrLf & vbCrLf & exWin32.StackTrace, MsgBoxStyle.Critical)
|
||||||
'A different failure occured, drop out and continue to scan.
|
'A different failure occured, drop out and continue to scan.
|
||||||
Return False
|
bPass = False
|
||||||
End If
|
End If
|
||||||
Catch exAll As Exception
|
Catch exAll As Exception
|
||||||
If bDebugMode Then mgrCommon.ShowMessage(exAll.Message & vbCrLf & vbCrLf & exAll.StackTrace, MsgBoxStyle.Critical)
|
If bDebugMode Then mgrCommon.ShowMessage(exAll.Message & vbCrLf & vbCrLf & exAll.StackTrace, MsgBoxStyle.Critical)
|
||||||
'A different failure occured, drop out and continue to scan.
|
'A different failure occured, drop out and continue to scan.
|
||||||
Return False
|
bPass = False
|
||||||
End Try
|
End Try
|
||||||
End If
|
End If
|
||||||
|
|
||||||
+28
-66
@@ -28,25 +28,11 @@ Public Class mgrRestore
|
|||||||
Public Event UpdateRestoreInfo(oRestoreInfo As clsBackup)
|
Public Event UpdateRestoreInfo(oRestoreInfo As clsBackup)
|
||||||
Public Event SetLastAction(sMessage As String)
|
Public Event SetLastAction(sMessage As String)
|
||||||
|
|
||||||
Public Shared Sub DoPathOverride(ByRef oCheckBackup As clsBackup, ByVal oCheckGame As clsGame)
|
|
||||||
'Always override the manifest restore path with the current configuration path if possible
|
|
||||||
If Not oCheckGame.Temporary Then
|
|
||||||
If Path.IsPathRooted(oCheckGame.Path) Then
|
|
||||||
oCheckBackup.AbsolutePath = True
|
|
||||||
Else
|
|
||||||
oCheckBackup.AbsolutePath = False
|
|
||||||
End If
|
|
||||||
oCheckBackup.RestorePath = oCheckGame.Path
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Public Shared Function CheckPath(ByRef oRestoreInfo As clsBackup, ByVal oGame As clsGame, ByRef bTriggerReload As Boolean) As Boolean
|
Public Shared Function CheckPath(ByRef oRestoreInfo As clsBackup, ByVal oGame As clsGame, ByRef bTriggerReload As Boolean) As Boolean
|
||||||
Dim sProcess As String
|
Dim sProcess As String
|
||||||
Dim sRestorePath As String
|
Dim sRestorePath As String
|
||||||
Dim bNoAuto As Boolean
|
Dim bNoAuto As Boolean
|
||||||
|
|
||||||
DoPathOverride(oRestoreInfo, oGame)
|
|
||||||
|
|
||||||
If Not oRestoreInfo.AbsolutePath Then
|
If Not oRestoreInfo.AbsolutePath Then
|
||||||
If oGame.ProcessPath <> String.Empty Then
|
If oGame.ProcessPath <> String.Empty Then
|
||||||
oRestoreInfo.RelativeRestorePath = oGame.ProcessPath & Path.DirectorySeparatorChar & oRestoreInfo.RestorePath
|
oRestoreInfo.RelativeRestorePath = oGame.ProcessPath & Path.DirectorySeparatorChar & oRestoreInfo.RestorePath
|
||||||
@@ -72,7 +58,7 @@ Public Class mgrRestore
|
|||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function CheckManifest(ByVal sAppName As String) As Boolean
|
Public Shared Function CheckManifest(ByVal sMonitorID As String) As Boolean
|
||||||
Dim slLocalManifest As SortedList
|
Dim slLocalManifest As SortedList
|
||||||
Dim slRemoteManifest As SortedList
|
Dim slRemoteManifest As SortedList
|
||||||
Dim oLocalItem As New clsBackup
|
Dim oLocalItem As New clsBackup
|
||||||
@@ -83,21 +69,19 @@ Public Class mgrRestore
|
|||||||
slLocalManifest = mgrManifest.ReadLatestManifest(mgrSQLite.Database.Local)
|
slLocalManifest = mgrManifest.ReadLatestManifest(mgrSQLite.Database.Local)
|
||||||
slRemoteManifest = mgrManifest.ReadLatestManifest(mgrSQLite.Database.Remote)
|
slRemoteManifest = mgrManifest.ReadLatestManifest(mgrSQLite.Database.Remote)
|
||||||
|
|
||||||
If slLocalManifest.Contains(sAppName) Then
|
If slLocalManifest.Contains(sMonitorID) Then
|
||||||
oLocalItem = DirectCast(slLocalManifest(sAppName), clsBackup)
|
oLocalItem = DirectCast(slLocalManifest(sMonitorID), clsBackup)
|
||||||
bLocal = True
|
bLocal = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If slRemoteManifest.Contains(sAppName) Then
|
If slRemoteManifest.Contains(sMonitorID) Then
|
||||||
oRemoteItem = DirectCast(slRemoteManifest(sAppName), clsBackup)
|
oRemoteItem = DirectCast(slRemoteManifest(sMonitorID), clsBackup)
|
||||||
bRemote = True
|
bRemote = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If bLocal And bRemote Then
|
If bLocal And bRemote Then
|
||||||
'Compare
|
'Compare
|
||||||
If oRemoteItem.DateUpdated > oLocalItem.DateUpdated Then
|
If oRemoteItem.DateUpdated > oLocalItem.DateUpdated Then
|
||||||
oRemoteItem.LastDateUpdated = oLocalItem.DateUpdated
|
|
||||||
oRemoteItem.LastUpdatedBy = oLocalItem.UpdatedBy
|
|
||||||
Return True
|
Return True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -121,47 +105,21 @@ Public Class mgrRestore
|
|||||||
slRemoteManifest = mgrManifest.ReadLatestManifest(mgrSQLite.Database.Remote)
|
slRemoteManifest = mgrManifest.ReadLatestManifest(mgrSQLite.Database.Remote)
|
||||||
|
|
||||||
For Each oItem As clsBackup In slRemoteManifest.Values
|
For Each oItem As clsBackup In slRemoteManifest.Values
|
||||||
If slLocalManifest.Contains(oItem.Name) Then
|
If slLocalManifest.Contains(oItem.MonitorID) Then
|
||||||
oLocalItem = DirectCast(slLocalManifest(oItem.Name), clsBackup)
|
oLocalItem = DirectCast(slLocalManifest(oItem.MonitorID), clsBackup)
|
||||||
|
|
||||||
If oItem.DateUpdated > oLocalItem.DateUpdated Then
|
If oItem.DateUpdated > oLocalItem.DateUpdated Then
|
||||||
oLocalItem.FileName = oItem.FileName
|
slRestoreItems.Add(oItem.MonitorID, oItem)
|
||||||
oLocalItem.LastDateUpdated = oItem.DateUpdated
|
|
||||||
oLocalItem.LastUpdatedBy = oItem.UpdatedBy
|
|
||||||
slRestoreItems.Add(oLocalItem.Name, oLocalItem)
|
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
oLocalItem = oItem
|
slRestoreItems.Add(oItem.MonitorID, oItem)
|
||||||
oLocalItem.LastDateUpdated = oItem.DateUpdated
|
|
||||||
oLocalItem.LastUpdatedBy = oItem.UpdatedBy
|
|
||||||
oLocalItem.DateUpdated = Nothing
|
|
||||||
oLocalItem.UpdatedBy = Nothing
|
|
||||||
slRestoreItems.Add(oLocalItem.Name, oLocalItem)
|
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
Return slRestoreItems
|
Return slRestoreItems
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function SyncLocalManifest() As SortedList
|
Public Function CheckRestorePrereq(ByVal oBackupInfo As clsBackup, ByVal bCleanFolder As Boolean) As Boolean
|
||||||
Dim slLocalManifest As SortedList
|
|
||||||
Dim slRemoteManifest As SortedList
|
|
||||||
Dim slRemovedItems As New SortedList
|
|
||||||
|
|
||||||
slLocalManifest = mgrManifest.ReadLatestManifest(mgrSQLite.Database.Local)
|
|
||||||
slRemoteManifest = mgrManifest.ReadLatestManifest(mgrSQLite.Database.Remote)
|
|
||||||
|
|
||||||
For Each oItem As clsBackup In slLocalManifest.Values
|
|
||||||
If Not slRemoteManifest.Contains(oItem.Name) Then
|
|
||||||
slRemovedItems.Add(oItem.Name, oItem)
|
|
||||||
mgrManifest.DoManifestDeletebyName(oItem, mgrSQLite.Database.Local)
|
|
||||||
End If
|
|
||||||
Next
|
|
||||||
|
|
||||||
Return slRemovedItems
|
|
||||||
End Function
|
|
||||||
|
|
||||||
Public Function CheckRestorePrereq(ByVal oBackupInfo As clsBackup) As Boolean
|
|
||||||
Dim sHash As String
|
Dim sHash As String
|
||||||
Dim sExtractPath As String
|
Dim sExtractPath As String
|
||||||
Dim sBackupFile As String = oSettings.BackupFolder & Path.DirectorySeparatorChar & oBackupInfo.FileName
|
Dim sBackupFile As String = oSettings.BackupFolder & Path.DirectorySeparatorChar & oBackupInfo.FileName
|
||||||
@@ -185,26 +143,30 @@ Public Class mgrRestore
|
|||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrRestore_ErrorNoPath, sExtractPath), False, ToolTipIcon.Error, True)
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrRestore_ErrorNoPath, sExtractPath), False, ToolTipIcon.Error, True)
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
If bCleanFolder Then
|
||||||
|
mgrCommon.DeleteDirectory(sExtractPath, True)
|
||||||
|
Directory.CreateDirectory(sExtractPath)
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'Check file integrity
|
'Check file integrity
|
||||||
If oSettings.CheckSum Then
|
If oBackupInfo.CheckSum <> String.Empty Then
|
||||||
If oBackupInfo.CheckSum <> String.Empty Then
|
sHash = mgrHash.Generate_SHA256_Hash(sBackupFile)
|
||||||
sHash = mgrHash.Generate_SHA256_Hash(sBackupFile)
|
If sHash <> oBackupInfo.CheckSum Then
|
||||||
If sHash <> oBackupInfo.CheckSum Then
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrRestore_ErrorFailedCheck, oBackupInfo.Name), False, ToolTipIcon.Info, True)
|
||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrRestore_ErrorFailedCheck, oBackupInfo.Name), False, ToolTipIcon.Info, True)
|
If mgrCommon.ShowMessage(mgrRestore_ConfirmFailedCheck, oBackupInfo.Name, MsgBoxStyle.YesNo) = MsgBoxResult.No Then
|
||||||
If mgrCommon.ShowMessage(mgrRestore_ConfirmFailedCheck, oBackupInfo.Name, MsgBoxStyle.YesNo) = MsgBoxResult.No Then
|
RaiseEvent UpdateLog(mgrRestore_ErrorCheckAbort, False, ToolTipIcon.Info, True)
|
||||||
RaiseEvent UpdateLog(mgrRestore_ErrorCheckAbort, False, ToolTipIcon.Info, True)
|
Return False
|
||||||
Return False
|
|
||||||
End If
|
|
||||||
Else
|
|
||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrRestore_Verified, oBackupInfo.Name), False, ToolTipIcon.Info, True)
|
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrRestore_NoVerify, oBackupInfo.Name), False, ToolTipIcon.Info, True)
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrRestore_Verified, oBackupInfo.Name), False, ToolTipIcon.Info, True)
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
RaiseEvent UpdateLog(mgrCommon.FormatString(mgrRestore_NoVerify, oBackupInfo.Name), False, ToolTipIcon.Info, True)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -268,8 +230,8 @@ Public Class mgrRestore
|
|||||||
|
|
||||||
If bRestoreCompleted Then
|
If bRestoreCompleted Then
|
||||||
'Save Local Manifest
|
'Save Local Manifest
|
||||||
If mgrManifest.DoGlobalManifestCheck(oBackupInfo.Name, mgrSQLite.Database.Local) Then
|
If mgrManifest.DoManifestCheck(oBackupInfo.MonitorID, mgrSQLite.Database.Local) Then
|
||||||
mgrManifest.DoManifestUpdateByName(oBackupInfo, mgrSQLite.Database.Local)
|
mgrManifest.DoManifestUpdateByMonitorID(oBackupInfo, mgrSQLite.Database.Local)
|
||||||
Else
|
Else
|
||||||
mgrManifest.DoManifestAdd(oBackupInfo, mgrSQLite.Database.Local)
|
mgrManifest.DoManifestAdd(oBackupInfo, mgrSQLite.Database.Local)
|
||||||
End If
|
End If
|
||||||
|
|||||||
+270
-18
@@ -27,17 +27,17 @@ Public Class mgrSQLite
|
|||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub BackupDB(ByVal sLastVer As String)
|
Public Sub BackupDB(ByVal sDescription As String, Optional ByVal bOverwrite As Boolean = False)
|
||||||
Dim sNewFile As String = String.Empty
|
Dim sNewFile As String = String.Empty
|
||||||
|
|
||||||
Try
|
Try
|
||||||
Select Case eDatabase
|
Select Case eDatabase
|
||||||
Case Database.Local
|
Case Database.Local
|
||||||
sNewFile = mgrPath.DatabaseLocation & "." & sLastVer & ".bak"
|
sNewFile = mgrPath.DatabaseLocation & "." & sDescription & ".bak"
|
||||||
File.Copy(mgrPath.DatabaseLocation, sNewFile, False)
|
File.Copy(mgrPath.DatabaseLocation, sNewFile, bOverwrite)
|
||||||
Case Database.Remote
|
Case Database.Remote
|
||||||
sNewFile = mgrPath.RemoteDatabaseLocation & "." & sLastVer & ".bak"
|
sNewFile = mgrPath.RemoteDatabaseLocation & "." & sDescription & ".bak"
|
||||||
File.Copy(mgrPath.RemoteDatabaseLocation, sNewFile, False)
|
File.Copy(mgrPath.RemoteDatabaseLocation, sNewFile, bOverwrite)
|
||||||
End Select
|
End Select
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
mgrCommon.ShowMessage(mgrSQLite_ErrorBackupFailure, New String() {sNewFile, ex.Message}, MsgBoxStyle.Exclamation)
|
mgrCommon.ShowMessage(mgrSQLite_ErrorBackupFailure, New String() {sNewFile, ex.Message}, MsgBoxStyle.Exclamation)
|
||||||
@@ -72,15 +72,19 @@ Public Class mgrSQLite
|
|||||||
'Add Tables (Settings)
|
'Add Tables (Settings)
|
||||||
sSql = "CREATE TABLE settings (SettingsID INTEGER NOT NULL PRIMARY KEY, MonitorOnStartup BOOLEAN NOT NULL, StartToTray BOOLEAN NOT NULL, ShowDetectionToolTips BOOLEAN NOT NULL, " &
|
sSql = "CREATE TABLE settings (SettingsID INTEGER NOT NULL PRIMARY KEY, MonitorOnStartup BOOLEAN NOT NULL, StartToTray BOOLEAN NOT NULL, ShowDetectionToolTips BOOLEAN NOT NULL, " &
|
||||||
"DisableConfirmation BOOLEAN NOT NULL, CreateSubFolder BOOLEAN NOT NULL, ShowOverwriteWarning BOOLEAN NOT NULL, RestoreOnLaunch BOOLEAN NOT NULL, " &
|
"DisableConfirmation BOOLEAN NOT NULL, CreateSubFolder BOOLEAN NOT NULL, ShowOverwriteWarning BOOLEAN NOT NULL, RestoreOnLaunch BOOLEAN NOT NULL, " &
|
||||||
"BackupFolder TEXT NOT NULL, Sync BOOLEAN NOT NULL, CheckSum BOOLEAN NOT NULL, StartWithWindows BOOLEAN NOT NULL, TimeTracking BOOLEAN NOT NULL, " &
|
"BackupFolder TEXT NOT NULL, StartWithWindows BOOLEAN NOT NULL, TimeTracking BOOLEAN NOT NULL, " &
|
||||||
"SupressBackup BOOLEAN NOT NULL, SupressBackupThreshold INTEGER NOT NULL, CompressionLevel INTEGER NOT NULL, Custom7zArguments TEXT, " &
|
"SuppressBackup BOOLEAN NOT NULL, SuppressBackupThreshold INTEGER NOT NULL, CompressionLevel INTEGER NOT NULL, Custom7zArguments TEXT, " &
|
||||||
"Custom7zLocation TEXT, SyncFields INTEGER NOT NULL, AutoSaveLog BOOLEAN NOT NULL);"
|
"Custom7zLocation TEXT, SyncFields INTEGER NOT NULL, AutoSaveLog BOOLEAN NOT NULL, AutoRestore BOOLEAN NOT NULL, AutoMark BOOLEAN NOT NULL, SessionTracking BOOLEAN NOT NULL, " &
|
||||||
|
"SuppressMessages INTEGER NOT NULL, BackupOnLaunch BOOLEAN NOT NULL, UseGameID BOOLEAN NOT NULL, DisableSyncMessages BOOLEAN NOT NULL);"
|
||||||
|
|
||||||
|
'Add Tables (SavedPath)
|
||||||
|
sSql &= "CREATE TABLE savedpath (PathName TEXT NOT NULL PRIMARY KEY, Path TEXT NOT NULL);"
|
||||||
|
|
||||||
'Add Tables (Monitor List)
|
'Add Tables (Monitor List)
|
||||||
sSql &= "CREATE TABLE monitorlist (MonitorID TEXT NOT NULL UNIQUE, Name TEXT NOT NULL, Process TEXT NOT NULL, Path TEXT, " &
|
sSql &= "CREATE TABLE monitorlist (MonitorID TEXT NOT NULL PRIMARY KEY, Name TEXT NOT NULL, Process TEXT NOT NULL, Path TEXT, " &
|
||||||
"AbsolutePath BOOLEAN NOT NULL, FolderSave BOOLEAN NOT NULL, FileType TEXT, TimeStamp BOOLEAN NOT NULL, ExcludeList TEXT NOT NULL, " &
|
"AbsolutePath BOOLEAN NOT NULL, FolderSave BOOLEAN NOT NULL, FileType TEXT, TimeStamp BOOLEAN NOT NULL, ExcludeList TEXT NOT NULL, " &
|
||||||
"ProcessPath TEXT, Icon TEXT, Hours REAL, Version TEXT, Company TEXT, Enabled BOOLEAN NOT NULL, MonitorOnly BOOLEAN NOT NULL, " &
|
"ProcessPath TEXT, Icon TEXT, Hours REAL, Version TEXT, Company TEXT, Enabled BOOLEAN NOT NULL, MonitorOnly BOOLEAN NOT NULL, " &
|
||||||
"BackupLimit INTEGER NOT NULL, PRIMARY KEY(Name, Process));"
|
"BackupLimit INTEGER NOT NULL, CleanFolder BOOLEAN NOT NULL, Parameter TEXT, Comments TEXT, IsRegEx BOOLEAN NOT NULL);"
|
||||||
|
|
||||||
'Add Tables (Tags)
|
'Add Tables (Tags)
|
||||||
sSql &= "CREATE TABLE tags (TagID TEXT NOT NULL UNIQUE, Name TEXT NOT NULL PRIMARY KEY); "
|
sSql &= "CREATE TABLE tags (TagID TEXT NOT NULL UNIQUE, Name TEXT NOT NULL PRIMARY KEY); "
|
||||||
@@ -92,8 +96,17 @@ Public Class mgrSQLite
|
|||||||
sSql &= "CREATE TABLE variables (VariableID TEXT NOT NULL UNIQUE, Name TEXT NOT NULL PRIMARY KEY, Path TEXT NOT NULL);"
|
sSql &= "CREATE TABLE variables (VariableID TEXT NOT NULL UNIQUE, Name TEXT NOT NULL PRIMARY KEY, Path TEXT NOT NULL);"
|
||||||
|
|
||||||
'Add Tables (Local Manifest)
|
'Add Tables (Local Manifest)
|
||||||
sSql &= "CREATE TABLE manifest (ManifestID TEXT NOT NULL PRIMARY KEY, Name TEXT NOT NULL, FileName TEXT NOT NULL, RestorePath TEXT NOT NULL, " &
|
sSql &= "CREATE TABLE manifest (ManifestID TEXT NOT NULL PRIMARY KEY, MonitorID TEXT NOT NULL, FileName TEXT NOT NULL, " &
|
||||||
"AbsolutePath BOOLEAN NOT NULL, DateUpdated TEXT NOT NULL, UpdatedBy TEXT NOT NULL, CheckSum TEXT);"
|
"DateUpdated TEXT NOT NULL, UpdatedBy TEXT NOT NULL, CheckSum TEXT);"
|
||||||
|
|
||||||
|
'Add Tables (Sessions)
|
||||||
|
sSql &= "CREATE TABLE sessions (MonitorID TEXT NOT NULL, Start INTEGER NOT NULL, End INTEGER NOT NULL, PRIMARY KEY(MonitorID, Start));"
|
||||||
|
|
||||||
|
'Add Tables (Processes)
|
||||||
|
sSql &= "CREATE TABLE processes (ProcessID TEXT NOT NULL PRIMARY KEY, Name Text NOT NULL, Path TEXT NOT NULL, Args TEXT, Kill BOOLEAN NOT NULL);"
|
||||||
|
|
||||||
|
'Add Tables (Game Processes)
|
||||||
|
sSql &= "CREATE TABLE gameprocesses (ProcessID TEXT NOT NULL, MonitorID TEXT NOT NULL, PRIMARY KEY(ProcessID, MonitorID));"
|
||||||
|
|
||||||
'Set Version
|
'Set Version
|
||||||
sSql &= "PRAGMA user_version=" & mgrCommon.AppVersion
|
sSql &= "PRAGMA user_version=" & mgrCommon.AppVersion
|
||||||
@@ -114,14 +127,14 @@ Public Class mgrSQLite
|
|||||||
SqliteConnection.CreateFile(sDatabaseLocation)
|
SqliteConnection.CreateFile(sDatabaseLocation)
|
||||||
|
|
||||||
'Add Tables (Remote Monitor List)
|
'Add Tables (Remote Monitor List)
|
||||||
sSql = "CREATE TABLE monitorlist (MonitorID TEXT NOT NULL UNIQUE, Name TEXT NOT NULL, Process TEXT NOT NULL, Path TEXT, " &
|
sSql = "CREATE TABLE monitorlist (MonitorID TEXT NOT NULL PRIMARY KEY, Name TEXT NOT NULL, Process TEXT NOT NULL, Path TEXT, " &
|
||||||
"AbsolutePath BOOLEAN NOT NULL, FolderSave BOOLEAN NOT NULL, FileType TEXT, TimeStamp BOOLEAN NOT NULL, ExcludeList TEXT NOT NULL, " &
|
"AbsolutePath BOOLEAN NOT NULL, FolderSave BOOLEAN NOT NULL, FileType TEXT, TimeStamp BOOLEAN NOT NULL, ExcludeList TEXT NOT NULL, " &
|
||||||
"ProcessPath TEXT, Icon TEXT, Hours REAL, Version TEXT, Company TEXT, Enabled BOOLEAN NOT NULL, MonitorOnly BOOLEAN NOT NULL, " &
|
"ProcessPath TEXT, Icon TEXT, Hours REAL, Version TEXT, Company TEXT, Enabled BOOLEAN NOT NULL, MonitorOnly BOOLEAN NOT NULL, " &
|
||||||
"BackupLimit INTEGER NOT NULL, PRIMARY KEY(Name, Process));"
|
"BackupLimit INTEGER NOT NULL, CleanFolder BOOLEAN NOT NULL, Parameter TEXT, Comments TEXT, IsRegEx BOOLEAN NOT NULL);"
|
||||||
|
|
||||||
'Add Tables (Remote Manifest)
|
'Add Tables (Remote Manifest)
|
||||||
sSql &= "CREATE TABLE manifest (ManifestID TEXT NOT NULL PRIMARY KEY, Name TEXT NOT NULL, FileName TEXT NOT NULL, RestorePath TEXT NOT NULL, " &
|
sSql &= "CREATE TABLE manifest (ManifestID TEXT NOT NULL PRIMARY KEY, MonitorID TEXT NOT NULL, FileName TEXT NOT NULL, " &
|
||||||
"AbsolutePath BOOLEAN NOT NULL, DateUpdated TEXT NOT NULL, UpdatedBy TEXT NOT NULL, CheckSum TEXT);"
|
"DateUpdated TEXT NOT NULL, UpdatedBy TEXT NOT NULL, CheckSum TEXT);"
|
||||||
|
|
||||||
'Add Tables (Remote Tags)
|
'Add Tables (Remote Tags)
|
||||||
sSql &= "CREATE TABLE tags (TagID TEXT NOT NULL UNIQUE, Name TEXT NOT NULL PRIMARY KEY); "
|
sSql &= "CREATE TABLE tags (TagID TEXT NOT NULL UNIQUE, Name TEXT NOT NULL PRIMARY KEY); "
|
||||||
@@ -167,6 +180,15 @@ Public Class mgrSQLite
|
|||||||
db.Close()
|
db.Close()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub RollBack(ByRef trans As SqliteTransaction)
|
||||||
|
Try
|
||||||
|
trans.Rollback()
|
||||||
|
Catch
|
||||||
|
'SQLite may or may not perform an auto-rollback when certain failures occur, such as disk full or out of memory.
|
||||||
|
'Multiple rollbacks will cause an exception, therefore lets just do nothing when that happens.
|
||||||
|
End Try
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub BuildParams(ByRef command As SqliteCommand, ByRef hshParams As Hashtable)
|
Private Sub BuildParams(ByRef command As SqliteCommand, ByRef hshParams As Hashtable)
|
||||||
For Each de As DictionaryEntry In hshParams
|
For Each de As DictionaryEntry In hshParams
|
||||||
command.Parameters.AddWithValue(de.Key, de.Value)
|
command.Parameters.AddWithValue(de.Key, de.Value)
|
||||||
@@ -186,7 +208,7 @@ Public Class mgrSQLite
|
|||||||
command.ExecuteNonQuery()
|
command.ExecuteNonQuery()
|
||||||
trans.Commit()
|
trans.Commit()
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
trans.Rollback()
|
RollBack(trans)
|
||||||
mgrCommon.ShowMessage(mgrSQLite_ErrorQueryFailure, New String() {sSQL, ex.Message}, MsgBoxStyle.Exclamation)
|
mgrCommon.ShowMessage(mgrSQLite_ErrorQueryFailure, New String() {sSQL, ex.Message}, MsgBoxStyle.Exclamation)
|
||||||
Return False
|
Return False
|
||||||
Finally
|
Finally
|
||||||
@@ -212,7 +234,7 @@ Public Class mgrSQLite
|
|||||||
Next
|
Next
|
||||||
trans.Commit()
|
trans.Commit()
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
trans.Rollback()
|
RollBack(trans)
|
||||||
mgrCommon.ShowMessage(mgrSQLite_ErrorQueryFailure, New String() {sSQL, ex.Message}, MsgBoxStyle.Exclamation)
|
mgrCommon.ShowMessage(mgrSQLite_ErrorQueryFailure, New String() {sSQL, ex.Message}, MsgBoxStyle.Exclamation)
|
||||||
Return False
|
Return False
|
||||||
Finally
|
Finally
|
||||||
@@ -246,6 +268,27 @@ Public Class mgrSQLite
|
|||||||
Return oData
|
Return oData
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Function ReadSingleValue(ByVal sSQL As String, ByVal hshParams As Hashtable) As Object
|
||||||
|
|
||||||
|
Dim command As SqliteCommand
|
||||||
|
Dim oResult As New Object
|
||||||
|
|
||||||
|
Connect()
|
||||||
|
command = New SqliteCommand(sSQL, db)
|
||||||
|
BuildParams(command, hshParams)
|
||||||
|
|
||||||
|
Try
|
||||||
|
oResult = command.ExecuteScalar()
|
||||||
|
Catch ex As Exception
|
||||||
|
mgrCommon.ShowMessage(mgrSQLite_ErrorQueryFailure, New String() {sSQL, ex.Message}, MsgBoxStyle.Information)
|
||||||
|
Finally
|
||||||
|
command.Dispose()
|
||||||
|
Disconnect()
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Return oResult
|
||||||
|
End Function
|
||||||
|
|
||||||
Private Function GetDatabaseVersion() As Integer
|
Private Function GetDatabaseVersion() As Integer
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
Dim iVer As Integer
|
Dim iVer As Integer
|
||||||
@@ -600,6 +643,211 @@ Public Class mgrSQLite
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
'1.01 Upgrade
|
||||||
|
If GetDatabaseVersion() < 101 Then
|
||||||
|
If eDatabase = Database.Local Then
|
||||||
|
'Backup DB before starting
|
||||||
|
BackupDB("v98")
|
||||||
|
|
||||||
|
'Remove checksum field
|
||||||
|
sSQL = "CREATE TABLE settings_new (SettingsID INTEGER NOT NULL PRIMARY KEY, MonitorOnStartup BOOLEAN NOT NULL, StartToTray BOOLEAN NOT NULL, ShowDetectionToolTips BOOLEAN NOT NULL, " &
|
||||||
|
"DisableConfirmation BOOLEAN NOT NULL, CreateSubFolder BOOLEAN NOT NULL, ShowOverwriteWarning BOOLEAN NOT NULL, RestoreOnLaunch BOOLEAN NOT NULL, " &
|
||||||
|
"BackupFolder TEXT NOT NULL, Sync BOOLEAN NOT NULL, StartWithWindows BOOLEAN NOT NULL, TimeTracking BOOLEAN NOT NULL, " &
|
||||||
|
"SupressBackup BOOLEAN NOT NULL, SupressBackupThreshold INTEGER NOT NULL, CompressionLevel INTEGER NOT NULL, Custom7zArguments TEXT, " &
|
||||||
|
"Custom7zLocation TEXT, SyncFields INTEGER NOT NULL, AutoSaveLog BOOLEAN NOT NULL);"
|
||||||
|
sSQL &= "INSERT INTO settings_new (SettingsID, MonitorOnStartup, StartToTray, ShowDetectionToolTips, DisableConfirmation, CreateSubFolder, " &
|
||||||
|
"ShowOverwriteWarning, RestoreOnLaunch, BackupFolder, Sync, StartWithWindows, TimeTracking, SupressBackup, SupressBackupThreshold, " &
|
||||||
|
"CompressionLevel, Custom7zArguments, Custom7zLocation, SyncFields, AutoSaveLog) " &
|
||||||
|
"SELECT SettingsID, MonitorOnStartup, StartToTray, ShowDetectionToolTips, DisableConfirmation, CreateSubFolder, " &
|
||||||
|
"ShowOverwriteWarning, RestoreOnLaunch, BackupFolder, Sync, StartWithWindows, TimeTracking, SupressBackup, SupressBackupThreshold, " &
|
||||||
|
"CompressionLevel, Custom7zArguments, Custom7zLocation, SyncFields, AutoSaveLog FROM settings;" &
|
||||||
|
"DROP TABLE settings; ALTER TABLE settings_new RENAME TO settings;"
|
||||||
|
'Add new field(s)
|
||||||
|
sSQL &= "ALTER TABLE monitorlist ADD COLUMN CleanFolder BOOLEAN NOT NULL DEFAULT 0;"
|
||||||
|
sSQL &= "ALTER TABLE settings ADD COLUMN AutoRestore BOOLEAN NOT NULL DEFAULT 0;"
|
||||||
|
sSQL &= "ALTER TABLE settings ADD COLUMN AutoMark BOOLEAN NOT NULL DEFAULT 0;"
|
||||||
|
sSQL &= "PRAGMA user_version=101"
|
||||||
|
|
||||||
|
RunParamQuery(sSQL, New Hashtable)
|
||||||
|
End If
|
||||||
|
If eDatabase = Database.Remote Then
|
||||||
|
'Backup DB before starting
|
||||||
|
BackupDB("v98")
|
||||||
|
|
||||||
|
'Add new field(s)
|
||||||
|
sSQL = "ALTER TABLE monitorlist ADD COLUMN CleanFolder BOOLEAN NOT NULL DEFAULT 0;"
|
||||||
|
sSQL &= "PRAGMA user_version=101"
|
||||||
|
|
||||||
|
RunParamQuery(sSQL, New Hashtable)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
'1.02 Upgrade
|
||||||
|
If GetDatabaseVersion() < 102 Then
|
||||||
|
If eDatabase = Database.Local Then
|
||||||
|
'Backup DB before starting
|
||||||
|
BackupDB("v101")
|
||||||
|
|
||||||
|
'Add Table (SavedPath)
|
||||||
|
sSQL = "CREATE TABLE savedpath (PathName TEXT NOT NULL PRIMARY KEY, Path TEXT NOT NULL);"
|
||||||
|
|
||||||
|
'Add new field(s)
|
||||||
|
sSQL &= "ALTER TABLE monitorlist ADD COLUMN Parameter TEXT;"
|
||||||
|
|
||||||
|
sSQL &= "PRAGMA user_version=102"
|
||||||
|
|
||||||
|
RunParamQuery(sSQL, New Hashtable)
|
||||||
|
End If
|
||||||
|
If eDatabase = Database.Remote Then
|
||||||
|
'Backup DB before starting
|
||||||
|
BackupDB("v101")
|
||||||
|
|
||||||
|
'Add new field(s)
|
||||||
|
sSQL = "ALTER TABLE monitorlist ADD COLUMN Parameter TEXT;"
|
||||||
|
|
||||||
|
sSQL &= "PRAGMA user_version=102"
|
||||||
|
|
||||||
|
RunParamQuery(sSQL, New Hashtable)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
'1.05 Upgrade
|
||||||
|
If GetDatabaseVersion() < 105 Then
|
||||||
|
If eDatabase = Database.Local Then
|
||||||
|
'Backup DB before starting
|
||||||
|
BackupDB("v102")
|
||||||
|
|
||||||
|
'Add Tables (Sessions)
|
||||||
|
sSQL = "CREATE TABLE sessions (MonitorID TEXT NOT NULL, Start INTEGER NOT NULL, End INTEGER NOT NULL, PRIMARY KEY(MonitorID, Start));"
|
||||||
|
|
||||||
|
'Add new field(s)
|
||||||
|
sSQL &= "ALTER TABLE monitorlist ADD COLUMN Comments TEXT;"
|
||||||
|
sSQL &= "ALTER TABLE settings ADD COLUMN SessionTracking BOOLEAN DEFAULT 0;"
|
||||||
|
|
||||||
|
sSQL &= "PRAGMA user_version=105"
|
||||||
|
|
||||||
|
RunParamQuery(sSQL, New Hashtable)
|
||||||
|
End If
|
||||||
|
If eDatabase = Database.Remote Then
|
||||||
|
'Backup DB before starting
|
||||||
|
BackupDB("v102")
|
||||||
|
|
||||||
|
'Add new field(s)
|
||||||
|
sSQL = "ALTER TABLE monitorlist ADD COLUMN Comments TEXT;"
|
||||||
|
|
||||||
|
sSQL &= "PRAGMA user_version=105"
|
||||||
|
|
||||||
|
RunParamQuery(sSQL, New Hashtable)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
'1.08 Upgrade
|
||||||
|
If GetDatabaseVersion() < 108 Then
|
||||||
|
If eDatabase = Database.Local Then
|
||||||
|
'Backup DB before starting
|
||||||
|
BackupDB("v105")
|
||||||
|
|
||||||
|
'Add new field(s)
|
||||||
|
sSQL = "ALTER TABLE monitorlist ADD COLUMN IsRegEx BOOLEAN NOT NULL DEFAULT 0;"
|
||||||
|
|
||||||
|
sSQL &= "PRAGMA user_version=108"
|
||||||
|
|
||||||
|
RunParamQuery(sSQL, New Hashtable)
|
||||||
|
End If
|
||||||
|
If eDatabase = Database.Remote Then
|
||||||
|
'Backup DB before starting
|
||||||
|
BackupDB("v105")
|
||||||
|
|
||||||
|
'Add new field(s)
|
||||||
|
sSQL = "ALTER TABLE monitorlist ADD COLUMN IsRegEx BOOLEAN NOT NULL DEFAULT 0;"
|
||||||
|
|
||||||
|
sSQL &= "PRAGMA user_version=108"
|
||||||
|
|
||||||
|
RunParamQuery(sSQL, New Hashtable)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
'1.10 Upgrade
|
||||||
|
If GetDatabaseVersion() < 110 Then
|
||||||
|
If eDatabase = Database.Local Then
|
||||||
|
'Backup DB before starting
|
||||||
|
BackupDB("v108")
|
||||||
|
|
||||||
|
'Add Tables
|
||||||
|
sSQL = "CREATE TABLE processes (ProcessID TEXT NOT NULL PRIMARY KEY, Name Text NOT NULL, Path TEXT NOT NULL, Args TEXT, Kill BOOLEAN NOT NULL);"
|
||||||
|
sSQL &= "CREATE TABLE gameprocesses (ProcessID TEXT NOT NULL, MonitorID TEXT NOT NULL, PRIMARY KEY(ProcessID, MonitorID));"
|
||||||
|
|
||||||
|
'Overhaul Tables
|
||||||
|
sSQL &= "CREATE TABLE settings_new (SettingsID INTEGER NOT NULL PRIMARY KEY, MonitorOnStartup BOOLEAN NOT NULL, StartToTray BOOLEAN NOT NULL, ShowDetectionToolTips BOOLEAN NOT NULL, " &
|
||||||
|
"DisableConfirmation BOOLEAN NOT NULL, CreateSubFolder BOOLEAN NOT NULL, ShowOverwriteWarning BOOLEAN NOT NULL, RestoreOnLaunch BOOLEAN NOT NULL, " &
|
||||||
|
"BackupFolder TEXT NOT NULL, StartWithWindows BOOLEAN NOT NULL, TimeTracking BOOLEAN NOT NULL, " &
|
||||||
|
"SuppressBackup BOOLEAN NOT NULL, SuppressBackupThreshold INTEGER NOT NULL, CompressionLevel INTEGER NOT NULL, Custom7zArguments TEXT, " &
|
||||||
|
"Custom7zLocation TEXT, SyncFields INTEGER NOT NULL, AutoSaveLog BOOLEAN NOT NULL, AutoRestore BOOLEAN NOT NULL, AutoMark BOOLEAN NOT NULL, SessionTracking BOOLEAN NOT NULL, " &
|
||||||
|
"SuppressMessages INTEGER NOT NULL, BackupOnLaunch BOOLEAN NOT NULL, UseGameID BOOLEAN NOT NULL, DisableSyncMessages BOOLEAN NOT NULL);"
|
||||||
|
sSQL &= "INSERT INTO settings_new(SettingsID, MonitorOnStartup, StartToTray, ShowDetectionToolTips, DisableConfirmation, CreateSubFolder, ShowOverwriteWarning, RestoreOnLaunch, " &
|
||||||
|
"BackupFolder, StartWithWindows, TimeTracking, SuppressBackup, SuppressBackupThreshold, CompressionLevel, Custom7zArguments, Custom7zLocation, SyncFields, AutoSaveLog, " &
|
||||||
|
"AutoRestore, AutoMark, SessionTracking, SuppressMessages, BackupOnLaunch, UseGameID, DisableSyncMessages) SELECT SettingsID, MonitorOnStartup, StartToTray, ShowDetectionToolTips, DisableConfirmation, CreateSubFolder, ShowOverwriteWarning, RestoreOnLaunch, " &
|
||||||
|
"BackupFolder, StartWithWindows, TimeTracking, SupressBackup, SupressBackupThreshold, CompressionLevel, Custom7zArguments, Custom7zLocation, SyncFields, AutoSaveLog, " &
|
||||||
|
"AutoRestore, AutoMark, SessionTracking, 0, 1, 0, 1 FROM settings;" &
|
||||||
|
"DROP TABLE settings; ALTER TABLE settings_new RENAME TO settings;"
|
||||||
|
sSQL &= "CREATE TABLE monitorlist_new (MonitorID TEXT NOT NULL PRIMARY KEY, Name TEXT NOT NULL, Process TEXT NOT NULL, Path TEXT, " &
|
||||||
|
"AbsolutePath BOOLEAN NOT NULL, FolderSave BOOLEAN NOT NULL, FileType TEXT, TimeStamp BOOLEAN NOT NULL, ExcludeList TEXT NOT NULL, " &
|
||||||
|
"ProcessPath TEXT, Icon TEXT, Hours REAL, Version TEXT, Company TEXT, Enabled BOOLEAN NOT NULL, MonitorOnly BOOLEAN NOT NULL, " &
|
||||||
|
"BackupLimit INTEGER NOT NULL, CleanFolder BOOLEAN NOT NULL, Parameter TEXT, Comments TEXT, IsRegEx BOOLEAN NOT NULL);"
|
||||||
|
sSQL &= "INSERT INTO monitorlist_new (MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, " &
|
||||||
|
"ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit, CleanFolder, Parameter, Comments, IsRegEx)" &
|
||||||
|
"SELECT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, " &
|
||||||
|
"ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit, CleanFolder, Parameter, Comments, IsRegEx FROM monitorlist;" &
|
||||||
|
"DROP TABLE monitorlist; ALTER TABLE monitorlist_new RENAME TO monitorlist;"
|
||||||
|
sSQL &= "CREATE TABLE manifest_new (ManifestID TEXT NOT NULL PRIMARY KEY, MonitorID TEXT NOT NULL, FileName TEXT NOT NULL, " &
|
||||||
|
"DateUpdated TEXT NOT NULL, UpdatedBy TEXT NOT NULL, CheckSum TEXT);"
|
||||||
|
sSQL &= "INSERT INTO manifest_new (ManifestID, MonitorID, FileName, DateUpdated, UpdatedBy, CheckSum) " &
|
||||||
|
"SELECT ManifestID, MonitorID, FileName, DateUpdated, UpdatedBy, CheckSum FROM manifest NATURAL JOIN monitorlist GROUP BY ManifestID;" &
|
||||||
|
"DROP TABLE manifest; ALTER TABLE manifest_new RENAME TO manifest;"
|
||||||
|
|
||||||
|
sSQL &= "PRAGMA user_version=110"
|
||||||
|
|
||||||
|
RunParamQuery(sSQL, New Hashtable)
|
||||||
|
|
||||||
|
CompactDatabase()
|
||||||
|
|
||||||
|
End If
|
||||||
|
If eDatabase = Database.Remote Then
|
||||||
|
'Backup DB before starting
|
||||||
|
BackupDB("v108")
|
||||||
|
|
||||||
|
'Overhaul Tables
|
||||||
|
sSQL = "CREATE TABLE monitorlist_new (MonitorID TEXT NOT NULL PRIMARY KEY, Name TEXT NOT NULL, Process TEXT NOT NULL, Path TEXT, " &
|
||||||
|
"AbsolutePath BOOLEAN NOT NULL, FolderSave BOOLEAN NOT NULL, FileType TEXT, TimeStamp BOOLEAN NOT NULL, ExcludeList TEXT NOT NULL, " &
|
||||||
|
"ProcessPath TEXT, Icon TEXT, Hours REAL, Version TEXT, Company TEXT, Enabled BOOLEAN NOT NULL, MonitorOnly BOOLEAN NOT NULL, " &
|
||||||
|
"BackupLimit INTEGER NOT NULL, CleanFolder BOOLEAN NOT NULL, Parameter TEXT, Comments TEXT, IsRegEx BOOLEAN NOT NULL);"
|
||||||
|
sSQL &= "INSERT INTO monitorlist_new (MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, " &
|
||||||
|
"ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit, CleanFolder, Parameter, Comments, IsRegEx)" &
|
||||||
|
"SELECT MonitorID, Name, Process, Path, AbsolutePath, FolderSave, FileType, TimeStamp, ExcludeList, " &
|
||||||
|
"ProcessPath, Icon, Hours, Version, Company, Enabled, MonitorOnly, BackupLimit, CleanFolder, Parameter, Comments, IsRegEx FROM monitorlist;" &
|
||||||
|
"DROP TABLE monitorlist; ALTER TABLE monitorlist_new RENAME TO monitorlist;"
|
||||||
|
|
||||||
|
'We need to push the local game list against the remote database in case they had syncing disabled
|
||||||
|
Dim hshMonitorList As Hashtable = mgrMonitorList.ReadList(mgrMonitorList.eListTypes.FullList, mgrSQLite.Database.Local)
|
||||||
|
Dim oSettings As New mgrSettings
|
||||||
|
oSettings.LoadSettings()
|
||||||
|
mgrMonitorList.DoListAddUpdateSync(hshMonitorList, Database.Remote, oSettings.SyncFields)
|
||||||
|
mgrTags.SyncTags(True)
|
||||||
|
mgrGameTags.SyncGameTags(True)
|
||||||
|
|
||||||
|
sSQL &= "CREATE TABLE manifest_new (ManifestID TEXT NOT NULL PRIMARY KEY, MonitorID TEXT NOT NULL, FileName TEXT NOT NULL, " &
|
||||||
|
"DateUpdated TEXT NOT NULL, UpdatedBy TEXT NOT NULL, CheckSum TEXT);"
|
||||||
|
sSQL &= "INSERT INTO manifest_new (ManifestID, MonitorID, FileName, DateUpdated, UpdatedBy, CheckSum) " &
|
||||||
|
"SELECT ManifestID, MonitorID, FileName, DateUpdated, UpdatedBy, CheckSum FROM manifest NATURAL JOIN monitorlist GROUP BY ManifestID;" &
|
||||||
|
"DROP TABLE manifest; ALTER TABLE manifest_new RENAME TO manifest;"
|
||||||
|
|
||||||
|
sSQL &= "PRAGMA user_version=110"
|
||||||
|
|
||||||
|
RunParamQuery(sSQL, New Hashtable)
|
||||||
|
|
||||||
|
CompactDatabase()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Function GetDBSize() As Long
|
Public Function GetDBSize() As Long
|
||||||
@@ -607,6 +855,10 @@ Public Class mgrSQLite
|
|||||||
Return Math.Round(oFileInfo.Length / 1024, 2)
|
Return Math.Round(oFileInfo.Length / 1024, 2)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Function ReportVersion() As String
|
||||||
|
Return SqliteConnection.SQLiteVersion
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Sub CompactDatabase()
|
Public Sub CompactDatabase()
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
Dim command As SQLiteCommand
|
Dim command As SQLiteCommand
|
||||||
|
|||||||
@@ -0,0 +1,54 @@
|
|||||||
|
Public Class mgrSavedPath
|
||||||
|
|
||||||
|
|
||||||
|
Private Shared Function MapToObject(ByVal dr As DataRow) As clsSavedPath
|
||||||
|
Dim oSavedPath As New clsSavedPath
|
||||||
|
|
||||||
|
oSavedPath.PathName = CStr(dr("PathName"))
|
||||||
|
oSavedPath.Path = CStr(dr("Path"))
|
||||||
|
|
||||||
|
Return oSavedPath
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Shared Function SetCoreParameters(ByVal oSavedPath As clsSavedPath) As Hashtable
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
|
hshParams.Add("PathName", oSavedPath.PathName)
|
||||||
|
hshParams.Add("Path", oSavedPath.Path)
|
||||||
|
|
||||||
|
Return hshParams
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function GetPathByName(ByVal sPathName As String) As clsSavedPath
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim oData As DataSet
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
Dim oSavedPath As New clsSavedPath
|
||||||
|
|
||||||
|
sSQL = "SELECT PathName, Path from savedpath WHERE PathName=@PathName;"
|
||||||
|
|
||||||
|
hshParams.Add("PathName", sPathName)
|
||||||
|
|
||||||
|
oData = oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
|
|
||||||
|
For Each dr As DataRow In oData.Tables(0).Rows
|
||||||
|
oSavedPath = MapToObject(dr)
|
||||||
|
Next
|
||||||
|
|
||||||
|
Return oSavedPath
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Sub AddUpdatePath(ByVal oSavedPath As clsSavedPath)
|
||||||
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As Hashtable
|
||||||
|
|
||||||
|
sSQL = "INSERT OR REPLACE INTO savedpath (PathName, Path) VALUES (@PathName, @Path);"
|
||||||
|
|
||||||
|
hshParams = SetCoreParameters(oSavedPath)
|
||||||
|
|
||||||
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -0,0 +1,257 @@
|
|||||||
|
Imports GBM.My.Resources
|
||||||
|
Imports System.IO
|
||||||
|
Imports System.Xml.Serialization
|
||||||
|
|
||||||
|
Public Class mgrSessions
|
||||||
|
|
||||||
|
Private Shared Function MapToObject(ByVal dr As DataRow) As clsSession
|
||||||
|
Dim oSession As New clsSession
|
||||||
|
|
||||||
|
oSession.MonitorID = CStr(dr("MonitorID"))
|
||||||
|
oSession.SessionStart = CInt(dr("Start"))
|
||||||
|
oSession.SessionEnd = CInt(dr("End"))
|
||||||
|
|
||||||
|
Return oSession
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Shared Function SetCoreParameters(ByVal oSession As clsSession) As Hashtable
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
|
hshParams.Add("MonitorID", oSession.MonitorID)
|
||||||
|
hshParams.Add("Start", oSession.SessionStart)
|
||||||
|
hshParams.Add("End", oSession.SessionEnd)
|
||||||
|
|
||||||
|
Return hshParams
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Sub AddSession(ByVal oSession As clsSession, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local)
|
||||||
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As Hashtable
|
||||||
|
|
||||||
|
sSQL = "INSERT INTO sessions (MonitorID, Start, End) VALUES (@MonitorID, @Start, @End);"
|
||||||
|
|
||||||
|
hshParams = SetCoreParameters(oSession)
|
||||||
|
|
||||||
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Shared Function GetSessions(Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local) As DataSet
|
||||||
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
|
sSQL = "SELECT sessions.MonitorID, monitorlist.Name, Start, End FROM sessions NATURAL JOIN monitorlist;"
|
||||||
|
|
||||||
|
Return oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function GetSessionRange(ByVal dtStart As DateTime, ByVal dtEnd As DateTime, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local) As DataSet
|
||||||
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
|
sSQL = "SELECT sessions.MonitorID, monitorlist.Name, Start, End FROM sessions NATURAL JOIN monitorlist WHERE Start >= @Start AND End <= @End;"
|
||||||
|
|
||||||
|
hshParams.Add("Start", mgrCommon.DateToUnix(dtStart))
|
||||||
|
hshParams.Add("End", mgrCommon.DateToUnix(dtEnd))
|
||||||
|
|
||||||
|
Return oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function GetSessionsByGameNameAndRange(ByVal sGameName As String, ByVal dtStart As DateTime, ByVal dtEnd As DateTime, Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local) As DataSet
|
||||||
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
|
sSQL = "SELECT sessions.MonitorID, monitorlist.Name, Start, End FROM sessions NATURAL JOIN monitorlist WHERE monitorlist.Name LIKE @Name AND (Start >= @Start AND End <= @End);"
|
||||||
|
|
||||||
|
hshParams.Add("Name", "%" & sGameName & "%")
|
||||||
|
hshParams.Add("Start", mgrCommon.DateToUnix(dtStart))
|
||||||
|
hshParams.Add("End", mgrCommon.DateToUnix(dtEnd))
|
||||||
|
|
||||||
|
Return oDatabase.ReadParamData(sSQL, hshParams)
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Sub DeleteSession(ByVal oSessions As List(Of clsSession), Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local)
|
||||||
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As Hashtable
|
||||||
|
Dim oParamList As New List(Of Hashtable)
|
||||||
|
|
||||||
|
sSQL = "DELETE FROM sessions WHERE MonitorID = @MonitorID AND Start = @Start;"
|
||||||
|
|
||||||
|
For Each oSession As clsSession In oSessions
|
||||||
|
hshParams = New Hashtable
|
||||||
|
hshParams.Add("MonitorID", oSession.MonitorID)
|
||||||
|
hshParams.Add("Start", oSession.SessionStart)
|
||||||
|
oParamList.Add(hshParams)
|
||||||
|
Next
|
||||||
|
|
||||||
|
oDatabase.RunMassParamQuery(sSQL, oParamList)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Shared Function GetMinimumDateTime(Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local) As DateTime
|
||||||
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
Dim iUnixDate As Int64
|
||||||
|
|
||||||
|
sSQL = "SELECT Start FROM sessions ORDER BY Start ASC LIMIT 1"
|
||||||
|
|
||||||
|
iUnixDate = CInt(oDatabase.ReadSingleValue(sSQL, hshParams))
|
||||||
|
Return mgrCommon.UnixToDate(iUnixDate)
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function GetMaximumDateTime(Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local) As DateTime
|
||||||
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
Dim iUnixDate As Int64
|
||||||
|
|
||||||
|
sSQL = "SELECT End FROM sessions ORDER BY Start DESC LIMIT 1"
|
||||||
|
|
||||||
|
iUnixDate = CInt(oDatabase.ReadSingleValue(sSQL, hshParams))
|
||||||
|
Return mgrCommon.UnixToDate(iUnixDate)
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function CountRows(Optional ByVal iSelectDB As mgrSQLite.Database = mgrSQLite.Database.Local) As Integer
|
||||||
|
Dim oDatabase As New mgrSQLite(iSelectDB)
|
||||||
|
Dim sSQL As String
|
||||||
|
Dim hshParams As New Hashtable
|
||||||
|
Dim iRowCount As Integer
|
||||||
|
|
||||||
|
sSQL = "SELECT COUNT(MonitorID) FROM sessions;"
|
||||||
|
|
||||||
|
iRowCount = CInt(oDatabase.ReadSingleValue(sSQL, hshParams))
|
||||||
|
|
||||||
|
Return iRowCount
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Shared Function EscapeCSV(ByVal sItem As String) As String
|
||||||
|
Dim bEnclose As Boolean = False
|
||||||
|
|
||||||
|
If sItem.Contains("""") Then
|
||||||
|
sItem = sItem.Replace("""", """""")
|
||||||
|
bEnclose = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
If sItem.Contains(",") Then
|
||||||
|
bEnclose = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
If sItem.Contains(vbCrLf) Or sItem.Contains(vbCr) Or sItem.Contains(vbLf) Then
|
||||||
|
bEnclose = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
If bEnclose Then
|
||||||
|
sItem = """" & sItem & """"
|
||||||
|
End If
|
||||||
|
|
||||||
|
Return sItem
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function ExportAsCSV(ByVal sLocation As String, ByVal bUnixTime As Boolean, ByVal bHeaders As Boolean, ByRef dg As DataGridView) As Boolean
|
||||||
|
Dim oWriter As StreamWriter
|
||||||
|
Dim sHeader As String
|
||||||
|
Dim sCurrentRow As String
|
||||||
|
Dim oBannedColumns As New List(Of DataGridViewColumn)
|
||||||
|
|
||||||
|
Try
|
||||||
|
oWriter = New StreamWriter(sLocation)
|
||||||
|
|
||||||
|
'Set Ban Columns
|
||||||
|
oBannedColumns.Add(dg.Columns("MonitorID"))
|
||||||
|
|
||||||
|
If bUnixTime Then
|
||||||
|
oBannedColumns.Add(dg.Columns("Start"))
|
||||||
|
oBannedColumns.Add(dg.Columns("End"))
|
||||||
|
Else
|
||||||
|
oBannedColumns.Add(dg.Columns("StartUnix"))
|
||||||
|
oBannedColumns.Add(dg.Columns("EndUnix"))
|
||||||
|
End If
|
||||||
|
|
||||||
|
'Handle Headers
|
||||||
|
If bHeaders Then
|
||||||
|
sHeader = String.Empty
|
||||||
|
For Each dgCol As DataGridViewColumn In dg.Columns
|
||||||
|
If Not oBannedColumns.Contains(dgCol) Then
|
||||||
|
sHeader &= dgCol.HeaderText & ","
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
sHeader = sHeader.TrimEnd(",")
|
||||||
|
|
||||||
|
oWriter.WriteLine(sHeader)
|
||||||
|
End If
|
||||||
|
|
||||||
|
'Handle Rows
|
||||||
|
For Each dgRow As DataGridViewRow In dg.Rows
|
||||||
|
sCurrentRow = String.Empty
|
||||||
|
For Each dgCell As DataGridViewCell In dgRow.Cells
|
||||||
|
If Not oBannedColumns.Contains(dg.Columns(dgCell.ColumnIndex)) Then
|
||||||
|
sCurrentRow &= EscapeCSV(dgCell.Value.ToString) & ","
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
sCurrentRow = sCurrentRow.TrimEnd(",")
|
||||||
|
|
||||||
|
'Don't write a LF on the last row
|
||||||
|
If dg.Rows.Count = (dgRow.Index + 1) Then
|
||||||
|
oWriter.Write(sCurrentRow)
|
||||||
|
Else
|
||||||
|
oWriter.WriteLine(sCurrentRow)
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
'Finish up
|
||||||
|
oWriter.Flush()
|
||||||
|
oWriter.Close()
|
||||||
|
|
||||||
|
mgrCommon.ShowMessage(mgrSessions_ExportSuccess, MsgBoxStyle.Information)
|
||||||
|
Return True
|
||||||
|
Catch ex As Exception
|
||||||
|
mgrCommon.ShowMessage(mgrSessions_ErrorExportFailure, ex.Message, MsgBoxStyle.Exclamation)
|
||||||
|
Return False
|
||||||
|
End Try
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function ExportAsXML(ByVal sLocation As String, ByVal bUnixTime As Boolean, ByRef dg As DataGridView) As Boolean
|
||||||
|
Dim oSerializer As XmlSerializer
|
||||||
|
Dim oWriter As StreamWriter
|
||||||
|
Dim oCurrentSession As Session
|
||||||
|
Dim oSessions As New List(Of Session)
|
||||||
|
Dim oBannedColumns As New List(Of DataGridViewColumn)
|
||||||
|
|
||||||
|
Try
|
||||||
|
'Format data for export
|
||||||
|
For Each dgRow As DataGridViewRow In dg.Rows
|
||||||
|
oCurrentSession = New Session
|
||||||
|
oCurrentSession.GameName = dgRow.Cells("Name").Value.ToString
|
||||||
|
If bUnixTime Then
|
||||||
|
oCurrentSession.StartDate = dgRow.Cells("StartUnix").Value.ToString
|
||||||
|
oCurrentSession.EndDate = dgRow.Cells("EndUnix").Value.ToString
|
||||||
|
Else
|
||||||
|
oCurrentSession.StartDate = dgRow.Cells("Start").Value.ToString
|
||||||
|
oCurrentSession.EndDate = dgRow.Cells("End").Value.ToString
|
||||||
|
End If
|
||||||
|
oCurrentSession.Hours = dgRow.Cells("Hours").Value.ToString
|
||||||
|
oSessions.Add(oCurrentSession)
|
||||||
|
Next
|
||||||
|
|
||||||
|
'Serialize
|
||||||
|
oSerializer = New XmlSerializer(oSessions.GetType, New XmlRootAttribute("Sessions"))
|
||||||
|
oWriter = New StreamWriter(sLocation)
|
||||||
|
oSerializer.Serialize(oWriter.BaseStream, oSessions)
|
||||||
|
|
||||||
|
'Finish up
|
||||||
|
oWriter.Flush()
|
||||||
|
oWriter.Close()
|
||||||
|
|
||||||
|
mgrCommon.ShowMessage(mgrSessions_ExportSuccess, MsgBoxStyle.Information)
|
||||||
|
Return True
|
||||||
|
Catch ex As Exception
|
||||||
|
mgrCommon.ShowMessage(mgrSessions_ErrorExportFailure, ex.Message, MsgBoxStyle.Exclamation)
|
||||||
|
Return False
|
||||||
|
End Try
|
||||||
|
End Function
|
||||||
|
|
||||||
|
End Class
|
||||||
+110
-32
@@ -9,17 +9,27 @@ Public Class mgrSettings
|
|||||||
Private bCreateSubFolder As Boolean = False
|
Private bCreateSubFolder As Boolean = False
|
||||||
Private bShowOverwriteWarning As Boolean = True
|
Private bShowOverwriteWarning As Boolean = True
|
||||||
Private bRestoreOnLaunch As Boolean = False
|
Private bRestoreOnLaunch As Boolean = False
|
||||||
Private bSync As Boolean = True
|
Private bAutoRestore As Boolean = False
|
||||||
Private bCheckSum As Boolean = True
|
Private bAutoMark As Boolean = False
|
||||||
Private bTimeTracking As Boolean = True
|
Private bTimeTracking As Boolean = True
|
||||||
Private bSupressBackup As Boolean = False
|
Private bSessionTracking As Boolean = False
|
||||||
Private iSupressBackupThreshold As Integer = 10
|
Private bSuppressBackup As Boolean = False
|
||||||
|
Private iSuppressBackupThreshold As Integer = 10
|
||||||
Private iCompressionLevel As Integer = 5
|
Private iCompressionLevel As Integer = 5
|
||||||
Private s7zArguments As String = String.Empty
|
Private s7zArguments As String = String.Empty
|
||||||
Private s7zLocation As String = String.Empty
|
Private s7zLocation As String = String.Empty
|
||||||
Private sBackupFolder As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments).TrimEnd(New Char() {"\", "/"})
|
Private sBackupFolder As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments).TrimEnd(New Char() {"\", "/"})
|
||||||
Private eSyncFields As clsGame.eOptionalSyncFields = clsGame.eOptionalSyncFields.None Or clsGame.eOptionalSyncFields.TimeStamp
|
Private eSyncFields As clsGame.eOptionalSyncFields = clsGame.eOptionalSyncFields.None
|
||||||
|
Private eMessages As eSuppressMessages = eSuppressMessages.None
|
||||||
Private bAutoSaveLog As Boolean = False
|
Private bAutoSaveLog As Boolean = False
|
||||||
|
Private bBackupOnLaunch As Boolean = True
|
||||||
|
Private bUseGameID As Boolean = False
|
||||||
|
Private bDisableSyncMessages As Boolean = True
|
||||||
|
|
||||||
|
<Flags()> Public Enum eSuppressMessages
|
||||||
|
None = 0
|
||||||
|
GameIDSync = 1
|
||||||
|
End Enum
|
||||||
|
|
||||||
Property StartWithWindows As Boolean
|
Property StartWithWindows As Boolean
|
||||||
Get
|
Get
|
||||||
@@ -93,21 +103,21 @@ Public Class mgrSettings
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Property Sync As Boolean
|
Property AutoRestore As Boolean
|
||||||
Get
|
Get
|
||||||
Return bSync
|
Return bAutoRestore
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
bSync = value
|
bAutoRestore = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Property CheckSum As Boolean
|
Property AutoMark As Boolean
|
||||||
Get
|
Get
|
||||||
Return bCheckSum
|
Return bAutoMark
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
bCheckSum = value
|
bAutoMark = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -120,21 +130,30 @@ Public Class mgrSettings
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Property SupressBackup As Boolean
|
Property SessionTracking As Boolean
|
||||||
Get
|
Get
|
||||||
Return bSupressBackup
|
Return bSessionTracking
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
bSupressBackup = value
|
bSessionTracking = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Property SupressBackupThreshold As Integer
|
Property SuppressBackup As Boolean
|
||||||
Get
|
Get
|
||||||
Return iSupressBackupThreshold
|
Return bSuppressBackup
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bSuppressBackup = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Property SuppressBackupThreshold As Integer
|
||||||
|
Get
|
||||||
|
Return iSuppressBackupThreshold
|
||||||
End Get
|
End Get
|
||||||
Set(value As Integer)
|
Set(value As Integer)
|
||||||
iSupressBackupThreshold = value
|
iSuppressBackupThreshold = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -240,18 +259,57 @@ Public Class mgrSettings
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Property SuppressMessages As eSuppressMessages
|
||||||
|
Get
|
||||||
|
Return eMessages
|
||||||
|
End Get
|
||||||
|
Set(value As eSuppressMessages)
|
||||||
|
eMessages = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Property BackupOnLaunch As Boolean
|
||||||
|
Get
|
||||||
|
Return bBackupOnLaunch
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bBackupOnLaunch = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Property UseGameID As Boolean
|
||||||
|
Get
|
||||||
|
Return bUseGameID
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bUseGameID = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Property DisableSyncMessages As Boolean
|
||||||
|
Get
|
||||||
|
Return bDisableSyncMessages
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
bDisableSyncMessages = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Sub New()
|
||||||
|
'The GameIDsync message should be suppressed on all new databases
|
||||||
|
SuppressMessages = SetMessageField(SuppressMessages, eSuppressMessages.GameIDSync)
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub SaveFromClass()
|
Private Sub SaveFromClass()
|
||||||
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
|
||||||
Dim sSQL As String
|
Dim sSQL As String
|
||||||
Dim hshParams As New Hashtable
|
Dim hshParams As New Hashtable
|
||||||
|
|
||||||
sSQL = "DELETE FROM settings WHERE SettingsID = 1"
|
sSQL = "INSERT OR REPLACE INTO settings VALUES (1, @MonitorOnStartup, @StartToTray, @ShowDetectionToolTips, @DisableConfirmation, "
|
||||||
oDatabase.RunParamQuery(sSQL, New Hashtable)
|
sSQL &= "@CreateSubFolder, @ShowOverwriteWarning, @RestoreOnLaunch, @BackupFolder, @StartWithWindows, "
|
||||||
|
sSQL &= "@TimeTracking, @SuppressBackup, @SuppressBackupThreshold, @CompressionLevel, @Custom7zArguments, @Custom7zLocation, "
|
||||||
sSQL = "INSERT INTO settings VALUES (1, @MonitorOnStartup, @StartToTray, @ShowDetectionToolTips, @DisableConfirmation, "
|
sSQL &= "@SyncFields, @AutoSaveLog, @AutoRestore, @AutoMark, @SessionTracking, @SuppressMessages, @BackupOnLaunch, @UseGameID, "
|
||||||
sSQL &= "@CreateSubFolder, @ShowOverwriteWarning, @RestoreOnLaunch, @BackupFolder, @Sync, @CheckSum, @StartWithWindows, "
|
sSQL &= "@DisableSyncMessages)"
|
||||||
sSQL &= "@TimeTracking, @SupressBackup, @SupressBackupThreshold, @CompressionLevel, @Custom7zArguments, @Custom7zLocation, "
|
|
||||||
sSQL &= "@SyncFields,@AutoSaveLog)"
|
|
||||||
|
|
||||||
hshParams.Add("MonitorOnStartup", MonitorOnStartup)
|
hshParams.Add("MonitorOnStartup", MonitorOnStartup)
|
||||||
hshParams.Add("StartToTray", StartToTray)
|
hshParams.Add("StartToTray", StartToTray)
|
||||||
@@ -261,17 +319,23 @@ Public Class mgrSettings
|
|||||||
hshParams.Add("ShowOverwriteWarning", ShowOverwriteWarning)
|
hshParams.Add("ShowOverwriteWarning", ShowOverwriteWarning)
|
||||||
hshParams.Add("RestoreOnLaunch", RestoreOnLaunch)
|
hshParams.Add("RestoreOnLaunch", RestoreOnLaunch)
|
||||||
hshParams.Add("BackupFolder", BackupFolder)
|
hshParams.Add("BackupFolder", BackupFolder)
|
||||||
hshParams.Add("Sync", Sync)
|
|
||||||
hshParams.Add("CheckSum", CheckSum)
|
|
||||||
hshParams.Add("StartWithWindows", StartWithWindows)
|
hshParams.Add("StartWithWindows", StartWithWindows)
|
||||||
hshParams.Add("TimeTracking", TimeTracking)
|
hshParams.Add("TimeTracking", TimeTracking)
|
||||||
hshParams.Add("SupressBackup", SupressBackup)
|
hshParams.Add("SuppressBackup", SuppressBackup)
|
||||||
hshParams.Add("SupressBackupThreshold", SupressBackupThreshold)
|
hshParams.Add("SuppressBackupThreshold", SuppressBackupThreshold)
|
||||||
hshParams.Add("CompressionLevel", CompressionLevel)
|
hshParams.Add("CompressionLevel", CompressionLevel)
|
||||||
hshParams.Add("Custom7zArguments", Custom7zArguments)
|
hshParams.Add("Custom7zArguments", Custom7zArguments)
|
||||||
hshParams.Add("Custom7zLocation", Custom7zLocation)
|
hshParams.Add("Custom7zLocation", Custom7zLocation)
|
||||||
hshParams.Add("SyncFields", SyncFields)
|
hshParams.Add("SyncFields", SyncFields)
|
||||||
hshParams.Add("AutoSaveLog", AutoSaveLog)
|
hshParams.Add("AutoSaveLog", AutoSaveLog)
|
||||||
|
hshParams.Add("AutoRestore", AutoRestore)
|
||||||
|
hshParams.Add("AutoMark", AutoMark)
|
||||||
|
hshParams.Add("SessionTracking", SessionTracking)
|
||||||
|
hshParams.Add("SuppressMessages", SuppressMessages)
|
||||||
|
hshParams.Add("BackupOnLaunch", BackupOnLaunch)
|
||||||
|
hshParams.Add("UseGameID", UseGameID)
|
||||||
|
hshParams.Add("DisableSyncMessages", DisableSyncMessages)
|
||||||
|
|
||||||
oDatabase.RunParamQuery(sSQL, hshParams)
|
oDatabase.RunParamQuery(sSQL, hshParams)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -294,17 +358,22 @@ Public Class mgrSettings
|
|||||||
ShowOverwriteWarning = CBool(dr("ShowOverwriteWarning"))
|
ShowOverwriteWarning = CBool(dr("ShowOverwriteWarning"))
|
||||||
RestoreOnLaunch = CBool(dr("RestoreOnLaunch"))
|
RestoreOnLaunch = CBool(dr("RestoreOnLaunch"))
|
||||||
BackupFolder = CStr(dr("BackupFolder"))
|
BackupFolder = CStr(dr("BackupFolder"))
|
||||||
Sync = CBool(dr("Sync"))
|
|
||||||
CheckSum = CBool(dr("CheckSum"))
|
|
||||||
StartWithWindows = CBool(dr("StartWithWindows"))
|
StartWithWindows = CBool(dr("StartWithWindows"))
|
||||||
TimeTracking = CBool(dr("TimeTracking"))
|
TimeTracking = CBool(dr("TimeTracking"))
|
||||||
SupressBackup = CBool(dr("SupressBackup"))
|
SuppressBackup = CBool(dr("SuppressBackup"))
|
||||||
SupressBackupThreshold = CInt(dr("SupressBackupThreshold"))
|
SuppressBackupThreshold = CInt(dr("SuppressBackupThreshold"))
|
||||||
CompressionLevel = CInt(dr("CompressionLevel"))
|
CompressionLevel = CInt(dr("CompressionLevel"))
|
||||||
If Not IsDBNull(dr("Custom7zArguments")) Then Custom7zArguments = CStr(dr("Custom7zArguments"))
|
If Not IsDBNull(dr("Custom7zArguments")) Then Custom7zArguments = CStr(dr("Custom7zArguments"))
|
||||||
If Not IsDBNull(dr("Custom7zLocation")) Then Custom7zLocation = CStr(dr("Custom7zLocation"))
|
If Not IsDBNull(dr("Custom7zLocation")) Then Custom7zLocation = CStr(dr("Custom7zLocation"))
|
||||||
SyncFields = CInt(dr("SyncFields"))
|
SyncFields = CInt(dr("SyncFields"))
|
||||||
AutoSaveLog = CBool(dr("AutoSaveLog"))
|
AutoSaveLog = CBool(dr("AutoSaveLog"))
|
||||||
|
AutoRestore = CBool(dr("AutoRestore"))
|
||||||
|
AutoMark = CBool(dr("AutoMark"))
|
||||||
|
SessionTracking = CBool(dr("SessionTracking"))
|
||||||
|
SuppressMessages = CInt(dr("SuppressMessages"))
|
||||||
|
BackupOnLaunch = CBool(dr("BackupOnLaunch"))
|
||||||
|
UseGameID = CBool(dr("UseGameID"))
|
||||||
|
DisableSyncMessages = CBool(dr("DisableSyncMessages"))
|
||||||
Next
|
Next
|
||||||
|
|
||||||
oDatabase.Disconnect()
|
oDatabase.Disconnect()
|
||||||
@@ -323,4 +392,13 @@ Public Class mgrSettings
|
|||||||
'Set Remote Manifest Location
|
'Set Remote Manifest Location
|
||||||
mgrPath.RemoteDatabaseLocation = Me.BackupFolder
|
mgrPath.RemoteDatabaseLocation = Me.BackupFolder
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public Function SetMessageField(ByVal eMessages As eSuppressMessages, ByVal eMessage As eSuppressMessages) As eSuppressMessages
|
||||||
|
Return eMessages Or eMessage
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function RemoveMessageField(ByVal eMessages As eSuppressMessages, ByVal eMessage As eSuppressMessages) As eSuppressMessages
|
||||||
|
Return eMessages And (Not eMessage)
|
||||||
|
End Function
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -153,7 +153,7 @@
|
|||||||
Dim hshParams As Hashtable
|
Dim hshParams As Hashtable
|
||||||
Dim oParamList As New List(Of Hashtable)
|
Dim oParamList As New List(Of Hashtable)
|
||||||
|
|
||||||
sSQL = "INSERT OR REPLACE INTO tags VALUES (COALESCE((SELECT TagID FROM tags WHERE Name = @Name), @ID), @Name); INSERT INTO gametags VALUES ((SELECT TagID from tags WHERE Name=@Name), @MonitorID);"
|
sSQL = "INSERT OR REPLACE INTO tags VALUES (COALESCE((SELECT TagID FROM tags WHERE Name = @Name), @ID), @Name); INSERT OR REPLACE INTO gametags VALUES ((SELECT TagID from tags WHERE Name=@Name), @MonitorID);"
|
||||||
For Each oGame As clsGame In hshTags.Values
|
For Each oGame As clsGame In hshTags.Values
|
||||||
sMonitorID = oGame.ID
|
sMonitorID = oGame.ID
|
||||||
For Each t As Tag In oGame.ImportTags
|
For Each t As Tag In oGame.ImportTags
|
||||||
|
|||||||
+50
-20
@@ -6,75 +6,105 @@ Imports System.Net
|
|||||||
|
|
||||||
Public Class mgrXML
|
Public Class mgrXML
|
||||||
|
|
||||||
Public Shared Function ReadMonitorList(ByVal sLocation As String, Optional ByVal bWebRead As Boolean = False) As Hashtable
|
Public Shared Function ReadMonitorList(ByVal sLocation As String, ByRef oExportInfo As ExportData, ByRef hshList As Hashtable, Optional ByVal bWebRead As Boolean = False) As Boolean
|
||||||
Dim oList As List(Of Game)
|
Dim oList As List(Of Game)
|
||||||
Dim hshList As New Hashtable
|
|
||||||
Dim hshDupeList As New Hashtable
|
Dim hshDupeList As New Hashtable
|
||||||
|
Dim oExportData As New ExportData
|
||||||
Dim oGame As clsGame
|
Dim oGame As clsGame
|
||||||
|
|
||||||
|
|
||||||
'If the file doesn't exist return an empty list
|
'If the file doesn't exist return an empty list
|
||||||
If Not File.Exists(sLocation) And Not bWebRead Then
|
If Not File.Exists(sLocation) And Not bWebRead Then
|
||||||
Return hshList
|
Return False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
oList = ImportandDeserialize(sLocation, bWebRead)
|
If Not ImportandDeserialize(sLocation, oExportData, bWebRead) Then
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
|
||||||
|
oList = oExportData.Configurations
|
||||||
|
oExportInfo = oExportData
|
||||||
|
|
||||||
For Each g As Game In oList
|
For Each g As Game In oList
|
||||||
oGame = New clsGame
|
oGame = New clsGame
|
||||||
|
oGame.ID = g.ID
|
||||||
oGame.Name = g.Name
|
oGame.Name = g.Name
|
||||||
oGame.ProcessName = g.ProcessName
|
oGame.ProcessName = g.ProcessName
|
||||||
oGame.AbsolutePath = g.AbsolutePath
|
oGame.AbsolutePath = g.AbsolutePath
|
||||||
oGame.Path = g.Path
|
oGame.Path = g.Path
|
||||||
oGame.FolderSave = g.FolderSave
|
oGame.FolderSave = g.FolderSave
|
||||||
|
oGame.AppendTimeStamp = g.AppendTimeStamp
|
||||||
|
oGame.BackupLimit = g.BackupLimit
|
||||||
oGame.FileType = g.FileType
|
oGame.FileType = g.FileType
|
||||||
oGame.ExcludeList = g.ExcludeList
|
oGame.ExcludeList = g.ExcludeList
|
||||||
|
oGame.MonitorOnly = g.MonitorOnly
|
||||||
|
oGame.Parameter = g.Parameter
|
||||||
|
oGame.Comments = g.Comments
|
||||||
|
oGame.IsRegEx = g.IsRegEx
|
||||||
For Each t As Tag In g.Tags
|
For Each t As Tag In g.Tags
|
||||||
oGame.ImportTags.Add(t)
|
oGame.ImportTags.Add(t)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
'This should be wrapped just in case we get some bad data
|
'This should be wrapped just in case we get some bad data
|
||||||
Try
|
Try
|
||||||
hshList.Add(oGame.ProcessName & ":" & oGame.Name, oGame)
|
hshList.Add(oGame.ID, oGame)
|
||||||
Catch e As Exception
|
Catch e As Exception
|
||||||
'Do Nothing
|
'Do Nothing
|
||||||
End Try
|
End Try
|
||||||
Next
|
Next
|
||||||
|
|
||||||
Return hshList
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function ImportandDeserialize(ByVal sLocation As String, Optional ByVal bWebRead As Boolean = False) As List(Of Game)
|
Private Shared Function ReadImportData(ByVal sLocation As String, ByVal bWebRead As Boolean)
|
||||||
Dim oReader As StreamReader
|
Dim oReader As StreamReader
|
||||||
Dim oWebClient As WebClient
|
Dim oWebClient As WebClient
|
||||||
|
|
||||||
|
If bWebRead Then
|
||||||
|
oWebClient = New WebClient
|
||||||
|
oReader = New StreamReader(oWebClient.OpenRead(sLocation))
|
||||||
|
Else
|
||||||
|
oReader = New StreamReader(sLocation)
|
||||||
|
End If
|
||||||
|
|
||||||
|
Return oReader
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Shared Function ImportandDeserialize(ByVal sLocation As String, ByRef oExportData As ExportData, Optional ByVal bWebRead As Boolean = False) As Boolean
|
||||||
|
Dim oReader As StreamReader
|
||||||
Dim oSerializer As XmlSerializer
|
Dim oSerializer As XmlSerializer
|
||||||
Dim oList As New List(Of Game)
|
|
||||||
|
|
||||||
Try
|
Try
|
||||||
If bWebRead Then
|
oReader = ReadImportData(sLocation, bWebRead)
|
||||||
oWebClient = New WebClient
|
oSerializer = New XmlSerializer(GetType(ExportData), New XmlRootAttribute("gbm"))
|
||||||
oReader = New StreamReader(oWebClient.OpenRead(sLocation))
|
oExportData = oSerializer.Deserialize(oReader)
|
||||||
Else
|
|
||||||
oReader = New StreamReader(sLocation)
|
|
||||||
End If
|
|
||||||
|
|
||||||
oSerializer = New XmlSerializer(oList.GetType(), New XmlRootAttribute("gbm"))
|
|
||||||
oList = oSerializer.Deserialize(oReader)
|
|
||||||
oReader.Close()
|
oReader.Close()
|
||||||
|
|
||||||
|
'Compatability Mode
|
||||||
|
If oExportData.AppVer = 0 Then
|
||||||
|
oReader = ReadImportData(sLocation, bWebRead)
|
||||||
|
oSerializer = New XmlSerializer(GetType(List(Of Game)), New XmlRootAttribute("gbm"))
|
||||||
|
oExportData.Configurations = oSerializer.Deserialize(oReader)
|
||||||
|
oReader.Close()
|
||||||
|
End If
|
||||||
|
Return True
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
mgrCommon.ShowMessage(mgrXML_ErrorImportFailure, ex.Message, MsgBoxStyle.Exclamation)
|
mgrCommon.ShowMessage(mgrXML_ErrorImportFailure, ex.Message, MsgBoxStyle.Exclamation)
|
||||||
|
Return False
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
Return oList
|
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function SerializeAndExport(ByVal oList As List(Of Game), ByVal sLocation As String) As Boolean
|
Public Shared Function SerializeAndExport(ByVal oList As List(Of Game), ByVal sLocation As String) As Boolean
|
||||||
Dim oSerializer As XmlSerializer
|
Dim oSerializer As XmlSerializer
|
||||||
Dim oWriter As StreamWriter
|
Dim oWriter As StreamWriter
|
||||||
|
Dim oExportData As ExportData
|
||||||
|
|
||||||
Try
|
Try
|
||||||
oSerializer = New XmlSerializer(oList.GetType(), New XmlRootAttribute("gbm"))
|
oExportData = New ExportData(mgrCommon.DateToUnix(Now), oList.Count, mgrCommon.AppVersion, oList)
|
||||||
|
oSerializer = New XmlSerializer(oExportData.GetType())
|
||||||
oWriter = New StreamWriter(sLocation)
|
oWriter = New StreamWriter(sLocation)
|
||||||
oSerializer.Serialize(oWriter.BaseStream, oList)
|
oSerializer.Serialize(oWriter.BaseStream, oExportData)
|
||||||
oWriter.Flush()
|
oWriter.Flush()
|
||||||
oWriter.Close()
|
oWriter.Close()
|
||||||
Return True
|
Return True
|
||||||
|
|||||||
Generated
+1
-1
@@ -24,7 +24,7 @@ Namespace My
|
|||||||
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
||||||
Public Sub New()
|
Public Sub New()
|
||||||
MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
|
MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
|
||||||
Me.IsSingleInstance = false
|
Me.IsSingleInstance = true
|
||||||
Me.EnableVisualStyles = true
|
Me.EnableVisualStyles = true
|
||||||
Me.SaveMySettingsOnExit = false
|
Me.SaveMySettingsOnExit = false
|
||||||
Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
|
Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
<MySubMain>true</MySubMain>
|
<MySubMain>true</MySubMain>
|
||||||
<MainForm>frmMain</MainForm>
|
<MainForm>frmMain</MainForm>
|
||||||
<SingleInstance>false</SingleInstance>
|
<SingleInstance>true</SingleInstance>
|
||||||
<ShutdownMode>0</ShutdownMode>
|
<ShutdownMode>0</ShutdownMode>
|
||||||
<EnableVisualStyles>true</EnableVisualStyles>
|
<EnableVisualStyles>true</EnableVisualStyles>
|
||||||
<AuthenticationMode>0</AuthenticationMode>
|
<AuthenticationMode>0</AuthenticationMode>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ Imports System.Runtime.InteropServices
|
|||||||
<Assembly: AssemblyDescription("Game Backup Monitor")>
|
<Assembly: AssemblyDescription("Game Backup Monitor")>
|
||||||
<Assembly: AssemblyCompany("Michael J. Seiferling")>
|
<Assembly: AssemblyCompany("Michael J. Seiferling")>
|
||||||
<Assembly: AssemblyProduct("Game Backup Monitor")>
|
<Assembly: AssemblyProduct("Game Backup Monitor")>
|
||||||
<Assembly: AssemblyCopyright("Copyright © 2016 Michael J. Seiferling")>
|
<Assembly: AssemblyCopyright("Copyright © 2018 Michael J. Seiferling")>
|
||||||
<Assembly: AssemblyTrademark("")>
|
<Assembly: AssemblyTrademark("")>
|
||||||
|
|
||||||
<Assembly: ComVisible(False)>
|
<Assembly: ComVisible(False)>
|
||||||
@@ -33,7 +33,7 @@ Imports System.Runtime.InteropServices
|
|||||||
' by using the '*' as shown below:
|
' by using the '*' as shown below:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("0.98.*")>
|
<Assembly: AssemblyVersion("1.1.4.*")>
|
||||||
<Assembly: AssemblyFileVersion("0.98.0.0")>
|
<Assembly: AssemblyFileVersion("1.1.4.0")>
|
||||||
|
|
||||||
<Assembly: NeutralResourcesLanguageAttribute("en")>
|
<Assembly: NeutralResourcesLanguageAttribute("en")>
|
||||||
Generated
+1518
-121
File diff suppressed because it is too large
Load Diff
+533
-68
@@ -122,7 +122,7 @@
|
|||||||
<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="frmMain_About" 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] ([PARAM])[BR]Build: [PARAM][BR]SQLite: [PARAM][BR][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="frmMain_ManifestAreadyClean" xml:space="preserve">
|
<data name="frmMain_ManifestAreadyClean" xml:space="preserve">
|
||||||
<value>The local manifest is clean.</value>
|
<value>The local manifest is clean.</value>
|
||||||
@@ -133,9 +133,6 @@
|
|||||||
<data name="frmMain_ManifestTotalRemoved" 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="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>
|
|
||||||
</data>
|
|
||||||
<data name="frmMain_ConfirmRebuild" 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>
|
||||||
@@ -269,7 +266,7 @@
|
|||||||
<value>Last Game: [PARAM]</value>
|
<value>Last Game: [PARAM]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_ManualBackup" xml:space="preserve">
|
<data name="frmMain_ManualBackup" xml:space="preserve">
|
||||||
<value>A manaul backup of [PARAM] was triggered.</value>
|
<value>A manual backup of [PARAM] was triggered.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_MasterListChanged" xml:space="preserve">
|
<data name="frmMain_MasterListChanged" xml:space="preserve">
|
||||||
<value>The master game list has been changed by a program other than GBM.</value>
|
<value>The master game list has been changed by a program other than GBM.</value>
|
||||||
@@ -287,10 +284,10 @@
|
|||||||
<value>Multiple Games Detected</value>
|
<value>Multiple Games Detected</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_NewSaveNotificationMulti" xml:space="preserve">
|
<data name="frmMain_NewSaveNotificationMulti" xml:space="preserve">
|
||||||
<value>[PARAM] New Saves Pending</value>
|
<value>[PARAM] New Backups Pending</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_NewSaveNotificationSingle" xml:space="preserve">
|
<data name="frmMain_NewSaveNotificationSingle" xml:space="preserve">
|
||||||
<value>[PARAM] New Save Pending</value>
|
<value>[PARAM] New Backup Pending</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_NoDetails" xml:space="preserve">
|
<data name="frmMain_NoDetails" xml:space="preserve">
|
||||||
<value>Game details are unavailable.</value>
|
<value>Game details are unavailable.</value>
|
||||||
@@ -392,13 +389,13 @@
|
|||||||
<value>Add Game &Wizard...</value>
|
<value>Add Game &Wizard...</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_gMonSetupCustomVariables" xml:space="preserve">
|
<data name="frmMain_gMonSetupCustomVariables" xml:space="preserve">
|
||||||
<value>Custom &Path Variables...</value>
|
<value>Custom Path &Variables...</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_gMonSetupGameManager" xml:space="preserve">
|
<data name="frmMain_gMonSetupGameManager" xml:space="preserve">
|
||||||
<value>&Game Manager...</value>
|
<value>&Game Manager...</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_gMonSetupTags" xml:space="preserve">
|
<data name="frmMain_gMonSetupTags" xml:space="preserve">
|
||||||
<value>&Tags...</value>
|
<value>&Tag Manager...</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_gMonStripStatusButton" xml:space="preserve">
|
<data name="frmMain_gMonStripStatusButton" xml:space="preserve">
|
||||||
<value>Monitor Status:</value>
|
<value>Monitor Status:</value>
|
||||||
@@ -406,9 +403,6 @@
|
|||||||
<data name="frmMain_gMonTools" xml:space="preserve">
|
<data name="frmMain_gMonTools" xml:space="preserve">
|
||||||
<value>&Tools</value>
|
<value>&Tools</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmMain_gMonToolsCleanMan" xml:space="preserve">
|
|
||||||
<value>Clea&n Local Manifest</value>
|
|
||||||
</data>
|
|
||||||
<data name="frmMain_gMonToolsCompact" xml:space="preserve">
|
<data name="frmMain_gMonToolsCompact" xml:space="preserve">
|
||||||
<value>&Compact Databases</value>
|
<value>&Compact Databases</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -424,12 +418,6 @@
|
|||||||
<data name="App_ConfirmDirty" xml:space="preserve">
|
<data name="App_ConfirmDirty" xml:space="preserve">
|
||||||
<value>There are unsaved changes on this form. Do you want to save?</value>
|
<value>There are unsaved changes on this form. Do you want to save?</value>
|
||||||
</data>
|
</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">
|
<data name="frmGameManager_BackupTimeAndName" xml:space="preserve">
|
||||||
<value>[PARAM] ([PARAM])</value>
|
<value>[PARAM] ([PARAM])</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -560,7 +548,7 @@
|
|||||||
<value>[PARAM] is already up to date.[BR][BR]Would you like to restore this backup anyway?</value>
|
<value>[PARAM] is already up to date.[BR][BR]Would you like to restore this backup anyway?</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmGameManager_ErrorGameDupe" xml:space="preserve">
|
<data name="frmGameManager_ErrorGameDupe" xml:space="preserve">
|
||||||
<value>A game with this exact name and process already exists.</value>
|
<value>A game with the same ID ([PARAM]) already exists.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmGameManager_ErrorNoBackupData" xml:space="preserve">
|
<data name="frmGameManager_ErrorNoBackupData" xml:space="preserve">
|
||||||
<value>The selected game(s) have no backup data or can't be restored with their current configuration.</value>
|
<value>The selected game(s) have no backup data or can't be restored with their current configuration.</value>
|
||||||
@@ -659,7 +647,7 @@
|
|||||||
<value>Custom</value>
|
<value>Custom</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmGameManager_optPendingRestores" xml:space="preserve">
|
<data name="frmGameManager_optPendingRestores" xml:space="preserve">
|
||||||
<value>New Saves Pending</value>
|
<value>New Backups Pending</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmGameManager_OutofSync" xml:space="preserve">
|
<data name="frmGameManager_OutofSync" xml:space="preserve">
|
||||||
<value>Out of Sync</value>
|
<value>Out of Sync</value>
|
||||||
@@ -782,7 +770,7 @@
|
|||||||
<value>Saved Game Folder:</value>
|
<value>Saved Game Folder:</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmAddWizard_lblStep1Instructions" xml:space="preserve">
|
<data name="frmAddWizard_lblStep1Instructions" xml:space="preserve">
|
||||||
<value>The name will be automatically filtered for length and invalid characters. You may drag and drop a shortcut here to complete this step, only Windows shortcuts are currently supported.</value>
|
<value>You may drag and drop a shortcut here to complete this step, only Windows shortcuts are currently supported.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmAddWizard_lblStep1Intro" xml:space="preserve">
|
<data name="frmAddWizard_lblStep1Intro" xml:space="preserve">
|
||||||
<value>Enter the name of the game to monitor:</value>
|
<value>Enter the name of the game to monitor:</value>
|
||||||
@@ -791,7 +779,7 @@
|
|||||||
<value>Game Name</value>
|
<value>Game Name</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmAddWizard_lblStep2Instructions" xml:space="preserve">
|
<data name="frmAddWizard_lblStep2Instructions" xml:space="preserve">
|
||||||
<value>Some games use launchers. Do not monitor launchers, be sure to choose the game's actual exe file. You may drag and drop a shortcut here to complete this step, only Windows shortcuts are currently supported.</value>
|
<value>Some games use launchers. Do not monitor launchers, be sure to choose the game's actual executable file. You may drag and drop a shortcut here to complete this step, only Windows shortcuts are currently supported.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmAddWizard_lblStep2Intro" xml:space="preserve">
|
<data name="frmAddWizard_lblStep2Intro" xml:space="preserve">
|
||||||
<value>Choose the game's executable file or shortcut:</value>
|
<value>Choose the game's executable file or shortcut:</value>
|
||||||
@@ -889,29 +877,20 @@
|
|||||||
<data name="frmFileFolderSearch_SwitchDrives" xml:space="preserve">
|
<data name="frmFileFolderSearch_SwitchDrives" xml:space="preserve">
|
||||||
<value>Do you wish to search the [PARAM] drive?</value>
|
<value>Do you wish to search the [PARAM] drive?</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmFilter_btnAdd" xml:space="preserve">
|
<data name="frmFilter_btnIncludeAdd" xml:space="preserve">
|
||||||
<value>></value>
|
<value><</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmFilter_btnOK" xml:space="preserve">
|
<data name="frmFilter_btnOK" xml:space="preserve">
|
||||||
<value>&OK</value>
|
<value>&OK</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmFilter_btnRemove" xml:space="preserve">
|
<data name="frmFilter_btnIncludeRemove" xml:space="preserve">
|
||||||
<value><</value>
|
<value>></value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmFilter_FormName" xml:space="preserve">
|
<data name="frmFilter_FormName" xml:space="preserve">
|
||||||
<value>Custom Filter</value>
|
<value>Custom Filter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmFilter_lblCompany" xml:space="preserve">
|
<data name="frmFilter_lblIncludeTags" xml:space="preserve">
|
||||||
<value>Company:</value>
|
<value>Include Tags</value>
|
||||||
</data>
|
|
||||||
<data name="frmFilter_lblGameTags" xml:space="preserve">
|
|
||||||
<value>Current Filter</value>
|
|
||||||
</data>
|
|
||||||
<data name="frmFilter_lblName" xml:space="preserve">
|
|
||||||
<value>Name:</value>
|
|
||||||
</data>
|
|
||||||
<data name="frmFilter_lblProcess" xml:space="preserve">
|
|
||||||
<value>Process:</value>
|
|
||||||
</data>
|
</data>
|
||||||
<data name="frmFilter_lblTags" xml:space="preserve">
|
<data name="frmFilter_lblTags" xml:space="preserve">
|
||||||
<value>Available Tags</value>
|
<value>Available Tags</value>
|
||||||
@@ -920,18 +899,18 @@
|
|||||||
<value>All Tags</value>
|
<value>All Tags</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmFilter_optAnd" xml:space="preserve">
|
<data name="frmFilter_optAnd" xml:space="preserve">
|
||||||
<value>And</value>
|
<value>All</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmFilter_optAny" xml:space="preserve">
|
<data name="frmFilter_optAny" xml:space="preserve">
|
||||||
<value>Any Tag</value>
|
<value>Any Tag</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmFilter_optGameInfo" xml:space="preserve">
|
<data name="frmFilter_chkGameInfo" xml:space="preserve">
|
||||||
<value>Game Information</value>
|
<value>Game Information</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmFilter_optOr" xml:space="preserve">
|
<data name="frmFilter_optOr" xml:space="preserve">
|
||||||
<value>Or</value>
|
<value>Any</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmFilter_optTag" xml:space="preserve">
|
<data name="frmFilter_chkTag" xml:space="preserve">
|
||||||
<value>Tag</value>
|
<value>Tag</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmGameTags_btnAdd" xml:space="preserve">
|
<data name="frmGameTags_btnAdd" xml:space="preserve">
|
||||||
@@ -941,7 +920,7 @@
|
|||||||
<value>&Close</value>
|
<value>&Close</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmGameTags_btnOpenTags" xml:space="preserve">
|
<data name="frmGameTags_btnOpenTags" xml:space="preserve">
|
||||||
<value>Setup &Tags...</value>
|
<value>&Tag Manager...</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmGameTags_btnRemove" xml:space="preserve">
|
<data name="frmGameTags_btnRemove" xml:space="preserve">
|
||||||
<value><</value>
|
<value><</value>
|
||||||
@@ -1004,7 +983,7 @@
|
|||||||
<value>Individual Files</value>
|
<value>Individual Files</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmIncludeExclude_RawEditInfo" xml:space="preserve">
|
<data name="frmIncludeExclude_RawEditInfo" xml:space="preserve">
|
||||||
<value>Items are semi-colon delimited.</value>
|
<value>Items are colon delimited.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmIncludeExclude_RawEditTitle" xml:space="preserve">
|
<data name="frmIncludeExclude_RawEditTitle" xml:space="preserve">
|
||||||
<value>[PARAM] Raw Edit</value>
|
<value>[PARAM] Raw Edit</value>
|
||||||
@@ -1021,11 +1000,11 @@
|
|||||||
<data name="frmIncludeExclude_ToolTipTitle" xml:space="preserve">
|
<data name="frmIncludeExclude_ToolTipTitle" xml:space="preserve">
|
||||||
<value>Saved Game Explorer</value>
|
<value>Saved Game Explorer</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmFilter_grpGameInfoOptions" xml:space="preserve">
|
<data name="frmFilter_grpFilterType" xml:space="preserve">
|
||||||
<value>Options</value>
|
<value>Filter Type</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmFilter_grpTagOptions" xml:space="preserve">
|
<data name="frmFilter_grpTagOptions" xml:space="preserve">
|
||||||
<value>Options</value>
|
<value>Include Options</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmGameManager_grpConfig" xml:space="preserve">
|
<data name="frmGameManager_grpConfig" xml:space="preserve">
|
||||||
<value>Configuration</value>
|
<value>Configuration</value>
|
||||||
@@ -1075,9 +1054,6 @@
|
|||||||
<data name="frmSettings_chkBackupConfirm" xml:space="preserve">
|
<data name="frmSettings_chkBackupConfirm" xml:space="preserve">
|
||||||
<value>Disable backup confirmation</value>
|
<value>Disable backup confirmation</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmSettings_chkCheckSum" xml:space="preserve">
|
|
||||||
<value>Verify backup files with a checksum</value>
|
|
||||||
</data>
|
|
||||||
<data name="frmSettings_chkCreateFolder" xml:space="preserve">
|
<data name="frmSettings_chkCreateFolder" xml:space="preserve">
|
||||||
<value>Create a sub-folder for each game</value>
|
<value>Create a sub-folder for each game</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -1087,8 +1063,8 @@
|
|||||||
<data name="frmSettings_chkOverwriteWarning" xml:space="preserve">
|
<data name="frmSettings_chkOverwriteWarning" xml:space="preserve">
|
||||||
<value>Show overwrite warning</value>
|
<value>Show overwrite warning</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmSettings_chkRestoreOnLaunch" xml:space="preserve">
|
<data name="frmSettings_chkRestoreNotify" xml:space="preserve">
|
||||||
<value>Notify when there are new backup files to restore</value>
|
<value>Display notifications about new backups</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmSettings_chkShowDetectionTips" xml:space="preserve">
|
<data name="frmSettings_chkShowDetectionTips" xml:space="preserve">
|
||||||
<value>Show detection notifications</value>
|
<value>Show detection notifications</value>
|
||||||
@@ -1099,11 +1075,8 @@
|
|||||||
<data name="frmSettings_chkStartWindows" xml:space="preserve">
|
<data name="frmSettings_chkStartWindows" xml:space="preserve">
|
||||||
<value>Start with Windows</value>
|
<value>Start with Windows</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmSettings_chkSupressBackup" xml:space="preserve">
|
<data name="frmSettings_chkSuppressBackup" xml:space="preserve">
|
||||||
<value>Backup only when session time exceeds</value>
|
<value>Ignore sessions shorter than</value>
|
||||||
</data>
|
|
||||||
<data name="frmSettings_chkSync" xml:space="preserve">
|
|
||||||
<value>Enable syncing</value>
|
|
||||||
</data>
|
</data>
|
||||||
<data name="frmSettings_chkTimeTracking" xml:space="preserve">
|
<data name="frmSettings_chkTimeTracking" xml:space="preserve">
|
||||||
<value>Enable time tracking</value>
|
<value>Enable time tracking</value>
|
||||||
@@ -1115,10 +1088,10 @@
|
|||||||
<value>Settings</value>
|
<value>Settings</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmSettings_grpStartup" xml:space="preserve">
|
<data name="frmSettings_grpStartup" xml:space="preserve">
|
||||||
<value>Startup</value>
|
<value>Startup Options</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmSettings_grpFolderOptions" xml:space="preserve">
|
<data name="frmSettings_grpFolderOptions" xml:space="preserve">
|
||||||
<value>Folders</value>
|
<value>Files and Folders</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmSettings_lblBackupFolder" xml:space="preserve">
|
<data name="frmSettings_lblBackupFolder" xml:space="preserve">
|
||||||
<value>Backup Folder:</value>
|
<value>Backup Folder:</value>
|
||||||
@@ -1153,9 +1126,6 @@
|
|||||||
<data name="frmStartUpWizard_chkCreateFolder" xml:space="preserve">
|
<data name="frmStartUpWizard_chkCreateFolder" xml:space="preserve">
|
||||||
<value>Create a sub-folder for each game</value>
|
<value>Create a sub-folder for each game</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmStartUpWizard_chkSync" xml:space="preserve">
|
|
||||||
<value>Import any existing GBM data in the backup folder</value>
|
|
||||||
</data>
|
|
||||||
<data name="frmStartUpWizard_ConfirmOfficialImport" xml:space="preserve">
|
<data name="frmStartUpWizard_ConfirmOfficialImport" xml:space="preserve">
|
||||||
<value>Would you like to choose games to import from the official list?[BR][BR]This requires an active internet connection.</value>
|
<value>Would you like to choose games to import from the official list?[BR][BR]This requires an active internet connection.</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -1184,7 +1154,7 @@
|
|||||||
<value>Welcome to GBM</value>
|
<value>Welcome to GBM</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmStartUpWizard_lblStep2Instructions" xml:space="preserve">
|
<data name="frmStartUpWizard_lblStep2Instructions" xml:space="preserve">
|
||||||
<value>GBM will store all your backup files along with a manifest database (gbm.s3db) in this location. </value>
|
<value>GBM will store all your backup files along with a manifest database (gbm.s3db) in this location. Any existing GBM data in this folder will be automatically imported.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmStartUpWizard_lblStep2Intro" xml:space="preserve">
|
<data name="frmStartUpWizard_lblStep2Intro" xml:space="preserve">
|
||||||
<value>Choose where GBM saves your backup files:</value>
|
<value>Choose where GBM saves your backup files:</value>
|
||||||
@@ -1238,7 +1208,7 @@
|
|||||||
<value>You must enter a valid tag name.</value>
|
<value>You must enter a valid tag name.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmTags_FormName" xml:space="preserve">
|
<data name="frmTags_FormName" xml:space="preserve">
|
||||||
<value>Tags</value>
|
<value>Tag Manager</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmTags_grpTag" xml:space="preserve">
|
<data name="frmTags_grpTag" xml:space="preserve">
|
||||||
<value>Configuration</value>
|
<value>Configuration</value>
|
||||||
@@ -1306,11 +1276,11 @@
|
|||||||
<data name="mgrBackup_BackupInProgress" xml:space="preserve">
|
<data name="mgrBackup_BackupInProgress" xml:space="preserve">
|
||||||
<value>Backup of [PARAM] in progress...</value>
|
<value>Backup of [PARAM] in progress...</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="mgrBackup_BackupWarnings" xml:space="preserve">
|
<data name="mgrBackup_7zWarnings" xml:space="preserve">
|
||||||
<value>[PARAM] backup finished with warnings or errors.</value>
|
<value>[PARAM] backup completed with warnings.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="mgrBackup_ConfirmManifestConflict" xml:space="preserve">
|
<data name="mgrBackup_ConfirmManifestConflict" xml:space="preserve">
|
||||||
<value>The manifest shows the backup folder contains a backup for [PARAM] that has not been restored on this computer.[BR][BR]Do you want to overwrite this file anyway?</value>
|
<value>The manifest shows the backup folder contains a more recent backup for [PARAM] that has not been restored on this computer.[BR][BR]Do you want to overwrite this file anyway?</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="mgrBackup_ConfirmOverwrite" xml:space="preserve">
|
<data name="mgrBackup_ConfirmOverwrite" xml:space="preserve">
|
||||||
<value>A file with the same name already exists in the backup folder.[BR][BR]Do you want to overwrite this file?</value>
|
<value>A file with the same name already exists in the backup folder.[BR][BR]Do you want to overwrite this file?</value>
|
||||||
@@ -1628,7 +1598,7 @@
|
|||||||
<value>A backup cannot be run on the selected game(s) with their current configuration.</value>
|
<value>A backup cannot be run on the selected game(s) with their current configuration.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmSettings_btnOptionalFields" xml:space="preserve">
|
<data name="frmSettings_btnOptionalFields" xml:space="preserve">
|
||||||
<value>Choose &Optional Fields...</value>
|
<value>Choose &Optional Sync Fields...</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmSyncFields_btnCancel" xml:space="preserve">
|
<data name="frmSyncFields_btnCancel" xml:space="preserve">
|
||||||
<value>&Cancel</value>
|
<value>&Cancel</value>
|
||||||
@@ -1667,7 +1637,7 @@
|
|||||||
<value>Autosave log when max length is exceeded</value>
|
<value>Autosave log when max length is exceeded</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmSettings_grpGameData" xml:space="preserve">
|
<data name="frmSettings_grpGameData" xml:space="preserve">
|
||||||
<value>Game Data</value>
|
<value>Game Data Options</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="frmSettings_lstSettings_7z" xml:space="preserve">
|
<data name="frmSettings_lstSettings_7z" xml:space="preserve">
|
||||||
<value>7-Zip</value>
|
<value>7-Zip</value>
|
||||||
@@ -1732,4 +1702,499 @@
|
|||||||
<data name="frmGameManager_Unknown" xml:space="preserve">
|
<data name="frmGameManager_Unknown" xml:space="preserve">
|
||||||
<value>Unknown</value>
|
<value>Unknown</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="frmGameManager_chkCleanFolder" xml:space="preserve">
|
||||||
|
<value>Delete folder on restore</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_AutoMark" xml:space="preserve">
|
||||||
|
<value>The saved game folder for [PARAM] does not exist or could not be determined, the backup has been automatically marked as restored.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_RestoreNotReady" xml:space="preserve">
|
||||||
|
<value>The backup file for [PARAM] is not ready to restore.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_chkAutoMark" xml:space="preserve">
|
||||||
|
<value>Automatically mark new backups as restored when appropriate</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_grpBackupHandling" xml:space="preserve">
|
||||||
|
<value>Backup Handling</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_chkAutoRestore" xml:space="preserve">
|
||||||
|
<value>Automatically restore new backups</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_AutoRestoreFailure" xml:space="preserve">
|
||||||
|
<value>[PARAM] has multiple configurations and cannot be automatically restored.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_RestoreNotificationMulti" xml:space="preserve">
|
||||||
|
<value>[PARAM] new saved game backups are being automatically restored.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_RestoreNotificationSingle" xml:space="preserve">
|
||||||
|
<value>A new saved game backup for [PARAM] is being automatically restored.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_NoAutoMark" xml:space="preserve">
|
||||||
|
<value>The saved game folder for [PARAM] does not exist or could not be determined, this backup has been skipped.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_NoCheckSum" xml:space="preserve">
|
||||||
|
<value>The backup file for [PARAM] has no checksum, it cannot be automatically restored.</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrBackup_ConfirmDiskSpace" xml:space="preserve">
|
||||||
|
<value>You may not have enough disk space available to perform a backup.[BR][BR]Do you want to continue anyway?</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrBackup_ErrorDiskSpace" xml:space="preserve">
|
||||||
|
<value>Backup aborted due to lack of disk space.</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrCommon_AvailableDiskSpace" xml:space="preserve">
|
||||||
|
<value>Available Disk Space: [PARAM]</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrCommon_GB" xml:space="preserve">
|
||||||
|
<value>[PARAM] GB</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrCommon_KB" xml:space="preserve">
|
||||||
|
<value>[PARAM] KB</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrCommon_MB" xml:space="preserve">
|
||||||
|
<value>[PARAM] MB</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrCommon_PB" xml:space="preserve">
|
||||||
|
<value>[PARAM] PB</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrCommon_SavedGameFolderSize" xml:space="preserve">
|
||||||
|
<value>[PARAM] Save Folder Size: [PARAM]</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrCommon_TB" xml:space="preserve">
|
||||||
|
<value>[PARAM] TB</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameManager_lblParameter" xml:space="preserve">
|
||||||
|
<value>Parameter:</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrCommon_B" xml:space="preserve">
|
||||||
|
<value>[PARAM] B</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrBackup_7zCommandFailure" xml:space="preserve">
|
||||||
|
<value>[PARAM] backup failed due to a malformed command.</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrBackup_7zFatalError" xml:space="preserve">
|
||||||
|
<value>[PARAM] backup failed due to an error.</value>
|
||||||
|
</data>
|
||||||
|
<data name="App_ErrorFocus" xml:space="preserve">
|
||||||
|
<value>GBM is busy with an open window on your desktop.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_grpSorting" xml:space="preserve">
|
||||||
|
<value>Sorting</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_optSortAsc" xml:space="preserve">
|
||||||
|
<value>Ascending</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_optSortDesc" xml:space="preserve">
|
||||||
|
<value>Descending</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldCompany" xml:space="preserve">
|
||||||
|
<value>Company</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldHours" xml:space="preserve">
|
||||||
|
<value>Hours</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldName" xml:space="preserve">
|
||||||
|
<value>Name</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldProcess" xml:space="preserve">
|
||||||
|
<value>Process</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_btnAddFilter" xml:space="preserve">
|
||||||
|
<value>Add</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_btnRemoveFilter" xml:space="preserve">
|
||||||
|
<value>Remove</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldParameter" xml:space="preserve">
|
||||||
|
<value>Parameter</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldVersion" xml:space="preserve">
|
||||||
|
<value>Version</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_lblCurrentFilters" xml:space="preserve">
|
||||||
|
<value>Current Filters</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_lblFields" xml:space="preserve">
|
||||||
|
<value>Available Fields</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_lblFilterData" xml:space="preserve">
|
||||||
|
<value>Filter</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_cboBoolFilterDisabled" xml:space="preserve">
|
||||||
|
<value>Disabled</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_cboBoolFilterEnabled" xml:space="preserve">
|
||||||
|
<value>Enabled</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldBackupLimit" xml:space="preserve">
|
||||||
|
<value>Backup Limit *</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldCleanFolder" xml:space="preserve">
|
||||||
|
<value>Delete Folder on Restore</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldEnabled" xml:space="preserve">
|
||||||
|
<value>Monitor Game</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldExcludeList" xml:space="preserve">
|
||||||
|
<value>Exclude Items</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldFileType" xml:space="preserve">
|
||||||
|
<value>Include Items</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldFolderSave" xml:space="preserve">
|
||||||
|
<value>Save Entire Folder</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldIcon" xml:space="preserve">
|
||||||
|
<value>Icon</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldMonitorOnly" xml:space="preserve">
|
||||||
|
<value>Monitor Only</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldPath" xml:space="preserve">
|
||||||
|
<value>Save Path *</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldProcessPath" xml:space="preserve">
|
||||||
|
<value>Game Path</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldTimeStamp" xml:space="preserve">
|
||||||
|
<value>Save Multiple Backups</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_lblSortsFields" xml:space="preserve">
|
||||||
|
<value>Available Fields</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_lblWarning" xml:space="preserve">
|
||||||
|
<value>* Indicates a field that may give unexpected results.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_lstFilterContains" xml:space="preserve">
|
||||||
|
<value>contains</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_grpSortOptions" xml:space="preserve">
|
||||||
|
<value>Sort Options</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldComments" xml:space="preserve">
|
||||||
|
<value>Comments</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_btnExcludeAdd" xml:space="preserve">
|
||||||
|
<value>></value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_btnExcludeRemove" xml:space="preserve">
|
||||||
|
<value><</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_lblExcludeTags" xml:space="preserve">
|
||||||
|
<value>Exclude Tags</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_lblNot" xml:space="preserve">
|
||||||
|
<value>Not</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_gMonToolsSessions" xml:space="preserve">
|
||||||
|
<value>&Session Viewer...</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_ColumnEnd" xml:space="preserve">
|
||||||
|
<value>End</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_ColumnGameName" xml:space="preserve">
|
||||||
|
<value>Game</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_ColumnStart" xml:space="preserve">
|
||||||
|
<value>Start</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_Name" xml:space="preserve">
|
||||||
|
<value>Session Viewer</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_ErrorNoSessions" xml:space="preserve">
|
||||||
|
<value>There is currently no session data to display.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_btnClose" xml:space="preserve">
|
||||||
|
<value>&Close</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_btnDelete" xml:space="preserve">
|
||||||
|
<value>&Delete Session</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_btnReset" xml:space="preserve">
|
||||||
|
<value>&Reset Filters</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_ColumnMonitorID" xml:space="preserve">
|
||||||
|
<value>MonitorID</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_ConfirmDelete" xml:space="preserve">
|
||||||
|
<value>Are you sure you want to delete the selected session(s)? This cannot be undone.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_lblDateRange" xml:space="preserve">
|
||||||
|
<value>Date Range:</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_lblFilter" xml:space="preserve">
|
||||||
|
<value>Game Filter:</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_WarningSessionsDisabled" xml:space="preserve">
|
||||||
|
<value>Session tracking is currently disabled.[BR][BR]Enable session tracking in Settings if you'd like to track data for individual gaming sessions.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_chkSessionTracking" xml:space="preserve">
|
||||||
|
<value>Enable session tracking</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_WarningAdminStart" xml:space="preserve">
|
||||||
|
<value>Please note that GBM will not "Start with Windows" as Administrator.[BR][BR]See the Online Manual in the Help menu for details.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_ColumnHours" xml:space="preserve">
|
||||||
|
<value>Hours</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_lblTotalHours" xml:space="preserve">
|
||||||
|
<value>Total Hours: [PARAM]</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_ChooseExportLocation" xml:space="preserve">
|
||||||
|
<value>Choose a location for the export file</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_CSV" xml:space="preserve">
|
||||||
|
<value>CSV</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_DefaultExportFileName" xml:space="preserve">
|
||||||
|
<value>Game Session Export</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_XML" xml:space="preserve">
|
||||||
|
<value>XML</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrSessions_ErrorExportFailure" xml:space="preserve">
|
||||||
|
<value>An error occured exporting the session data.[BR][BR][PARAM]</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrSessions_ExportSuccess" xml:space="preserve">
|
||||||
|
<value>The data has been exported successfully.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessionExport_btnCancel" xml:space="preserve">
|
||||||
|
<value>&Cancel</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessionExport_btnExport" xml:space="preserve">
|
||||||
|
<value>&Export</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessionExport_chkCSVHeaders" xml:space="preserve">
|
||||||
|
<value>Export Column Headers (CSV)</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessionExport_FormName" xml:space="preserve">
|
||||||
|
<value>Session Export Options</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessionExport_grpDateType" xml:space="preserve">
|
||||||
|
<value>Date Type</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessionExport_grpExportType" xml:space="preserve">
|
||||||
|
<value>Export Type</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessionExport_grpOptions" xml:space="preserve">
|
||||||
|
<value>Other Options</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessionExport_optCSV" xml:space="preserve">
|
||||||
|
<value>CSV</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessionExport_optCurrentLocale" xml:space="preserve">
|
||||||
|
<value>Current Locale</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessionExport_optUnix" xml:space="preserve">
|
||||||
|
<value>Unix Timestamp</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessionExport_optXML" xml:space="preserve">
|
||||||
|
<value>XML</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSessions_btnExport" xml:space="preserve">
|
||||||
|
<value>&Export Grid</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldIsRegEx" xml:space="preserve">
|
||||||
|
<value>Regular Expression</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameManager_chkRegEx" xml:space="preserve">
|
||||||
|
<value>Regular Expression</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameManager_lblComments" xml:space="preserve">
|
||||||
|
<value>Comments:</value>
|
||||||
|
</data>
|
||||||
|
<data name="AppURL_RegExr" xml:space="preserve">
|
||||||
|
<value>http://regexr.com/?expression=[PARAM]&text=test</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameManager_ErrorRegExFailure" xml:space="preserve">
|
||||||
|
<value>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.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameManager_btnGameID" xml:space="preserve">
|
||||||
|
<value>&Game ID...</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameManager_GameIDEditInfo" xml:space="preserve">
|
||||||
|
<value>The unique Game ID is generated by GBM. Changing this value is not recommended.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameManager_GameIDEditTitle" xml:space="preserve">
|
||||||
|
<value>Edit Game ID</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmFilter_FieldGameID" xml:space="preserve">
|
||||||
|
<value>Game ID</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrMonitorList_ConfirmInitialOfficialGameIDSync" xml:space="preserve">
|
||||||
|
<value>GBM now uses a unique identifier for each game. For the import feature to recognize game configurations from a prior version, they need to use the same identifiers.[BR][BR]Do you want to sync your game identifiers with the official list?[BR][BR]This feature is available anytime from the "Tools" menu. If you use GBM on multiple PCs, please see "Tools" section of the online manual before using this feature.</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrMonitorList_ErrorGameIDVerFailure" xml:space="preserve">
|
||||||
|
<value>This file cannot be used to sync game indentifiers. It was created with an older version of GBM.</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrMonitorList_ImportVersionWarning" xml:space="preserve">
|
||||||
|
<value>This export file was created with a version of GBM prior to 1.1.0 and does not contain unique game identifiers.[BR][BR]Do you still want to import configurations from this file? (Not Recommended)</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrMonitorList_ConfirmFileGameIDSync" xml:space="preserve">
|
||||||
|
<value>Do you want to sync your game identifiers with this export file?[BR][BR]You should only do this if you're managing your own game configurations. If you use GBM on multiple PCs, please see "Tools" section of the online manual before using this feature.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_gMonToolsSyncGameID" xml:space="preserve">
|
||||||
|
<value>S&ync Game IDs</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_gMonToolsSyncGameIDFile" xml:space="preserve">
|
||||||
|
<value>&File...</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_gMonToolsSyncGameIDOfficial" xml:space="preserve">
|
||||||
|
<value>&Official List...</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrMonitorList_ConfirmOfficialGameIDSync" xml:space="preserve">
|
||||||
|
<value>Do you want to sync your game identifiers with the official game list?[BR][BR]This allows the import feature to recognize game configurations from a prior version. If you use GBM on multiple PCs, please see "Tools" section of the online manual before using this feature.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_btnResetMessages" xml:space="preserve">
|
||||||
|
<value>&Reset Warnings</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_ConfirmMessageReset" xml:space="preserve">
|
||||||
|
<value>Do you want to reset all hidden warnings and messages?</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon_New" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\New.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon_Update" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\Update.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrMonitorList_GameIDSyncCompleted" xml:space="preserve">
|
||||||
|
<value>Sync Complete.[BR][BR][PARAM] game configurations were matched and updated.</value>
|
||||||
|
</data>
|
||||||
|
<data name="App_BackupOnLaunchFileDescription" xml:space="preserve">
|
||||||
|
<value>launch</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_chkBackupOnLaunch" xml:space="preserve">
|
||||||
|
<value>Backup GBM data files on launch</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_ErrorEndChildProcess" xml:space="preserve">
|
||||||
|
<value>An error occured when attempting to end a process associated with [PARAM].</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_ErrorStartChildProcess" xml:space="preserve">
|
||||||
|
<value>An error occured when attempting to start a process associated with [PARAM].</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_btnAdd" xml:space="preserve">
|
||||||
|
<value>+</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_btnCancel" xml:space="preserve">
|
||||||
|
<value>&Cancel</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_btnClose" xml:space="preserve">
|
||||||
|
<value>C&lose</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_btnDelete" xml:space="preserve">
|
||||||
|
<value>-</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_btnProcessBrowse" xml:space="preserve">
|
||||||
|
<value>...</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_btnSave" xml:space="preserve">
|
||||||
|
<value>&Save</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_ConfirmDelete" xml:space="preserve">
|
||||||
|
<value>Are you sure you want to delete [PARAM]? This cannot be undone.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_ErrorDupe" xml:space="preserve">
|
||||||
|
<value>A process with this name already exists.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_ErrorPathNotFound" xml:space="preserve">
|
||||||
|
<value>The process does not exist.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_ErrorValidName" xml:space="preserve">
|
||||||
|
<value>You must enter a valid name for this process.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_ErrorValidPath" xml:space="preserve">
|
||||||
|
<value>You must choose a valid process.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_FormName" xml:space="preserve">
|
||||||
|
<value>Process Manager</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_grpProcess" xml:space="preserve">
|
||||||
|
<value>Configuration</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_lblName" xml:space="preserve">
|
||||||
|
<value>Name:</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_lblPath" xml:space="preserve">
|
||||||
|
<value>Path:</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_gMonSetupProcessManager" xml:space="preserve">
|
||||||
|
<value>&Process Manager...</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_ChooseProcess" xml:space="preserve">
|
||||||
|
<value>Choose a file that starts the process</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_Executable" xml:space="preserve">
|
||||||
|
<value>Executable</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmProcessManager_chkKillProcess" xml:space="preserve">
|
||||||
|
<value>Kill process when game is closed</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameProcesses_btnAdd" xml:space="preserve">
|
||||||
|
<value>></value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameProcesses_btnClose" xml:space="preserve">
|
||||||
|
<value>&Close</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameProcesses_btnOpenProcesses" xml:space="preserve">
|
||||||
|
<value>&Process Manager...</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameProcesses_btnRemove" xml:space="preserve">
|
||||||
|
<value><</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameProcesses_FormNameMulti" xml:space="preserve">
|
||||||
|
<value>Edit Processes for Multiple Games</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameProcesses_FormNameSingle" xml:space="preserve">
|
||||||
|
<value>Edit Processes for [PARAM]</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameProcesses_lblGameProccesses" xml:space="preserve">
|
||||||
|
<value>Current Processes</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmGameProcesses_lblProcesses" xml:space="preserve">
|
||||||
|
<value>Available Processes</value>
|
||||||
|
</data>
|
||||||
|
<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>
|
||||||
|
<data name="frmSettings_chkUseGameID" xml:space="preserve">
|
||||||
|
<value>Use Game ID for folder and file names</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrMonitorList_ErrorSyncCancel" xml:space="preserve">
|
||||||
|
<value>The sync was aborted by the user.</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrMonitorList_WarningSyncProtection" xml:space="preserve">
|
||||||
|
<value>The database GBM is attempting to sync with appears to be empty, syncing with this database will delete all data. Do you still want to sync with this database? (Not Recommended)</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_chkDisableSyncMessages" xml:space="preserve">
|
||||||
|
<value>Disable sync event messages</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_grpBackupConfirmations" xml:space="preserve">
|
||||||
|
<value>Backup Confirmations</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_grpGameMonitoringOptions" xml:space="preserve">
|
||||||
|
<value>Game Monitoring Options</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_grpLogOptions" xml:space="preserve">
|
||||||
|
<value>Log Options</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmSettings_lstSettings_Startup" xml:space="preserve">
|
||||||
|
<value>Startup</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrBackup_ConfirmOverwriteRelative" xml:space="preserve">
|
||||||
|
<value>A file with the same name already exists in the backup folder.[BR][BR]This game stores saves in a relative location, you may need to restore the current backup if the game was recently re-installed.[BR][BR]Do you want to overwrite this file?</value>
|
||||||
|
</data>
|
||||||
|
<data name="mgrPath_SpecialPathError" xml:space="preserve">
|
||||||
|
<value>An error occured while determining a required system path. [BR][BR]The environment value for [PARAM] is empty.[BR][BR]The application will now exit.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_ErrorGameDetails" xml:space="preserve">
|
||||||
|
<value>An error occured while obtaining the details of the detected game.</value>
|
||||||
|
</data>
|
||||||
|
<data name="frmMain_ErrorGameIcon" xml:space="preserve">
|
||||||
|
<value>An error occured while extracting the executable icon.</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 926 B |
Binary file not shown.
|
After Width: | Height: | Size: 891 B |
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 358 KiB |
+13
-21
@@ -1,33 +1,25 @@
|
|||||||
Game Backup Monitor v0.98 Readme
|
Game Backup Monitor v1.1.4 Readme
|
||||||
http://mikemaximus.github.io/gbm-web/
|
http://mikemaximus.github.io/gbm-web/
|
||||||
gamebackupmonitor@gmail.com
|
gamebackupmonitor@gmail.com
|
||||||
|
|
||||||
September 1, 2016
|
August 25th, 2018
|
||||||
|
|
||||||
Disclaimer:
|
New in 1.1.4
|
||||||
|
|
||||||
This is beta release software. You may still encounter some bugs.
|
All Platforms:
|
||||||
|
|
||||||
New in 0.98
|
- Changed method of handling required OS environment paths and added a new path check on startup.
|
||||||
|
- Incorrect conflict warnings will no longer be shown in some situations when running a backup configuration with "Save Multiple Backups" enabled.
|
||||||
|
- Fixed the precision of "Total Hours" on the Session Viewer, it now always rounds to 2 decimal places.
|
||||||
|
|
||||||
- (All) Redesigned GBM's ability to manage multiple backups per game.
|
Windows:
|
||||||
- The "Timestamp each backup" option has been renamed "Save multiple backups".
|
|
||||||
- You can limit the amount of backups you keep for each game by setting a limit (2 to 100).
|
|
||||||
- GBM will keep your backup folder clean by automatically deleting old backups as limits are reached or modified.
|
|
||||||
- The Game Manager now allows you to browse and manage ALL backups for each game, not just the latest backup.
|
|
||||||
- (All) Using "Monitor Only" no longer puts anys limitations on the game configuration or available features.
|
|
||||||
- (Windows Installer) The installer will now properly go into upgrade mode if a prior version of GBM is installed. Note: 32-bit and 64-bit qualify as different versions.
|
|
||||||
- (Windows Installer) The installer will now create an uninstall entry in Add/Remove Programs (Apps & Features).
|
|
||||||
- (Linux) 64-bit games running in Wine will now be properly detected.
|
|
||||||
- (Linux) Add Game Wizard will no longer remove all extensions when selecting an executable.
|
|
||||||
- (Linux) GBM now prefers to use an absolute path when creating Linux game configurations.
|
|
||||||
|
|
||||||
Important Upgrade Information:
|
- GBM will no longer keep an open file handle on detected processes and custom icons.
|
||||||
|
|
||||||
- The v0.98 Game Manager will not detect old backup files made using the "Timestamp each backup" setting in prior versions.
|
Linux:
|
||||||
- Configurations using the "Timestamp each backup" option will have "Save multiple backups" automatically enabled with a backup limit of 5.
|
|
||||||
- If "Timestamp each backup" is currently set to sync, then "Save multiple backups" will also be set to sync after upgrading.
|
|
||||||
|
|
||||||
For more information regarding Linux support read the FAQ at http://mikemaximus.github.io/gbm-web/linux.html
|
- Sorting by "Hours" in the Session Viewer will no longer crash GBM on certain systems.
|
||||||
|
- GBM no longer attempts to get icons from a Linux binary.
|
||||||
|
- Removed compression from GBM icon to prevent issues with recent versions of imagemagick.
|
||||||
|
|
||||||
The entire version history of GBM releases is available at http://mikemaximus.github.io/gbm-web/versionhistory.html
|
The entire version history of GBM releases is available at http://mikemaximus.github.io/gbm-web/versionhistory.html
|
||||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,674 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
# [Game Backup Monitor] (http://mikemaximus.github.io/gbm-web/)
|
# [Game Backup Monitor](http://mikemaximus.github.io/gbm-web/)
|
||||||
|
|
||||||
![Screenshot] (http://mikemaximus.github.io/gbm-web/images/manual/manual_01.jpg)
|

|
||||||
|
|
||||||
Game Backup Monitor is a simple, but flexible application that detects games as you play them. Once you finish playing a game, a backup of the saved games will be made automatically using 7-Zip compression. GBM can be used on a single computer, or on multiple computers to effectively add cloud support to any game or application.
|
Game Backup Monitor is a simple, but flexible application that detects games as you play them. Once you finish playing a game, a backup of the saved games will be made automatically using 7-Zip compression. GBM can be used on a single computer, or on multiple computers to effectively add cloud support to any game or application.
|
||||||
|
|
||||||
**License**: GNU General Public License version 3.0 (GPLv3)<br />
|
**License**: GNU General Public License version 3.0 (GPLv3)<br />
|
||||||
**Language**: English Only<br />
|
**Language**: English ([Translation FAQ](http://mikemaximus.github.io/gbm-web/translations.html))<br />
|
||||||
**Platform**: Windows (.NET 4) & Linux (Mono)
|
**Platform**: Windows (.NET 4) & Linux (Mono)
|
||||||
|
|
||||||
[About Game Backup Monitor] (http://mikemaximus.github.io/gbm-web/about.html) <br />
|
[About Game Backup Monitor](http://mikemaximus.github.io/gbm-web/about.html) <br />
|
||||||
[Game Backup Monitor FAQ] (http://mikemaximus.github.io/gbm-web/faq.html) <br />
|
[Contribute to Game Backup Monitor](http://mikemaximus.github.io/gbm-web/contribute.html) <br />
|
||||||
[Game Backup Monitor Manual] (http://mikemaximus.github.io/gbm-web/manual.html) <br />
|
[Game Backup Monitor FAQ](http://mikemaximus.github.io/gbm-web/faq.html) <br />
|
||||||
[List of Preconfigured Games] (http://mikemaximus.github.io/gbm-web/GBM_Official.xml) <br /> <br />
|
[Game Backup Monitor Manual](http://mikemaximus.github.io/gbm-web/manual.html) <br />
|
||||||
Updates regarding this project are available via the [Game Backup Monitor web site] (http://mikemaximus.github.io/gbm-web/).
|
[Preconfigured Windows Games](http://mikemaximus.github.io/gbm-web/GBM_Official.xml) <br />
|
||||||
|
[Preconfigured Linux Games](http://mikemaximus.github.io/gbm-web/GBM_Official_Linux.xml) <br /> <br />
|
||||||
|
Updates regarding this project are available via the [Game Backup Monitor web site](http://mikemaximus.github.io/gbm-web/).
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
Package: gbm
|
||||||
|
Architecture: all
|
||||||
|
Maintainer: Sebastian Riedel <git@basxto.de>
|
||||||
|
Priority: optional
|
||||||
|
Version: 1.0.8
|
||||||
|
Homepage: https://mikemaximus.github.io/gbm-web/
|
||||||
|
Bugs: https://github.com/MikeMaximus/gbm/issues
|
||||||
|
Depends: mono-vbnc, libsqlite3-0, p7zip-full
|
||||||
|
Recommends: libnotify-bin
|
||||||
|
Description: Automatically backup your saved games!
|
||||||
Executable
+13
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
XDG_DESKTOP_MENU="`which xdg-desktop-menu 2> /dev/null`"
|
||||||
|
XDG_ICON_RESOURCE="`which xdg-icon-resource 2> /dev/null`"
|
||||||
|
|
||||||
|
if [ -x "$XDG_DESKTOP_MENU" ]; then
|
||||||
|
xdg-desktop-menu forceupdate --mode system;
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -x "$XDG_ICON_RESOURCE" ]; then
|
||||||
|
xdg-icon-resource forceupdate --mode system;
|
||||||
|
fi
|
||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Type=Application
|
||||||
|
Version=1.0
|
||||||
|
Name=Game Backup Monitor
|
||||||
|
Comment=Monitors games and backs up their savegames
|
||||||
|
Comment[de]=Beobachtet Spiele und sichert ihre Spielstände
|
||||||
|
|
||||||
|
TryExec=mono
|
||||||
|
Exec=gbm
|
||||||
|
Terminal=false
|
||||||
|
|
||||||
|
Icon=gbm
|
||||||
|
Categories=Utility;Archiving;Monitor
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
#!/bin/sh -e
|
||||||
|
# prepare
|
||||||
|
if [ -z "${XDG_DATA_HOME}" ]; then
|
||||||
|
XDG_DATA_HOME="${HOME}/.local/share"
|
||||||
|
fi
|
||||||
|
mkdir -p "${XDG_DATA_HOME}/gbm"
|
||||||
|
pidfile="${XDG_DATA_HOME}/gbm/pid"
|
||||||
|
|
||||||
|
# check whether pid file exists and process is running
|
||||||
|
if ( ! [ -e "${pidfile}" ] || ! pgrep -F "${pidfile}" ); then
|
||||||
|
|
||||||
|
# check for all dependencies
|
||||||
|
for prog in mono readlink df 7za;do
|
||||||
|
[ -n "`whereis -b ${prog} | cut -sd' ' -f2`" ] || (echo "Please install ${prog}" && exit 1);
|
||||||
|
done
|
||||||
|
for lib in libsqlite3;do
|
||||||
|
[ -n "`ldconfig -p | grep ${lib}`" ] || (echo "Please install ${lib}" && exit 1);
|
||||||
|
done
|
||||||
|
|
||||||
|
# directory this script is located in
|
||||||
|
dir="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
|
||||||
|
echo "Located in ${dir}";
|
||||||
|
gbmpath='./';
|
||||||
|
|
||||||
|
# locate GBM.exe
|
||||||
|
if [ "${dir}" = '/usr/bin' ] && [ -s '/usr/share/gbm/GBM.exe' ]; then
|
||||||
|
gbmpath='/usr/share/gbm/';
|
||||||
|
elif [ "${dir}" = '/usr/local/bin' ] && [ -s '/usr/local/share/gbm/GBM.exe' ]; then
|
||||||
|
gbmpath='/usr/local/share/gbm/';
|
||||||
|
elif [ ! -s './GBM.exe' ]; then
|
||||||
|
echo 'GBM.exe not found';
|
||||||
|
exit 2;
|
||||||
|
fi
|
||||||
|
|
||||||
|
# pass our arguments to GBM and run it in background
|
||||||
|
mono --desktop "${gbmpath}GBM.exe" "$@" &
|
||||||
|
# store pid and wait for process to end
|
||||||
|
echo $! > "${pidfile}"
|
||||||
|
wait $!
|
||||||
|
rm "${pidfile}"
|
||||||
|
exit $?;
|
||||||
|
else
|
||||||
|
echo "GBM is already running"
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
ICONSIZES := 16 24 32 48 64 72 96 128 256
|
||||||
|
IMGMAGICK := $(shell command -v convert 2> /dev/null)
|
||||||
|
DESTDIR :=
|
||||||
|
PREFIX := usr/local
|
||||||
|
define \n
|
||||||
|
|
||||||
|
|
||||||
|
endef
|
||||||
|
|
||||||
|
install: GBM.exe $(foreach size,$(ICONSIZES),gbm_$(size)x$(size).png)
|
||||||
|
#rename it in a way, it can easily started from terminal
|
||||||
|
install -d $(DESTDIR)/$(PREFIX)/bin;
|
||||||
|
install gbm.sh $(DESTDIR)/$(PREFIX)/bin/gbm;
|
||||||
|
install -d $(DESTDIR)/$(PREFIX)/share/gbm/;
|
||||||
|
install GBM.exe $(DESTDIR)/$(PREFIX)/share/gbm/;
|
||||||
|
#install icon in different sizes
|
||||||
|
$(foreach size,$(ICONSIZES),install -d $(DESTDIR)/$(PREFIX)/share/icons/hicolor/$(size)x$(size)/apps/;$(\n))
|
||||||
|
$(foreach size,$(ICONSIZES),install -m644 gbm_$(size)x$(size).png $(DESTDIR)/$(PREFIX)/share/icons/hicolor/$(size)x$(size)/apps/gbm.png;$(\n))
|
||||||
|
#install .desktop file, which is used for running gbm from desktop and menus
|
||||||
|
install -d $(DESTDIR)/$(PREFIX)/share/applications/
|
||||||
|
install -m644 gbm.desktop $(DESTDIR)/$(PREFIX)/share/applications/gbm.desktop
|
||||||
|
ifeq ($(DESTDIR),)
|
||||||
|
-xdg-icon-resource forceupdate --mode system;
|
||||||
|
-xdg-desktop-menu forceupdate --mode system;
|
||||||
|
endif
|
||||||
|
|
||||||
|
uninstall: $(DESTDIR)/$(PREFIX)/bin/gbm
|
||||||
|
-rm $(DESTDIR)/$(PREFIX)/bin/gbm;
|
||||||
|
-rm -r $(DESTDIR)/$(PREFIX)/share/gbm/;
|
||||||
|
$(foreach size,$(ICONSIZES),-rm $(DESTDIR)/$(PREFIX)/share/icons/hicolor/$(size)x$(size)/apps/gbm.png;$(\n))
|
||||||
|
-rm $(DESTDIR)/$(PREFIX)/share/applications/gbm.desktop
|
||||||
|
ifeq ($(DESTDIR),)
|
||||||
|
-xdg-icon-resource forceupdate --mode system;
|
||||||
|
-xdg-desktop-menu forceupdate --mode system;
|
||||||
|
endif
|
||||||
|
|
||||||
|
#must be root
|
||||||
|
deb: DESTDIR := deb-package/gbm
|
||||||
|
deb: PREFIX := usr
|
||||||
|
deb: install
|
||||||
|
cd deb-package;dpkg-deb --build gbm
|
||||||
|
|
||||||
|
gbm_%.png: gbm.ico
|
||||||
|
ifndef IMGMAGICK
|
||||||
|
$(error "convert is not available, please install imagemagick")
|
||||||
|
endif
|
||||||
|
#extracts the correct ico index appended to the filename from identify’s output
|
||||||
|
$(eval INDEX := $(shell identify gbm.ico | grep $* | cut -d" " -f1;))
|
||||||
|
convert '$(INDEX)' '$@';
|
||||||
Reference in New Issue
Block a user