This commit is contained in:
SchreiberM
2017-02-16 20:28:26 +01:00
25 changed files with 580 additions and 492 deletions

View File

@@ -1,5 +1,6 @@
Imports System.Xml
Imports System.IO
Imports DD_LIB_Standards
Public Class ClassWindowLocation
@@ -35,7 +36,7 @@ Public Class ClassWindowLocation
End Select
If x = 5000 Then
form.WindowState = FormWindowState.Maximized
form.WindowState = FormWindowState.Maximized
Else
If x > 0 Then
form.Location = New Point(x, y)
@@ -46,7 +47,7 @@ Public Class ClassWindowLocation
Next
Catch notFoundEx As System.IO.FileNotFoundException
ClassLogger.Add("Window Position & Size added for Form " & form.Name)
clsLogger.Add("Window Position & Size added for Form " & form.Name)
Catch ex As Exception
MsgBox("Error while loading Window Position!" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
End Try
@@ -81,7 +82,7 @@ Public Class ClassWindowLocation
layout.Save(settings)
Catch notFoundEx As System.IO.FileNotFoundException
ClassLogger.Add("Window Position & Size added for Form " & form.Name)
clsLogger.Add("Window Position & Size added for Form " & form.Name)
Catch ex As Exception
MsgBox("Error while saving Window Position!" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
End Try