Exemplo n.º 1
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            int selected = lstMatches.SelectedIndex;

            if (selected > -1 && selected < matchProvider.Count)
            {
                matchProvider.RemoveAt(selected);

                matchProvider.Save();
                lstMatches.Items.Clear();
                matchProvider.Load();
                lstMatches.SetSelected(0, false);
            }
        }