Beispiel #1
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());
         }
     }
 }
Beispiel #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();
         }
     }
 }