Add Heartbeat Function to Service, Add Timer to ClientSuite Service Startup check
This commit is contained in:
@@ -1,7 +1,21 @@
|
||||
Imports System.IO
|
||||
|
||||
''' <summary>
|
||||
''' Helper Class to save DevExpress layouts
|
||||
'''
|
||||
''' Example:
|
||||
'''
|
||||
''' Layout 1 (for frmMain)
|
||||
''' ----------------------------------------------
|
||||
''' | Component 1 Component 2 |
|
||||
''' | |-------------| |----------------| |
|
||||
''' | | MainGrid | | DocumentGrid | |
|
||||
''' | |-------------| |----------------| |
|
||||
''' | |
|
||||
''' |---------------------------------------------
|
||||
''' </summary>
|
||||
Public Class ClassLayout
|
||||
Public Enum LayoutName
|
||||
Public Enum GroupName
|
||||
LayoutMain
|
||||
End Enum
|
||||
|
||||
@@ -10,9 +24,19 @@ Public Class ClassLayout
|
||||
DocumentManager
|
||||
End Enum
|
||||
|
||||
Public Shared Function GetLayoutPath(LayoutName As LayoutName, Component As LayoutComponent) As String
|
||||
Dim oFileName As String = $"{LayoutName.ToString}-{Component.ToString}.xml"
|
||||
Return IO.Path.Combine(GetAppDataFolder(), ClassConstants.FOLDER_NAME_LAYOUT, oFileName)
|
||||
''' <summary>
|
||||
''' Returns a path for the chosen Devexpress layout file
|
||||
''' </summary>
|
||||
''' <param name="Group">The Group to which the the component belongs to. For example, a form could be a Layout</param>
|
||||
''' <param name="Component">The component to which the layout belongs to</param>
|
||||
''' <returns></returns>
|
||||
Public Shared Function GetLayoutPath(Group As GroupName, Component As LayoutComponent) As String
|
||||
Dim oFileName As String = $"{Group.ToString}-{Component.ToString}.xml"
|
||||
Return Path.Combine(GetLayoutDirectory(), oFileName)
|
||||
End Function
|
||||
|
||||
Public Shared Function GetLayoutDirectory() As String
|
||||
Return Path.Combine(GetAppDataFolder(), ClassConstants.FOLDER_NAME_LAYOUT)
|
||||
End Function
|
||||
|
||||
Private Shared Function GetAppDataFolder() As String
|
||||
|
||||
Reference in New Issue
Block a user