Pascom API

This commit is contained in:
ms
2025-02-18 16:04:47 +01:00
parent 6d7cf5b4e2
commit d263082539
5 changed files with 23 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ Partial Class Main
Me.chkdebug = New System.Windows.Forms.CheckBox() Me.chkdebug = New System.Windows.Forms.CheckBox()
Me.Button1 = New System.Windows.Forms.Button() Me.Button1 = New System.Windows.Forms.Button()
Me.btnShowAnydesk = New System.Windows.Forms.Button() Me.btnShowAnydesk = New System.Windows.Forms.Button()
Me.lblVersion = New System.Windows.Forms.Label()
Me.SuspendLayout() Me.SuspendLayout()
' '
'btnLogOFF 'btnLogOFF
@@ -153,6 +154,15 @@ Partial Class Main
Me.btnShowAnydesk.UseVisualStyleBackColor = True Me.btnShowAnydesk.UseVisualStyleBackColor = True
Me.btnShowAnydesk.Visible = False Me.btnShowAnydesk.Visible = False
' '
'lblVersion
'
Me.lblVersion.AutoSize = True
Me.lblVersion.Location = New System.Drawing.Point(8, 222)
Me.lblVersion.Name = "lblVersion"
Me.lblVersion.Size = New System.Drawing.Size(39, 13)
Me.lblVersion.TabIndex = 39
Me.lblVersion.Text = "Label2"
'
'Main 'Main
' '
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
@@ -160,6 +170,7 @@ Partial Class Main
Me.BackColor = System.Drawing.SystemColors.ControlLightLight Me.BackColor = System.Drawing.SystemColors.ControlLightLight
Me.ClientSize = New System.Drawing.Size(208, 291) Me.ClientSize = New System.Drawing.Size(208, 291)
Me.ControlBox = False Me.ControlBox = False
Me.Controls.Add(Me.lblVersion)
Me.Controls.Add(Me.btnShowAnydesk) Me.Controls.Add(Me.btnShowAnydesk)
Me.Controls.Add(Me.Button1) Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.chkdebug) Me.Controls.Add(Me.chkdebug)
@@ -193,4 +204,5 @@ Partial Class Main
Friend WithEvents chkdebug As CheckBox Friend WithEvents chkdebug As CheckBox
Friend WithEvents Button1 As Button Friend WithEvents Button1 As Button
Friend WithEvents btnShowAnydesk As Button Friend WithEvents btnShowAnydesk As Button
Friend WithEvents lblVersion As Label
End Class End Class

View File

@@ -22,6 +22,7 @@ Public Class Main
Private Sub Main_Load(sender As Object, e As EventArgs) Handles MyBase.Load Private Sub Main_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Label1.Text = "" Label1.Text = ""
Me.Text = "TSAnmeldung " & My.Resources.ProgVersion Me.Text = "TSAnmeldung " & My.Resources.ProgVersion
lblVersion.Text = My.Resources.ProgVersion
SendEvents() SendEvents()

View File

@@ -81,7 +81,7 @@ Namespace My.Resources
End Property End Property
'''<summary> '''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die 1.2.2.1 ähnelt. ''' Sucht eine lokalisierte Zeichenfolge, die 1.2.2.2 ähnelt.
'''</summary> '''</summary>
Public ReadOnly Property ProgVersion() As String Public ReadOnly Property ProgVersion() As String
Get Get

View File

@@ -118,7 +118,7 @@
<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>
<data name="ProgVersion" xml:space="preserve"> <data name="ProgVersion" xml:space="preserve">
<value>1.2.2.1</value> <value>1.2.2.2</value>
</data> </data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="Reload20" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Reload20" type="System.Resources.ResXFileRef, System.Windows.Forms">

View File

@@ -5,7 +5,7 @@ Public Class cPascom
' Declare Function meh Lib "ChilkatDotNet47.dll" () As Integer ' Declare Function meh Lib "ChilkatDotNet47.dll" () As Integer
Dim API_USER_AUTHORIZATION = "bW9ieTpnWlhTSVprTnhmaUQxOEU=" Dim API_USER_AUTHORIZATION = "" '"bW9ieTpnWlhTSVprTnhmaUQxOEU="
Dim Arbeitsplatz As String = "" Dim Arbeitsplatz As String = ""
Dim TelUrl As String = "" Dim TelUrl As String = ""
@@ -15,6 +15,13 @@ Public Class cPascom
If ds.Tables(0).Rows.Count > 0 Then If ds.Tables(0).Rows.Count > 0 Then
TelUrl = ds.Tables(0).Rows(0).Item(0).ToString TelUrl = ds.Tables(0).Rows(0).Item(0).ToString
End If End If
ds.Clear()
cSQL.SQL2DS("SELECT Parameter FROM [Doku].[dbo].[TbL_Dienste] where name = 'PascomAPICred'", ds)
If ds.Tables(0).Rows.Count > 0 Then
API_USER_AUTHORIZATION = ds.Tables(0).Rows(0).Item(0).ToString
End If
End Sub End Sub