DevExpress-Update
frmCategoryEdit umbenannt in frmSettings Weitere (erfolglose) Tests, um die richtige Zeitzone bei Google-Kalender-Terminen zu hinterlegen
This commit is contained in:
1 parent
41e0bf9512
commit
3fca229f52
17 files changed
+277
-131
No files matched your search
@@ -2,6 +2,8 @@
|
||||
Public Class Settings
|
||||
|
||||
Public Property Categories As List(Of Category)
|
||||
Public Property DefaultTimezoneId As String
|
||||
|
||||
|
||||
Public Sub New()
|
||||
Load()
|
||||
@@ -17,10 +19,17 @@ Public Class Settings
|
||||
Else
|
||||
Categories = New List(Of Category)
|
||||
End If
|
||||
|
||||
If My.Settings.DefaultTimezoneId Is Nothing Then
|
||||
DefaultTimezoneId = TimeZoneInfo.Local.Id
|
||||
Else
|
||||
DefaultTimezoneId = My.Settings.DefaultTimezoneId
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Public Sub Save()
|
||||
My.Settings.CategoryList = JsonConvert.SerializeObject(Categories)
|
||||
My.Settings.DefaultTimezoneId = DefaultTimezoneId
|
||||
My.Settings.Save()
|
||||
End Sub
|
||||
|
||||
|
||||
Reference in new issue
Block a user