Remove ClassDatabase, Replace with Database.MSSQL Module
This commit is contained in:
@@ -28,7 +28,7 @@ Public Class frmLicense
|
||||
Dim result As String = Me._lizenzManager.EncodeLicenseKey(txtNewlicences.Text & "#" & dtpGueltig_GI.Text & "#" & txtProfile.Text & "#" & txtHotKey.Text, "#DigitalData35452!#")
|
||||
txtlicensekey.Text = result
|
||||
Dim sql As String = "UPDATE TBGI_CONFIGURATION SET LICENSEKEY = '" & result & "' where guid = 1"
|
||||
If ClassDatabase.Execute_non_Query(sql, True) = True Then
|
||||
If DATABASE_ECM.ExecuteNonQuery(sql) = True Then
|
||||
Refresh_Licence(True)
|
||||
End If
|
||||
|
||||
@@ -44,7 +44,7 @@ Public Class frmLicense
|
||||
Me._lizenzManager = New ClassLicenseManager("#DigitalData35452!#", "")
|
||||
Dim sql As String = "SELECT LICENSEKEY FROM TBGI_CONFIGURATION WHERE GUID = 1"
|
||||
|
||||
Dim lic As String = ClassDatabase.Execute_Scalar(sql, MyConnectionString)
|
||||
Dim lic As String = DATABASE_ECM.GetScalarValue(sql)
|
||||
Dim licString = Me._lizenzManager.DecodeLicenseKey(lic)
|
||||
|
||||
Dim split() = licString.ToString.Split("#")
|
||||
|
||||
Reference in New Issue
Block a user