private void FBTN_Delete_Click(object sender, EventArgs e) { FBTN_Delete.Visible = false; if (this.LBX_PrescriptionNumber.SelectedIndex >= 0) { this.LBX_PrescriptionNumber.Items.RemoveAt(this.LBX_PrescriptionNumber.SelectedIndex); prescriptionRenewal.Remove_Prescription(LBX_PrescriptionNumber.SelectedIndex.ToString()); MTBX_PrescriptionNumber.Text = ""; } LBX_PrescriptionNumber.Enabled = true; FBTN_Abort.Visible = false; }
private void Delete() { LBX_PrescriptionNumber.Items.Remove(MTBX_PrescriptionNumber.Text); PrescriptionRenewal.Remove_Prescription(MTBX_PrescriptionNumber.Text); Retablir(); }