Ejemplo n.º 1
0
Archivo: Type5.cs Proyecto: titu84/Exam
 private void btnAdd_Click(object sender, EventArgs e)
 {
     using (var form = new AddOptionDialog())
     {
         var result = form.ShowDialog();
         if (result == DialogResult.OK)
         {
             string val = form.resultStr;
             listOptions.Items.Add(val.ReplaceApostropheToSymbol());
         }
     }
 }
Ejemplo n.º 2
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     using (var form = new AddOptionDialog())
     {
         var result = form.ShowDialog();
         if (result == DialogResult.OK)
         {
             string val = form.resultStr;
             listOptions.Items.Add(val.ReplaceApostropheToSymbol());
             indexes = new int[] { A.SelectedIndex, B.SelectedIndex, C.SelectedIndex, D.SelectedIndex, E.SelectedIndex, F.SelectedIndex, G.SelectedIndex, H.SelectedIndex, I.SelectedIndex, J.SelectedIndex, K.SelectedIndex };
             updateComboBoxes();
         }
     }
 }