MS NotifyIcon logging Init
This commit is contained in:
parent
f7f72fc3ae
commit
2ad498c8f2
@ -14,6 +14,9 @@
|
|||||||
<setting name="UseAppConfigConString" serializeAs="String">
|
<setting name="UseAppConfigConString" serializeAs="String">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</setting>
|
</setting>
|
||||||
|
<setting name="GHOSTUSER" serializeAs="String">
|
||||||
|
<value>SchreiberM</value>
|
||||||
|
</setting>
|
||||||
</DD_Clipboard_Watcher.My.MySettings>
|
</DD_Clipboard_Watcher.My.MySettings>
|
||||||
<DevExpress.LookAndFeel.Design.AppSettings>
|
<DevExpress.LookAndFeel.Design.AppSettings>
|
||||||
<setting name="DefaultAppSkin" serializeAs="String">
|
<setting name="DefaultAppSkin" serializeAs="String">
|
||||||
|
|||||||
@ -269,7 +269,7 @@ Public Class ClassInit
|
|||||||
If CheckModuleData() = False Then
|
If CheckModuleData() = False Then
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
Dim oSQL1 = String.Format("SELECT * FROM VWDD_USER_CLIENT WHERE UPPER(USERNAME) = UPPER('{0}')", Environment.UserName)
|
Dim oSQL1 = String.Format("SELECT * FROM VWDD_USER_CLIENT WHERE UPPER(USERNAME) = UPPER('{0}')", USER_USERNAME)
|
||||||
DT_CLIENT_USER = _DataASorDB.GetDatatable(oSQL1, "VWDD_USER_CLIENT", $"USER_ID = {USER_ID}", "", "")
|
DT_CLIENT_USER = _DataASorDB.GetDatatable(oSQL1, "VWDD_USER_CLIENT", $"USER_ID = {USER_ID}", "", "")
|
||||||
|
|
||||||
'If APPSERVER_ACTIVE = True Then
|
'If APPSERVER_ACTIVE = True Then
|
||||||
|
|||||||
@ -82,6 +82,15 @@ Namespace My
|
|||||||
Return CType(Me("UseAppConfigConString"),Boolean)
|
Return CType(Me("UseAppConfigConString"),Boolean)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
<Global.System.Configuration.ApplicationScopedSettingAttribute(), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Configuration.DefaultSettingValueAttribute("SchreiberM")> _
|
||||||
|
Public ReadOnly Property GHOSTUSER() As String
|
||||||
|
Get
|
||||||
|
Return CType(Me("GHOSTUSER"),String)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
End Class
|
End Class
|
||||||
End Namespace
|
End Namespace
|
||||||
|
|
||||||
|
|||||||
@ -16,5 +16,8 @@
|
|||||||
<Setting Name="UseAppConfigConString" Type="System.Boolean" Scope="Application">
|
<Setting Name="UseAppConfigConString" Type="System.Boolean" Scope="Application">
|
||||||
<Value Profile="(Default)">True</Value>
|
<Value Profile="(Default)">True</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
|
<Setting Name="GHOSTUSER" Type="System.String" Scope="Application">
|
||||||
|
<Value Profile="(Default)">SchreiberM</Value>
|
||||||
|
</Setting>
|
||||||
</Settings>
|
</Settings>
|
||||||
</SettingsFile>
|
</SettingsFile>
|
||||||
2
app/DD_Clipboard_Searcher/frmMain.Designer.vb
generated
2
app/DD_Clipboard_Searcher/frmMain.Designer.vb
generated
@ -216,7 +216,7 @@ Partial Class frmMain
|
|||||||
Me.NotifyIconMain.BalloonTipTitle = "Title"
|
Me.NotifyIconMain.BalloonTipTitle = "Title"
|
||||||
Me.NotifyIconMain.ContextMenuStrip = Me.cmstrpNotifyIcon
|
Me.NotifyIconMain.ContextMenuStrip = Me.cmstrpNotifyIcon
|
||||||
Me.NotifyIconMain.Icon = CType(resources.GetObject("NotifyIconMain.Icon"), System.Drawing.Icon)
|
Me.NotifyIconMain.Icon = CType(resources.GetObject("NotifyIconMain.Icon"), System.Drawing.Icon)
|
||||||
Me.NotifyIconMain.Text = "NotifyIcon1"
|
Me.NotifyIconMain.Text = "Clipboard Watcher"
|
||||||
Me.NotifyIconMain.Visible = True
|
Me.NotifyIconMain.Visible = True
|
||||||
'
|
'
|
||||||
'cmstrpNotifyIcon
|
'cmstrp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AGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
|
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
|
||||||
|
|||||||
1
app/DD_Clipboard_Searcher/frmSplash.Designer.vb
generated
1
app/DD_Clipboard_Searcher/frmSplash.Designer.vb
generated
@ -105,6 +105,7 @@ Partial Class frmSplash
|
|||||||
Me.Controls.Add(Me.PictureBox2)
|
Me.Controls.Add(Me.PictureBox2)
|
||||||
Me.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
Me.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
|
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
|
||||||
|
Me.KeyPreview = True
|
||||||
Me.Name = "frmSplash"
|
Me.Name = "frmSplash"
|
||||||
Me.ShowIcon = False
|
Me.ShowIcon = False
|
||||||
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||||
|
|||||||
@ -48,7 +48,10 @@ Public NotInheritable Class frmSplash
|
|||||||
Thread.Sleep(200)
|
Thread.Sleep(200)
|
||||||
|
|
||||||
Worker.ReportProgress(CalcProgress(4), "Initializing User-Configuration")
|
Worker.ReportProgress(CalcProgress(4), "Initializing User-Configuration")
|
||||||
If Init.InitUserLogin = False Then
|
If My.Settings.GHOSTUSER <> String.Empty Then
|
||||||
|
Logger.Info($"GHOSTLogin [{My.Settings.GHOSTUSER} is active!")
|
||||||
|
End If
|
||||||
|
If Init.InitUserLogin(My.Settings.GHOSTUSER) = False Then
|
||||||
If ERROR_INIT = "" Then
|
If ERROR_INIT = "" Then
|
||||||
ERROR_INIT = "INVALID USER"
|
ERROR_INIT = "INVALID USER"
|
||||||
End If
|
End If
|
||||||
@ -80,4 +83,10 @@ Public NotInheritable Class frmSplash
|
|||||||
' Wenn kein Fehler, Splashscreen schließen
|
' Wenn kein Fehler, Splashscreen schließen
|
||||||
Close()
|
Close()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub frmSplash_KeyDown(sender As Object, e As KeyEventArgs) Handles MyBase.KeyDown
|
||||||
|
If e.KeyCode = Keys.Escape Then
|
||||||
|
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user