private void BTN_delete_Click(object sender, EventArgs e) { try { clientLogic.DeleteRemote(ListEvents[LV_dates.FocusedItem.Index]); ListEvents.RemoveAt(LV_dates.FocusedItem.Index); dates.RemoveAt(LV_dates.FocusedItem.Index); UpdateEvents(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }