private void BtnSupplierUpdate_Click(object sender, EventArgs e)
 {
     if (ValidateText())
     {
         SupplierDTO supDTO = new SupplierDTO(txtSupplierID.Text, txtSupplierName.Text, txtSupplierAddress.Text, txtSupplierMobile.Text);
         Boolean     result = SupplierController.updateSupplier(supDTO);
         if (result)
         {
             MessageBox.Show("Supplier details updated in the database successfully..");
         }
         else
         {
             MessageBox.Show("Error occured supplier details not updated..");
         }
         loadTable();
         clear();
     }
 }
        private void BtnAddUser_Click(object sender, EventArgs e)
        {
            if (ValidateText())
            {
                SupplierDTO supDTO = new SupplierDTO();
                supDTO.setSupplierid(txtSupplierID.Text);
                supDTO.setName(txtSupplierName.Text);
                supDTO.setMobile(txtSupplierMobile.Text);
                supDTO.setAddress(txtSupplierAddress.Text);

                Boolean result = SupplierController.addSupplier(supDTO);
                if (result)
                {
                    MessageBox.Show("Supplier details added to the database successfully..");
                }
                else
                {
                    MessageBox.Show("Error occured supplier not added..");
                }
                loadTable();
                clear();
            }
        }