ZooFlow: Admin

This commit is contained in:
Jonathan Jenne
2021-04-08 16:57:57 +02:00
parent 37ee8bef5d
commit 97c0b72d9d
25 changed files with 319 additions and 313 deletions

View File

@@ -39,6 +39,16 @@
End Try
End Function
Public Function DeleteData() As Boolean Implements frmAdmin_Interface.DeleteData
Try
TBZF_ADMIN_SOURCE_SQLTableAdapter.Delete(PrimaryKey)
Return True
Catch ex As Exception
ShowError(ex)
Return False
End Try
End Function
Private Sub frmAdmin_SourceSQL_Load(sender As Object, e As EventArgs) Handles Me.Load
Try
TBZF_ADMIN_SOURCE_SQLTableAdapter.Fill(DSIDB_Stammdaten.TBZF_ADMIN_SOURCE_SQL, PrimaryKey)
@@ -71,4 +81,12 @@
Close()
End If
End Sub
Private Sub BarButtonItem3_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles BarButtonItem3.ItemClick
If MsgBox($"Wollen Sie den SourceSQL [{PrimaryKey}] wirklich löschen?", MsgBoxStyle.Question Or MsgBoxStyle.YesNo, Text) = MsgBoxResult.Yes Then
If DeleteData() Then
Close()
End If
End If
End Sub
End Class