예제 #1
0
        private void btnDelete_Click(object sender, System.EventArgs e)
        {
            blockCollection.RemoveAt(this.cboBlockList.SelectedIndex);
            int newIndex = this.cboBlockList.SelectedIndex - 1;

            if ((newIndex < 0) && (blockCollection.Count > 0))
            {
                newIndex = 0;
            }
            UpdateComboBox(newIndex);
        }