
MessageBox.Show("Client Updated Successfully", "Edit Client", MessageBoxButtons.OK, MessageBoxIcon.Information) If client.editClient(id, fname, lname, phone, email) Then MessageBox.Show("Select The User You Want to Edit", "Missing ID", MessageBoxButtons.OK, MessageBoxIcon.Error)ĭim id As Integer = Convert.ToInt32(TextBoxId.Text) Private Sub ButtonEdit_Click(sender As Object, e As EventArgs) Handles ButtonEdit.Click MessageBox.Show("Client Not Added", "Add Client", MessageBoxButtons.OK, MessageBoxIcon.Warning) MessageBox.Show("New Client Added Successfully", "Add Client", MessageBoxButtons.OK, MessageBoxIcon.Information)ĭataGridView1.DataSource = client.getAllClients() If client.addClient(fname, lname, phone, email) Then MessageBox.Show("Required First & Last Name, Phone", "Missing Information", MessageBoxButtons.OK, MessageBoxIcon.Error) If fname.Trim().Equals("") Or lname.Trim().Equals("") Or phone.Trim().Equals("") Then Private Sub ButtonAdd_Click(sender As Object, e As EventArgs) Handles ButtonAdd.Click MessageBox.Show("Invalid Username Or Password", "Login Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
#Restaurant billing system project in java with source code password#
The Login Button: Private Sub ButtonLogin_Click(sender As Object, e As EventArgs) Handles ButtonLogin.Clickĭim username As String = TextBoxUsername.Textĭim password As String = TextBoxPassword.Textĭim selectQuery As String = "SELECT * FROM `users` WHERE AND = selectQueryĬommand.Connection = MySqlDbType.VarChar).Value = MySqlDbType.VarChar).Value = password and we will check if the username/password textbox are empty.Īnd if the user enter the wrong username or password or this user doesn't exists at all. Before getting access to the main form the user need to login first by entering his username and password.
