示例#1
0
 private void go()
 {
     q      = new DbQuestion();
     q.Type = 7;
     q.ID   = -1;
     q.A    = tb.Text;
 }
示例#2
0
 private void go()
 {
     q      = new DbQuestion();
     q.Type = allowDoubles == true ? (short)5 : (short)6;
     q.ID   = -1;
     q.A    = listBox1.Items == null ? "" : concateArray(listBox1.Items);
     q.B    = listBox2.Items == null ? "" : concateArray(listBox2.Items);
     load();
 }
示例#3
0
文件: Type5.cs 项目: titu84/Exam
 private void go()
 {
     q      = new DbQuestion();
     q.Type = cbDoubles.Checked == false ? (short)5 : (short)6;
     q.ID   = -1;
     q.A    = listBox1.Items == null ? "" : concateArray(listBox1.Items).ReplaceSymbolToApostrophe();
     q.B    = listBox2.Items == null ? "" : concateArray(listBox2.Items).ReplaceSymbolToApostrophe();
     q.C    = cbDoubles.Checked ? "1" : "0";
     q.H    = listOptions.Items == null ? "" : concateArray(listOptions.Items).ReplaceSymbolToApostrophe();
     load();
 }
示例#4
0
 private void go()
 {
     q      = new DbQuestion();
     q.Type = 3;
     q.ID   = -1;
     if (rbA.Checked)
     {
         q.A = "1";
     }
     if (rbB.Checked)
     {
         q.B = "1";
     }
     if (rbC.Checked)
     {
         q.C = "1";
     }
     if (rbD.Checked)
     {
         q.D = "1";
     }
     if (rbE.Checked)
     {
         q.E = "1";
     }
     if (rbF.Checked)
     {
         q.F = "1";
     }
     if (rbG.Checked)
     {
         q.G = "1";
     }
     if (rbH.Checked)
     {
         q.H = "1";
     }
     if (rbI.Checked)
     {
         q.I = "1";
     }
     if (rbJ.Checked)
     {
         q.J = "1";
     }
     if (rbK.Checked)
     {
         q.K = "1";
     }
 }
示例#5
0
文件: Type1.cs 项目: titu84/Exam
 private void go()
 {
     q      = new DbQuestion();
     q.Type = 1;
     q.ID   = -1;
     if (rbTrue.Checked)
     {
         q.A = "1";
         q.B = null;
     }
     else
     {
         q.A = null;
         q.B = "1";
     }
 }
示例#6
0
 private void go()
 {
     q      = new DbQuestion();
     q.Type = 4;
     q.ID   = -1;
     q.A    = A.Text == "_" || A.Text == " " ? null: A.Text.ReplaceApostropheToSymbol();
     q.B    = B.Text == "_" || B.Text == " " ? null: B.Text.ReplaceApostropheToSymbol();
     q.C    = C.Text == "_" || C.Text == " " ? null: C.Text.ReplaceApostropheToSymbol();
     q.D    = D.Text == "_" || D.Text == " " ? null: D.Text.ReplaceApostropheToSymbol();
     q.E    = E.Text == "_" || E.Text == " " ? null: E.Text.ReplaceApostropheToSymbol();
     q.F    = F.Text == "_" || F.Text == " " ? null: F.Text.ReplaceApostropheToSymbol();
     q.G    = G.Text == "_" || G.Text == " " ? null: G.Text.ReplaceApostropheToSymbol();
     q.HH   = HH.Text == "_" || HH.Text == " " ? null: HH.Text.ReplaceApostropheToSymbol();
     q.I    = I.Text == "_" || I.Text == " " ? null: I.Text.ReplaceApostropheToSymbol();
     q.J    = J.Text == "_" || J.Text == " " ? null: J.Text.ReplaceApostropheToSymbol();
     q.K    = K.Text == "_" || K.Text == " " ? null: K.Text.ReplaceApostropheToSymbol();
 }
示例#7
0
        private void go()
        {
            q      = new DbQuestion();
            q.Type = 4;
            q.ID   = -1;
            q.A    = A.SelectedItem == null ? "" : A.SelectedItem.ToString().ReplaceSymbolToApostrophe();
            q.B    = B.SelectedItem == null ? "" : B.SelectedItem.ToString().ReplaceSymbolToApostrophe();
            q.C    = C.SelectedItem == null ? "" : C.SelectedItem.ToString().ReplaceSymbolToApostrophe();
            q.D    = D.SelectedItem == null ? "" : D.SelectedItem.ToString().ReplaceSymbolToApostrophe();
            q.E    = E.SelectedItem == null ? "" : E.SelectedItem.ToString().ReplaceSymbolToApostrophe();
            q.F    = F.SelectedItem == null ? "" : F.SelectedItem.ToString().ReplaceSymbolToApostrophe();
            q.G    = G.SelectedItem == null ? "" : G.SelectedItem.ToString().ReplaceSymbolToApostrophe();
            q.HH   = H.SelectedItem == null ? "" : H.SelectedItem.ToString().ReplaceSymbolToApostrophe();
            q.I    = I.SelectedItem == null ? "" : I.SelectedItem.ToString().ReplaceSymbolToApostrophe();
            q.J    = J.SelectedItem == null ? "" : J.SelectedItem.ToString().ReplaceSymbolToApostrophe();
            q.K    = K.SelectedItem == null ? "" : K.SelectedItem.ToString().ReplaceSymbolToApostrophe();
            q.H    = listOptions.Items == null ? "" : concateArray(listOptions.Items).ReplaceSymbolToApostrophe();

            load();
        }