Use Computer Config
This commit is contained in:
@@ -19,7 +19,7 @@ Module Module1
|
|||||||
Dim opath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
|
Dim opath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
|
||||||
Dim oLogConfig As New LogConfig(LogConfig.PathType.AppData, Nothing, Nothing,
|
Dim oLogConfig As New LogConfig(LogConfig.PathType.AppData, Nothing, Nothing,
|
||||||
"Digital Data",
|
"Digital Data",
|
||||||
"WIDigCons")
|
"WIDig")
|
||||||
|
|
||||||
LOGCONFIG = oLogConfig
|
LOGCONFIG = oLogConfig
|
||||||
LOGGER = LOGCONFIG.GetLogger
|
LOGGER = LOGCONFIG.GetLogger
|
||||||
@@ -82,12 +82,16 @@ Module Module1
|
|||||||
|
|
||||||
End Function
|
End Function
|
||||||
Public Sub InitUserConfig()
|
Public Sub InitUserConfig()
|
||||||
Dim oUserAppDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
|
|
||||||
oUserAppDataPath = oUserAppDataPath & "\Digital Data\WIDigDat"
|
Dim oProgramDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "Digital Data", "WIDig")
|
||||||
Dim oCommonAppDataPath = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)
|
Dim oUserAppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Digital Data", "WIDig")
|
||||||
CONFIG = New ConfigManager(Of ClassConfig)(LOGCONFIG, oUserAppDataPath, System.AppDomain.CurrentDomain.BaseDirectory, oCommonAppDataPath)
|
CONFIG = New ConfigManager(Of ClassConfig)(LOGCONFIG, oUserAppDataPath, oProgramDataPath)
|
||||||
System.Console.WriteLine($"Config loaded!")
|
|
||||||
LOGGER.Info("Config loaded")
|
'oUserAppDataPath = oUserAppDataPath & "\Digital Data\WIDigDat"
|
||||||
|
'Dim oCommonAppDataPath = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)
|
||||||
|
'CONFIG = New ConfigManager(Of ClassConfig)(LOGCONFIG, oUserAppDataPath, System.AppDomain.CurrentDomain.BaseDirectory, oCommonAppDataPath)
|
||||||
|
'System.Console.WriteLine($"Config loaded!")
|
||||||
|
'LOGGER.Info("Config loaded")
|
||||||
'Settings_Load()
|
'Settings_Load()
|
||||||
End Sub
|
End Sub
|
||||||
Public Function InitDatabase() As Boolean
|
Public Function InitDatabase() As Boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user