30 lines
1.2 KiB
VB.net
30 lines
1.2 KiB
VB.net
Imports System.Configuration
|
|
Imports System.IO
|
|
Imports DigitalData.Modules.Logging
|
|
Public Class frmConfigUser
|
|
Private _Logger As Logger
|
|
|
|
Private Sub LinkLabel1_LinkClicked(sender As Object, e As LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
|
|
' Specify that the link was visited.
|
|
Me.LinkLabel1.LinkVisited = True
|
|
' Navigate to a URL.
|
|
System.Diagnostics.Process.Start("http://www.didalog.de/Support")
|
|
End Sub
|
|
|
|
Private Sub frmUserBasics_Load(sender As Object, e As EventArgs) Handles Me.Load
|
|
_Logger = My.LogConfig.GetLogger()
|
|
End Sub
|
|
|
|
Private Sub btnLogFolder_Click(sender As Object, e As EventArgs) Handles btnLogFolder.Click
|
|
Process.Start(My.LogConfig.LogDirectory)
|
|
End Sub
|
|
|
|
Private Sub btnAppFolder_Click(sender As Object, e As EventArgs) Handles btnAppFolder.Click
|
|
Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData))
|
|
End Sub
|
|
|
|
Private Sub SimpleButton1_Click(sender As Object, e As EventArgs) Handles SimpleButton1.Click
|
|
Dim config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal)
|
|
MessageBox.Show(config.FilePath)
|
|
End Sub
|
|
End Class |