Better Config, Clean Up, Add Demo Groups
This commit is contained in:
@@ -2,18 +2,18 @@
|
||||
|
||||
Public Class frmProfileMatch
|
||||
Private Sub frmProfileMatch_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
If ConfigManager.Config.MatchWindowX > 0 And ConfigManager.Config.MatchWindowY > 0 Then
|
||||
Dim oLocation As New Point(ConfigManager.Config.MatchWindowX, ConfigManager.Config.MatchWindowY)
|
||||
Location = oLocation
|
||||
If Not ConfigManager.Config.MatchWindowLocation.IsEmpty Then
|
||||
Location = ConfigManager.Config.MatchWindowLocation
|
||||
End If
|
||||
|
||||
Dim oSize As New Size(ConfigManager.Config.MatchWindowWidth, ConfigManager.Config.MatchWindowHeight)
|
||||
Size = oSize
|
||||
If Not ConfigManager.Config.MatchWindowSize.IsEmpty Then
|
||||
Size = ConfigManager.Config.MatchWindowSize
|
||||
End If
|
||||
|
||||
If USER_LANGUAGE = "de-DE" Then
|
||||
Me.Label1.Text = $"Clipboard Watcher hat mehr als einen Match für Ihre Suche [{CURR_MATCH_RESULT}] gefunden:"
|
||||
Me.Label1.Text = $"Clipboard Watcher hat mehr als einen Match für Ihre Suche nach ""{CURR_MATCH_RESULT}"" gefunden:"
|
||||
Else
|
||||
Me.Label1.Text = $"Clipboard Watcher found more than on match for Your search [{CURR_MATCH_RESULT}]:"
|
||||
Me.Label1.Text = $"Clipboard Watcher found more than on match for your search for ""{CURR_MATCH_RESULT}"":"
|
||||
End If
|
||||
CreateTiles()
|
||||
CurrDocSearch2Load = Nothing
|
||||
@@ -24,7 +24,7 @@ Public Class frmProfileMatch
|
||||
Dim oPrimaryFont As New Font("Segoe UI", 12, FontStyle.Bold)
|
||||
Dim oSecondaryFont As New Font("Segoe UI", 10)
|
||||
|
||||
Dim oGroup = TileControl1.Groups.Item("TileGroupProfiles")
|
||||
Dim oGroup = TileControl1.Groups.Item("TileGroupDocuments")
|
||||
oGroup.Items.Clear()
|
||||
|
||||
For Each oRow As DataRow In CurrDT_PROFILE_MATCH.Rows
|
||||
@@ -39,7 +39,7 @@ Public Class frmProfileMatch
|
||||
|
||||
Dim oCommentElement = New TileItemElement()
|
||||
oCommentElement.Text = oRow.Item("COMMENT")
|
||||
oCommentElement.TextAlignment = TileItemContentAlignment.BottomLeft
|
||||
oCommentElement.TextAlignment = TileItemContentAlignment.MiddleLeft
|
||||
oCommentElement.Appearance.Normal.Font = oSecondaryFont
|
||||
oItem.Elements.Add(oCommentElement)
|
||||
|
||||
@@ -66,20 +66,18 @@ Public Class frmProfileMatch
|
||||
End Sub
|
||||
|
||||
Sub OpenResults_Doc()
|
||||
Dim ofrmresult As Form = New frmResultDoc
|
||||
ofrmresult.Show()
|
||||
Dim oFrmResultDoc As Form = New frmResultDoc
|
||||
oFrmResultDoc.Show()
|
||||
End Sub
|
||||
Sub OpenResults_Data()
|
||||
Dim ofrmresult As Form = New frmResultSQL
|
||||
ofrmresult.Show()
|
||||
Dim oFrmResultData As Form = New frmResultSQL
|
||||
oFrmResultData.Show()
|
||||
End Sub
|
||||
|
||||
Private Sub frmProfileMatch_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
|
||||
Try
|
||||
ConfigManager.Config.MatchWindowHeight = Size.Height
|
||||
ConfigManager.Config.MatchWindowWidth = Size.Width
|
||||
ConfigManager.Config.MatchWindowX = Location.X
|
||||
ConfigManager.Config.MatchWindowY = Location.Y
|
||||
ConfigManager.Config.MatchWindowSize = Size
|
||||
ConfigManager.Config.MatchWindowLocation = Location
|
||||
ConfigManager.Save()
|
||||
Catch ex As Exception
|
||||
Logger.Error(ex)
|
||||
|
||||
Reference in New Issue
Block a user