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 54 55 56 57
| Private Sub ButtonAnnuler_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonAnnuler.Click
Me.Close()
End Sub
Private Sub ButtonOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonOK.Click
Dim texte As String
texte = Me.TextBoxNumPlan.Text & "," & _
Me.TextBoxDescription.Text & "," & _
Me.TextBoxIndice.Text & "," & _
Me.TextBoxDateIndice.Text & "," & _
Me.TextBoxLocalisation.Text & "," & _
Me.TextBoxUnité.Text & "," & _
Me.TextBoxEnsembleFonctionnel.Text
chemin = My.Settings.Default.Repertoire & "\" & Me.TextBoxNumPlan.Text & ".ldp"
My.Computer.FileSystem.WriteAllText(chemin, texte, True)
' Nettoyage dans les textbox des valeurs lies au n° de plan.
Form1.TextBoxNumPlan.Text = ""
Form1.TextBoxDescription.Text = ""
Form1.TextBoxIndice.Text = ""
Form1.TextBoxDateIndice.Text = ""
Form1.TextBoxUnité.Text = ""
Form1.TextBoxLocalisation.Text = ""
Form1.TextBoxEnsembleFonctionnel.Text = ""
LectureFichierDansLeRepertoire()
Me.Close()
End Sub
Private Sub ButtonAppliquer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonAppliquer.Click
Dim texte As String
texte = Me.TextBoxNumPlan.Text & "," & _
Me.TextBoxDescription.Text & "," & _
Me.TextBoxIndice.Text & "," & _
Me.TextBoxDateIndice.Text & "," & _
Me.TextBoxLocalisation.Text & "," & _
Me.TextBoxUnité.Text & "," & _
Me.TextBoxEnsembleFonctionnel.Text
chemin = My.Settings.Default.Repertoire & "\" & Me.TextBoxNumPlan.Text & ".ldp"
My.Computer.FileSystem.WriteAllText(chemin, texte, True)
' Nettoyage dans les textbox des valeurs lies au n° de plan.
Form1.TextBoxNumPlan.Text = ""
Form1.TextBoxDescription.Text = ""
Form1.TextBoxIndice.Text = ""
Form1.TextBoxDateIndice.Text = ""
Form1.TextBoxUnité.Text = ""
Form1.TextBoxLocalisation.Text = ""
Form1.TextBoxEnsembleFonctionnel.Text = ""
LectureFichierDansLeRepertoire()
End Sub |
Partager