-1
Try
Me.Validate()
Me.ItemBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.InventoryDataSet)
Catch ex As Exception
MessageBox.Show("Duplicate Record", "Data Input Error", MessageBoxButtons.OK,MessageBoxIcon.Information)
End Try
我不明白它是如何工作的,什麼是me.validate()
?任何人都可以向我解釋這段代碼?