private void btnUpdate_Click(object sender, EventArgs e)
        {
            selectedEntry = listBoxScores.SelectedIndex;
            Form updateScore = new frmUpdateScore();

            updateScore.ShowDialog();
            bind.ResetBindings(false);
        }
Пример #2
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            frmUpdateScore updateScoreForm = new frmUpdateScore();
            string         scoreToUpdate   = lstScores.SelectedItem.ToString();

            updateScoreForm.Tag = scoreToUpdate;
            DialogResult selectedButton = updateScoreForm.ShowDialog();

            if (selectedButton == DialogResult.OK)
            {
                lstScores.Items[lstScores.SelectedIndex] = updateScoreForm.Tag.ToString();
            }
        }