public void checkid()
        {
            bool stat = false;

            Data.Client dc  = new Data.Client();
            koneksi     kon = new koneksi();

            dc.No_identity = tbxnoidentityregis.Text;
            kon.openConnection();
            string query = "select no_identity from tb_client where no_identity = '" + dc.No_identity + "'";

            if (kon.checkidreader(query) == 1)
            {
                lblcheckidclient.Text = "'" + tbxnoidentityregis.Text + "' sudah terpakai!";
            }
            else
            {
                lblcheckidclient.Text = "'" + tbxnoidentityregis.Text + "' bisa digunakan!";
            }
            kon.closeConnection();
            //return stat;
        }