private void butDeleteAlert_Click(object sender, EventArgs e) { if (listAlerts.SelectedIndex == -1) { MsgBox.Show(this, "Please select an items first."); return; } RxAlerts.Delete(RxAlertList[listAlerts.SelectedIndex]); FillAlerts(); }
private void butDelete_Click(object sender, EventArgs e) { RxAlerts.Delete(RxAlertCur); DialogResult = DialogResult.OK; }