You are on page 1of 1

Imports BL

Imports DTO
Public Class Student
Private Sub Student_Load(sender As Object, e As EventArgs) Handles MyBase.Lo
ad
End Sub
Private Sub btnadd_Click(sender As Object, e As EventArgs) Handles btnadd.Cl
ick
Dim sname = TextBox1.Text
Dim phone = TextBox2.Text
Dim dto As New StudentDTO(sname, phone)
Dim bl As New StudentBL()
bl.addStudent(dto)
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.
Click
End Sub
End Class

You might also like