Remove save prompt from link selection handler
Removed code that prompted users to save unsaved link changes in lvwVerknuepfungen_SelectedIndexChanged. The event handler now skips the save dialog and related logic, proceeding directly to profile selection handling.
This commit is contained in:
@@ -1694,24 +1694,6 @@ Public Class frmNIVerknuepfungen
|
||||
|
||||
|
||||
Private Sub lvwVerknuepfungen_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lvwVerknuepfungen.SelectedIndexChanged
|
||||
If Not Me._selectedProfil._links.IsSaved Then
|
||||
|
||||
Dim msgResult As MsgBoxResult = MsgBox("Möchten Sie die Änderungen speichern?", MsgBoxStyle.YesNoCancel, "Änderungen übernehmen?")
|
||||
If msgResult = MsgBoxResult.Yes Then
|
||||
|
||||
'If Not Me._selectedProfil.IsSaved Then
|
||||
' SaveProfile()
|
||||
'End If
|
||||
|
||||
If Not Me._selectedProfil._links.IsSaved Then
|
||||
SaveLinks()
|
||||
SaveProfile()
|
||||
End If
|
||||
Else
|
||||
Me._selectedProfil._links.setLinksSaved()
|
||||
Me._selectedProfil.setSaved()
|
||||
End If
|
||||
End If
|
||||
|
||||
Select Case Me._selectedProfil.Ni_Art
|
||||
Case "db"
|
||||
|
||||
Reference in New Issue
Block a user