layout specihern
This commit is contained in:
parent
a21db6d6c5
commit
286e17a900
@ -1,17 +1,19 @@
|
|||||||
Imports System.IO
|
Imports System.ComponentModel
|
||||||
|
Imports System.IdentityModel.Metadata
|
||||||
|
Imports System.IO
|
||||||
|
Imports System.Text
|
||||||
Imports DevExpress.LookAndFeel
|
Imports DevExpress.LookAndFeel
|
||||||
Imports DevExpress.Utils.Extensions
|
Imports DevExpress.Utils.Extensions
|
||||||
Imports DevExpress.XtraCharts
|
Imports DevExpress.XtraCharts
|
||||||
Imports DevExpress.XtraGrid
|
Imports DevExpress.XtraGrid
|
||||||
Imports DevExpress.XtraGrid.Views.Grid
|
Imports DevExpress.XtraGrid.Views.Grid
|
||||||
|
Imports DevExpress.XtraPrinting
|
||||||
Imports DevExpress.XtraSplashScreen
|
Imports DevExpress.XtraSplashScreen
|
||||||
Imports DigitalData.GUIs.Common
|
Imports DigitalData.GUIs.Common
|
||||||
Imports DigitalData.Modules.Base
|
Imports DigitalData.Modules.Base
|
||||||
Imports DigitalData.Modules.Logging
|
Imports DigitalData.Modules.Logging
|
||||||
Imports EnvelopeGenerator.CommonServices
|
Imports EnvelopeGenerator.CommonServices
|
||||||
Imports EnvelopeGenerator.CommonServices.My
|
Imports EnvelopeGenerator.CommonServices.My
|
||||||
Imports System.ComponentModel
|
|
||||||
Imports DevExpress.XtraPrinting
|
|
||||||
Imports EnvelopeGenerator.Domain.Entities
|
Imports EnvelopeGenerator.Domain.Entities
|
||||||
|
|
||||||
Public Class frmMain
|
Public Class frmMain
|
||||||
@ -25,6 +27,7 @@ Public Class frmMain
|
|||||||
Private Controller As EnvelopeListController
|
Private Controller As EnvelopeListController
|
||||||
Private myFileData As Byte()
|
Private myFileData As Byte()
|
||||||
Private myResFileData As Byte()
|
Private myResFileData As Byte()
|
||||||
|
Private FormLoad As Boolean = True
|
||||||
|
|
||||||
Public Sub New(pState As State)
|
Public Sub New(pState As State)
|
||||||
' Dieser Aufruf ist für den Designer erforderlich.
|
' Dieser Aufruf ist für den Designer erforderlich.
|
||||||
@ -60,6 +63,10 @@ Public Class frmMain
|
|||||||
XtraTabControlMain.TabPages(3).PageVisible = False
|
XtraTabControlMain.TabPages(3).PageVisible = False
|
||||||
End If
|
End If
|
||||||
LoadEnvelopeData()
|
LoadEnvelopeData()
|
||||||
|
Dim oXMLPath = Get_DocGrid_Layout_Filename(ViewEnvelopes.Name)
|
||||||
|
If File.Exists(oXMLPath) Then
|
||||||
|
ViewEnvelopes.RestoreLayoutFromXml(oXMLPath)
|
||||||
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub LoadEnvelopeData()
|
Private Sub LoadEnvelopeData()
|
||||||
@ -226,6 +233,10 @@ Public Class frmMain
|
|||||||
bbtnitmEB.Enabled = True
|
bbtnitmEB.Enabled = True
|
||||||
bbtnitm2Faktor.Enabled = False
|
bbtnitm2Faktor.Enabled = False
|
||||||
LoadEnvelopeData()
|
LoadEnvelopeData()
|
||||||
|
Dim oXMLPath = Get_DocGrid_Layout_Filename(ViewCompleted.Name)
|
||||||
|
If File.Exists(oXMLPath) Then
|
||||||
|
ViewCompleted.RestoreLayoutFromXml(oXMLPath)
|
||||||
|
End If
|
||||||
Case 0
|
Case 0
|
||||||
RibbonPageGroupReceiver.Visible = True
|
RibbonPageGroupReceiver.Visible = True
|
||||||
btnEditEnvelope.Enabled = True
|
btnEditEnvelope.Enabled = True
|
||||||
@ -559,6 +570,7 @@ Public Class frmMain
|
|||||||
MYUSER = oUser
|
MYUSER = oUser
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
FormLoad = False
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub bbtnitmInfoMail_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles bbtnitmInfoMail.ItemClick
|
Private Sub bbtnitmInfoMail_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles bbtnitmInfoMail.ItemClick
|
||||||
@ -885,4 +897,29 @@ Public Class frmMain
|
|||||||
SplashScreenManager.CloseOverlayForm(oHandle)
|
SplashScreenManager.CloseOverlayForm(oHandle)
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ViewCompleted_Layout(sender As Object, e As EventArgs) Handles ViewCompleted.Layout
|
||||||
|
If FormLoad = True Then
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
Dim oXMLPath = Get_DocGrid_Layout_Filename(ViewCompleted.Name)
|
||||||
|
ViewCompleted.SaveLayoutToXml(oXMLPath)
|
||||||
|
bsitmInfo.Caption = "Grid Layout Envelopes Completed Saved"
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ViewEnvelopes_Layout(sender As Object, e As EventArgs) Handles ViewEnvelopes.Layout
|
||||||
|
If FormLoad = True Then
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
Dim oXMLPath = Get_DocGrid_Layout_Filename(ViewEnvelopes.Name)
|
||||||
|
ViewEnvelopes.SaveLayoutToXml(oXMLPath)
|
||||||
|
bsitmInfo.Caption = "Grid Layout Envelopes Saved"
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
Private Function Get_DocGrid_Layout_Filename(pGridViewName As String)
|
||||||
|
Dim EntityRegex As New RegularExpressions.Regex("\s+\(\d+\)")
|
||||||
|
Dim Filename As String = String.Format("{0}_UserLayout.xml", pGridViewName)
|
||||||
|
Dim oGridlayoutFullFilename = System.IO.Path.Combine(Application.UserAppDataPath(), Filename)
|
||||||
|
Return oGridlayoutFullFilename
|
||||||
|
End Function
|
||||||
End Class
|
End Class
|
||||||
Loading…
x
Reference in New Issue
Block a user