private void bottleRadioButton_CheckedChanged(object sender, EventArgs e) { string randId = "BO" + Security.getToken(); Supplier sup = sda.getOneSupplierByID(randId, conn); Supplier deletedSup = sda.getOneDeletedSupplierByID(randId, conn); while ((!string.IsNullOrWhiteSpace(sup.getSupplierID()) && sup.getSupplierID().Equals(randId)) || (!string.IsNullOrWhiteSpace(deletedSup.getSupplierID()) && deletedSup.getSupplierID().Equals(randId))) { randId = "BO" + Security.getToken(); } idTextBox.Text = randId; }