Files
RecordOrganizer/app/DD-Record-Organizer/frmNodeNavigation_RenameNode.vb
2026-03-24 12:42:53 +01:00

24 lines
950 B
VB.net
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Public Class frmNodeNavigation_RenameNode
''' <summary>
''' Die initiale Beschriftung des Knotens vor dem Öffnen setzen.
''' </summary>
Public Property NodeCaption As String = ""
''' <summary>
''' Die neue Beschriftung nach erfolgreichem Umbenennen.
''' </summary>
Public Property NewNodeCaption As String = ""
Private Sub frmNodeNavigation_RenameNode_Load(sender As Object, e As EventArgs) Handles Me.Load
txtNode_Caption.Text = NodeCaption
End Sub
Private Sub txtNode_Caption_EditValueChanged(sender As Object, e As EventArgs) Handles txtNode_Caption.EditValueChanged
btnRename.Enabled = Not String.IsNullOrWhiteSpace(txtNode_Caption.Text)
End Sub
Private Sub btnRename_Click(sender As Object, e As EventArgs) Handles btnRename.Click
NewNodeCaption = txtNode_Caption.Text.Trim()
Me.DialogResult = DialogResult.OK
Me.Close()
End Sub
End Class