1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| Public Class Form_Bataille
Private Sub BATAILLESBindingNavigatorSaveItem_Click(sender As System.Object, e As System.EventArgs)
Me.Validate()
Me.BATAILLESBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.NapoleonDataSet)
PictureBoxImage.ImageLocation = LabelCheminImage.Text
End Sub
Private Sub Form_Bataille_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
'TODO: cette ligne de code charge les données dans la table 'NapoleonDataSet.BATAILLES'. Vous pouvez la déplacer ou la supprimer selon vos besoins.
Me.BATAILLESTableAdapter.Fill(Me.NapoleonDataSet.BATAILLES)
'TODO: cette ligne de code charge les données dans la table 'NapoleonDataSet.BATAILLES'. Vous pouvez la déplacer ou la supprimer selon vos besoins.
Me.BATAILLESTableAdapter.Fill(Me.NapoleonDataSet.BATAILLES)
PictureBoxImage.ImageLocation = LabelCheminImage.Text
Timer1.Enabled = True
My.Computer.Audio.Play(My.Resources.Music_Bataille,
AudioPlayMode.Background)
End Sub
Private Sub BATAILLESBindingNavigatorSaveItem_Click_1(sender As System.Object, e As System.EventArgs) Handles BATAILLESBindingNavigatorSaveItem.Click
Me.Validate()
Me.BATAILLESBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.NapoleonDataSet)
PictureBoxImage.ImageLocation = LabelCheminImage.Text
End Sub
Private Sub Button_Quitter_Click(sender As System.Object, e As System.EventArgs) Handles Button_Quitter.Click
End
My.Computer.Audio.Stop()
End Sub
Private Sub Button_Avancer_Click(sender As System.Object, e As System.EventArgs) Handles Button_Avancer.Click
BATAILLESBindingSource.MoveNext()
PictureBoxImage.ImageLocation = LabelCheminImage.Text
End Sub
Private Sub Button_Dernier_Click(sender As System.Object, e As System.EventArgs) Handles Button_Dernier.Click
BATAILLESBindingSource.MoveLast()
PictureBoxImage.ImageLocation = LabelCheminImage.Text
End Sub
Private Sub Button_Reculer_Click(sender As System.Object, e As System.EventArgs) Handles Button_Reculer.Click
BATAILLESBindingSource.MovePrevious()
PictureBoxImage.ImageLocation = LabelCheminImage.Text
End Sub
Private Sub Button_Premier_Click(sender As System.Object, e As System.EventArgs) Handles Button_Premier.Click
BATAILLESBindingSource.MoveFirst()
PictureBoxImage.ImageLocation = LabelCheminImage.Text
End Sub
End Class |
Partager