Exemplo n.º 1
0
 private void RemoveQuestionToolStripMenuItem_Click(object sender, EventArgs e)
 {
     collection.RemoveAt(lbQuestions.SelectedIndex);
     lbQuestions.Items.RemoveAt(collection.Count);
     if (collection.Count == 0)
     {
         lbQuestions.Enabled = false;
     }
     lbQuestions_SelectedIndexChanged(null, null);
 }