コード例 #1
0
ファイル: Type5.cs プロジェクト: 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());
         }
     }
 }
コード例 #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();
         }
     }
 }