Compare commits
2 Commits
e5971a093f
...
d8367df621
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8367df621 | ||
|
|
71ceb85b47 |
@@ -362,10 +362,11 @@ Public Class frmDocumentResultList
|
|||||||
.Width = 20
|
.Width = 20
|
||||||
.MaxWidth = 20
|
.MaxWidth = 20
|
||||||
.MinWidth = 20
|
.MinWidth = 20
|
||||||
.VisibleIndex = 0
|
|
||||||
End With
|
End With
|
||||||
|
|
||||||
GridView.Bands.First().Columns.Add(oIconColumn)
|
Dim oFirstBand As GridBand = GridView.Bands.First()
|
||||||
|
oFirstBand.Columns.Add(oIconColumn)
|
||||||
|
oFirstBand.Columns.MoveTo(0, oIconColumn)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim oCreated, oChanged As String
|
Dim oCreated, oChanged As String
|
||||||
@@ -514,7 +515,7 @@ Public Class frmDocumentResultList
|
|||||||
End Function
|
End Function
|
||||||
Private Function GetDevexpressGrid_LayoutName(pGridView As GridView)
|
Private Function GetDevexpressGrid_LayoutName(pGridView As GridView)
|
||||||
Dim Filename As String = $"DevExpressGridViewDocResult_{pGridView.Name}UserLayout.xml"
|
Dim Filename As String = $"DevExpressGridViewDocResult_{pGridView.Name}UserLayout.xml"
|
||||||
Return System.IO.Path.Combine(_Config.UserConfigPath.Replace("UserConfig.xml", ""), Filename)
|
Return Path.Combine(_Config.UserConfigPath.Replace("UserConfig.xml", ""), Filename)
|
||||||
End Function
|
End Function
|
||||||
Private Function GetActiveGridControl() As GridControl
|
Private Function GetActiveGridControl() As GridControl
|
||||||
If _ActiveGrid Is Nothing Then
|
If _ActiveGrid Is Nothing Then
|
||||||
@@ -535,8 +536,10 @@ Public Class frmDocumentResultList
|
|||||||
End Sub
|
End Sub
|
||||||
Private Sub RestoreLayout(pGridView As GridView)
|
Private Sub RestoreLayout(pGridView As GridView)
|
||||||
Try
|
Try
|
||||||
Dim oXml As String = GetDevexpressGrid_LayoutName(pGridView)
|
Dim oLayoutFile As String = GetDevexpressGrid_LayoutName(pGridView)
|
||||||
pGridView.RestoreLayoutFromXml(oXml, OptionsLayoutBase.FullLayout)
|
If File.Exists(oLayoutFile) Then
|
||||||
|
pGridView.RestoreLayoutFromXml(oLayoutFile, OptionsLayoutBase.FullLayout)
|
||||||
|
End If
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
_Logger.Error(ex)
|
_Logger.Error(ex)
|
||||||
_Logger.Info("Error while restoring layout: " & ex.Message)
|
_Logger.Info("Error while restoring layout: " & ex.Message)
|
||||||
|
|||||||
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("1.3.0.0")>
|
<Assembly: AssemblyVersion("1.3.1.0")>
|
||||||
<Assembly: AssemblyFileVersion("1.3.0.0")>
|
<Assembly: AssemblyFileVersion("1.3.1.0")>
|
||||||
|
|||||||
Reference in New Issue
Block a user