public static bool RemoveBarcode(int BarcodeID) { bool deleted = false; try { using (LTS.LTSBase access = new LTS.LTSDC()) { access.DeleteBarcode(BarcodeID); deleted = true; } } catch (Exception ex) { } return(deleted); }