MS Diverses Customizing

This commit is contained in:
Developer01
2024-07-31 11:10:21 +02:00
parent 2039b614c1
commit c15a0ee5a0
36 changed files with 1140 additions and 1612 deletions

View File

@@ -2,6 +2,7 @@
Public Class frmFileRename
Private ReadOnly oRenameType As String
Private OldDisplayName As String
Public Sub New(DocID As Integer, oldName As String, pRenameType As String)
@@ -17,15 +18,26 @@ Public Class frmFileRename
Private Sub SimpleButton1_Click(sender As Object, e As EventArgs) Handles SimpleButton1.Click
Dim result As MsgBoxResult
Dim oMSG = "Wollen Sie die Datei wirklich umbenennen?"
Dim oFilePattern As String
If oRenameType = "Displayname" Then
oFilePattern = "den Displaynamen"
If USER_LANGUAGE <> "de-DE" Then
oFilePattern = "the displayname"
End If
Else
oFilePattern = "die Datei"
If USER_LANGUAGE <> "de-DE" Then
oFilePattern = "the file"
End If
End If
Dim oMSG = "Wollen Sie " + oFilePattern + " wirklich umbenennen?"
If USER_LANGUAGE <> "de-DE" Then
oMSG = "Do You really want to rename the file?"
oMSG = $"Do You really want to rename {oFilePattern} ?"
End If
result = MessageBox.Show(oMSG, CAPTION_CONFIRMATION, MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If result = MsgBoxResult.Yes Then
If oRenameType = "Displayname" Then
Try
ClassFileResult.DocID = ClassWindreamDocGrid.SELECTED_DOC_ID
If txtNewName.Text <> "" Then
If ClassFileResult.Set_Displayname(txtNewName.Text) Then
Me.Close()